You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: engine/orchestration/src/main/java/com/cloud/agent/manager/ClusteredAgentManagerImpl.java
+16-14Lines changed: 16 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -341,7 +341,9 @@ public boolean executeUserRequest(final long hostId, final Event event) throws A
341
341
// don't process disconnect if the disconnect came for the host via delayed cluster notification,
342
342
// but the host has already reconnected to the current management server
343
343
if (!attache.forForward()) {
344
-
logger.debug("Not processing {} event for the host id={} as the host is directly connected to the current management server {}", Event.AgentDisconnected, hostId, _nodeId);
344
+
logger.debug(
345
+
"Not processing {} event for the host [id: {}, name: {}] as the host is directly connected to the current management server {}",
logger.info("Deleting entries from op_host_transfer table for Management server {}", vo.getMsid());
725
+
logger.info("Deleting entries from op_host_transfer table for Management server {}", vo);
724
726
cleanupTransferMap(vo.getMsid());
725
727
}
726
728
}
@@ -827,7 +829,7 @@ public void startRebalanceAgents() {
827
829
}
828
830
829
831
if (hostsToRebalance != null && !hostsToRebalance.isEmpty()) {
830
-
logger.debug("Found {} hosts to rebalance from management server {}", hostsToRebalance.size(), node.getMsid());
832
+
logger.debug("Found {} hosts to rebalance from management server {}", hostsToRebalance.size(), node);
831
833
for (finalHostVOhost : hostsToRebalance) {
832
834
finallonghostId = host.getId();
833
835
logger.debug("Asking management server {} to give away host id={}", node, host);
@@ -1032,29 +1034,29 @@ protected boolean rebalanceHost(final long hostId, final long currentOwnerId, fi
1032
1034
} elseif (futureOwnerId == _nodeId) {
1033
1035
finalHostVOhost = _hostDao.findById(hostId);
1034
1036
try {
1035
-
logger.debug("Disconnecting host {}({}) as a part of rebalance process without notification", host.getId(), host.getName());
1037
+
logger.debug("Disconnecting host {} as a part of rebalance process without notification", host);
1036
1038
1037
1039
finalAgentAttacheattache = findAttache(hostId);
1038
1040
if (attache != null) {
1039
1041
result = handleDisconnect(attache, Event.AgentDisconnected, false, false, true);
1040
1042
}
1041
1043
1042
1044
if (result) {
1043
-
logger.debug("Loading directly connected host {}({}) to the management server {} as a part of rebalance process", host.getId(), host.getName(), _nodeId);
1045
+
logger.debug("Loading directly connected host {} to the management server {} as a part of rebalance process", host, _nodeId);
1044
1046
result = loadDirectlyConnectedHost(host, true);
1045
1047
} else {
1046
-
logger.warn("Failed to disconnect {}({}) as a part of rebalance process without notification" + host.getId(), host.getName());
1048
+
logger.warn("Failed to disconnect {} as a part of rebalance process without notification", host);
1047
1049
}
1048
1050
1049
1051
} catch (finalExceptionex) {
1050
-
logger.warn("Failed to load directly connected host {}({}) to the management server {} a part of rebalance process without notification", host.getId(), host.getName(), _nodeId, ex);
1052
+
logger.warn("Failed to load directly connected host {} to the management server {} a part of rebalance process without notification", host, _nodeId, ex);
1051
1053
result = false;
1052
1054
}
1053
1055
1054
1056
if (result) {
1055
-
logger.debug("Successfully loaded directly connected host {}({}) to the management server {} a part of rebalance process without notification", host.getId(), host.getName(), _nodeId);
1057
+
logger.debug("Successfully loaded directly connected host {} to the management server {} a part of rebalance process without notification", host, _nodeId);
1056
1058
} else {
1057
-
logger.warn("Failed to load directly connected host {}({}) to the management server {} a part of rebalance process without notification", host.getId(), host.getName(), _nodeId);
1059
+
logger.warn("Failed to load directly connected host {} to the management server {} a part of rebalance process without notification", host, _nodeId);
1058
1060
}
1059
1061
}
1060
1062
@@ -1126,18 +1128,18 @@ protected boolean startRebalance(final long hostId) {
Copy file name to clipboardExpand all lines: engine/orchestration/src/main/java/org/apache/cloudstack/engine/datacenter/entity/api/db/EngineHostPodVO.java
0 commit comments