From 1d25a33be13e3197fb8b11e7a6bca05fcf24e132 Mon Sep 17 00:00:00 2001 From: abhishek Date: Wed, 5 Jan 2011 13:47:39 -0800 Subject: [PATCH] bug 5915: removing the check to see if there are other hosts in maintenance, whilst enabling host maintenance status 5915: resolved fixed --- server/src/com/cloud/agent/manager/AgentManagerImpl.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/server/src/com/cloud/agent/manager/AgentManagerImpl.java b/server/src/com/cloud/agent/manager/AgentManagerImpl.java index ec73538f8f9..393440eed6c 100755 --- a/server/src/com/cloud/agent/manager/AgentManagerImpl.java +++ b/server/src/com/cloud/agent/manager/AgentManagerImpl.java @@ -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.");