bug 5915: removing the check to see if there are other hosts in maintenance, whilst enabling host maintenance

status 5915: resolved fixed
This commit is contained in:
abhishek 2011-01-05 13:47:39 -08:00
parent f3e91de0bd
commit 1d25a33be1

View File

@ -2074,12 +2074,6 @@ public class AgentManagerImpl implements AgentManager, HandlerFactory,
+ ". Please specify a valid host ID.");
}
if (_hostDao.countBy(host.getClusterId(), Status.PrepareForMaintenance,
Status.ErrorInMaintenance, Status.Maintenance) > 0) {
throw new InvalidParameterValueException(
"There are other servers in maintenance mode.");
}
if (_storageMgr.isLocalStorageActiveOnHost(host)) {
throw new InvalidParameterValueException(
"There are active VMs using the host's local storage pool. Please stop all VMs on this host that use local storage.");