Skip to content

Commit b52e802

Browse files
author
Anthony Xu
committed
only send stop command when agent reports VM running and CS thinks it is stopped.
1 parent be0d688 commit b52e802

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎engine/orchestration/src/com/cloud/vm/VirtualMachineManagerImpl.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2824,7 +2824,7 @@ protected Command compareState(long hostId, VMInstanceVO vm, final AgentVmInfo i
28242824
s_logger.warn(e.getMessage());
28252825
}
28262826
}
2827-
} else if (serverState == State.Stopping) {
2827+
} else if (serverState == State.Stopped) {
28282828
s_logger.debug("Scheduling a stop command for " + vm);
28292829
_haMgr.scheduleStop(vm, hostId, WorkType.Stop);
28302830
} else {

0 commit comments

Comments
 (0)