Cause:
VM with runStrategy Manual is not stating if it should be running or stopped by it's runStrategy
Consequence:
The UI wrongly assumes a VM with runStrategy Manual should be running.
Workaround (if any):
When using VM in UI environment, use the running attribute, or set runStrategy to one of Always, RerunOnFailure, Halted but not Manual
Result:
Tested with 4.4.0-0.nightly-2020-05-25-115719:
Re-opening:
When a VM has runStrategy: Manual and the VM is stopped, status in the UI is "VM error" (see attached screenshot)
Cause:
When VM runStrategy unStrategy is set to Manual, it is not a valid information source for VM state, VM can be running or stopped.
Consequence:
When VM runStrategy unStrategy is set to Manual, the UI wrongly assumes a VM with runStrategy Manual should be running.
Solving this issue in the UI requires changing the logic of VM status calculation, this part of the code was changed between 4.4 and 4.5 and is hard to backport safely.
Closing as wont fix because backporting the fix safely is very hard.
@Tomas FYI