mirror of https://github.com/apache/cloudstack.git
bug 8480: allow multiple hosts in maintenance mode
status 8480: resolved fixed
This commit is contained in:
parent
05e5845176
commit
6d691f0021
|
|
@ -697,8 +697,8 @@ public class ManagementServerImpl implements ManagementServer {
|
|||
throw new InvalidParameterValueException("Unable to find host with ID: " + hostId + ". 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 (_hostDao.countBy(host.getClusterId(), Status.PrepareForMaintenance, Status.ErrorInMaintenance) > 0) {
|
||||
throw new InvalidParameterValueException("There are other servers in PrepareForMaintenance OR ErrorInMaintenance STATUS in cluster " + host.getClusterId());
|
||||
}
|
||||
|
||||
if (_storageMgr.isLocalStorageActiveOnHost(host)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue