Skip to content

Commit 97e95fc

Browse files
author
Kelven Yang
committed
bug 10834: when VMware host is down, don't try to restat VMs on other host. VMware prohibits VM relocation when host is down
1 parent c82a373 commit 97e95fc

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,11 @@ public void scheduleRestartForVmsOnHost(final HostVO host, boolean investigate)
187187
return;
188188
}
189189

190+
if(host.getHypervisorType() == HypervisorType.VMware) {
191+
s_logger.info("Don't restart for VMs on host " + host.getId() + " as the host is VMware host");
192+
return;
193+
}
194+
190195
s_logger.warn("Scheduling restart for VMs on host " + host.getId());
191196

192197
final List<VMInstanceVO> vms = _instanceDao.listByHostId(host.getId());

0 commit comments

Comments
 (0)