mirror of https://github.com/apache/cloudstack.git
CS-16213: skip agent rebalancing when the management server doesn't own the host any more
This commit is contained in:
parent
62607c9a75
commit
3948d7d7c5
|
|
@ -863,7 +863,7 @@ public class ClusteredAgentManagerImpl extends AgentManagerImpl implements Clust
|
|||
continue;
|
||||
}
|
||||
|
||||
if (transferMap.getInitialOwner() != _nodeId || attache.forForward()) {
|
||||
if (transferMap.getInitialOwner() != _nodeId || attache == null || attache.forForward()) {
|
||||
s_logger.debug("Management server " + _nodeId + " doesn't own host id=" + hostId + " any more, skipping rebalance for the host");
|
||||
iterator.remove();
|
||||
_hostTransferDao.completeAgentTransfer(hostId);
|
||||
|
|
|
|||
Loading…
Reference in New Issue