Skip to content

Commit fefb002

Browse files
author
Anthony Xu
committed
HA VM with local storage works
1 parent e10f8e8 commit fefb002

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

server/src/com/cloud/ha/HighAvailabilityManagerImpl.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,8 @@ protected Long restart(HaWorkVO work) {
560560
return null; // VM doesn't require HA
561561
}
562562

563-
if (!volumeMgr.canVmRestartOnAnotherServer(vm.getId())) {
563+
if ((host == null || host.getRemoved() != null || host.getState() != Status.Up)
564+
&& !volumeMgr.canVmRestartOnAnotherServer(vm.getId())) {
564565
if (s_logger.isDebugEnabled()) {
565566
s_logger.debug("VM can not restart on another server.");
566567
}

0 commit comments

Comments
 (0)