fix(deadline): Windows WorkerInstanceFleets with Deadline 10.1.14 installed fail deployment #354
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
Primarily #353, but also fixes #312.
The real issue is a Deadline bug where stopping or restarting the launcher Windows service while it's still starting up can get stuck. The windows service gets stuck in a
stopping
state and the only way to unlock the service is to kill the process.RFDK restarts the launcher twice when configuring workers in relatively quick succession. There is a race condition between restarting the service the first time and the second restart. Once Deadline 10.1.14 was available to RFDK, the race became more probable to fail. The result is that the user data generated by RFDK to configure Windows workers never completes to send the CloudFormation signal and deployments fail.
Solution
Modified the
RenderQueueConnection
sub-classes to accept an optionalrestartLauncher
property. The default was made true to preserve backwards-compatible behavior when this API is called directly. When called byWorkerInstanceConfiguration
, this flag is set tofalse
because it needs to restart the Deadline Launcher again later after configuring the remote command listener ports. By reducing the number of launcher service restarts to one, we avoid the race condition.Testing
Ran the integration tests using this branch and they now all pass.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license