mirror of https://github.com/apache/cloudstack.git
Fix the validation of CPVMs states in multiple zones (#13021)
Co-authored-by: Toni Zamparetti <toni.zamparetti@scclouds.com.br> Co-authored-by: Bernardo De Marco Gonçalves <bernardomg2004@gmail.com>
This commit is contained in:
parent
ff9ee24d12
commit
b642bbe38e
|
|
@ -1525,12 +1525,9 @@ public class ConsoleProxyManagerImpl extends ManagerBase implements ConsoleProxy
|
|||
return false;
|
||||
}
|
||||
|
||||
List<ConsoleProxyVO> l = consoleProxyDao.getProxyListInStates(State.Starting, State.Stopping);
|
||||
if (l.size() > 0) {
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("Zone {} has {} console proxy VM(s) in transition state", zone, l.size());
|
||||
}
|
||||
|
||||
List<ConsoleProxyVO> consoleProxiesInTransitionStates = consoleProxyDao.getProxyListInStates(dataCenterId, State.Starting, State.Stopping);
|
||||
if (!consoleProxiesInTransitionStates.isEmpty()) {
|
||||
logger.debug("Zone {} has {} console proxy VM(s) in transition state.", zone, consoleProxiesInTransitionStates.size());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue