mirror of https://github.com/apache/cloudstack.git
only send stop command when agent reports VM running and CS thinks it is stopped.
This commit is contained in:
parent
8a20d89d14
commit
58a9a9b0cd
|
|
@ -2750,7 +2750,7 @@ public class VirtualMachineManagerImpl extends ManagerBase implements VirtualMac
|
|||
s_logger.warn(e.getMessage());
|
||||
}
|
||||
}
|
||||
} else if (serverState == State.Stopping) {
|
||||
} else if (serverState == State.Stopped) {
|
||||
s_logger.debug("Scheduling a stop command for " + vm);
|
||||
_haMgr.scheduleStop(vm, hostId, WorkType.Stop);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue