bug 10834: when VMware host is down, don't try to restat VMs on other host. VMware prohibits VM relocation when host is down

This commit is contained in:
Kelven Yang 2011-08-17 18:07:52 -07:00
parent 35c779d0ae
commit 87796378a7
1 changed files with 5 additions and 0 deletions

View File

@ -187,6 +187,11 @@ public class HighAvailabilityManagerImpl implements HighAvailabilityManager, Clu
return;
}
if(host.getHypervisorType() == HypervisorType.VMware) {
s_logger.info("Don't restart for VMs on host " + host.getId() + " as the host is VMware host");
return;
}
s_logger.warn("Scheduling restart for VMs on host " + host.getId());
final List<VMInstanceVO> vms = _instanceDao.listByHostId(host.getId());