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
be0d688511
commit
b52e8028e9
|
|
@ -2824,7 +2824,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