HA VM with local storage works

This commit is contained in:
Anthony Xu 2014-07-29 16:30:29 -07:00
parent e10f8e8875
commit fefb0028fe

View File

@ -560,7 +560,8 @@ public class HighAvailabilityManagerImpl extends ManagerBase implements HighAvai
return null; // VM doesn't require HA
}
if (!volumeMgr.canVmRestartOnAnotherServer(vm.getId())) {
if ((host == null || host.getRemoved() != null || host.getState() != Status.Up)
&& !volumeMgr.canVmRestartOnAnotherServer(vm.getId())) {
if (s_logger.isDebugEnabled()) {
s_logger.debug("VM can not restart on another server.");
}