Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check for power off after kill regardless of startGuestProgram() return
If a container VM starts up and we stop it before VC detects the toolbox, startGuestProgram returns an error 3016 even if the toolbox executed and the VM was powered off. When this happens, we try to power off the VM, throwing vSphere into an invalid state transition, which it needs to recover from. During this time, we have seen refreshing properties return invalid powerstate value and prevents us from reading the exit code in portlayer's commit code. To prevent this, we now wait to see if the container VM powered off after startGuestProgram, regardless if it returns an error. Resolves vmware#5803
- Loading branch information