Repository: cloudstack Updated Branches: refs/heads/4.5 fda4b9ba2 -> f506f7c42
There are few cases that mgt server won't reponse agent's pingcommand timely, or in KVM's case, libvirt won't repsonse in few mintues, which will cause agent reconnect to mgt server, then all the on going tasks on host will fail Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/893eed98 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/893eed98 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/893eed98 Branch: refs/heads/4.5 Commit: 893eed9863c04bad62f0a0da27f61bd15394d9fb Parents: fda4b9b Author: Edison Su <[email protected]> Authored: Thu Oct 16 16:59:09 2014 -0700 Committer: Edison Su <[email protected]> Committed: Thu Nov 6 15:27:24 2014 -0800 ---------------------------------------------------------------------- agent/src/com/cloud/agent/Agent.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/893eed98/agent/src/com/cloud/agent/Agent.java ---------------------------------------------------------------------- diff --git a/agent/src/com/cloud/agent/Agent.java b/agent/src/com/cloud/agent/Agent.java index 8a34333..7d5f7b1 100755 --- a/agent/src/com/cloud/agent/Agent.java +++ b/agent/src/com/cloud/agent/Agent.java @@ -578,9 +578,7 @@ public class Agent implements HandlerFactory, IAgentControl { final Object obj = task.get(); if (obj instanceof Response) { if ((System.currentTimeMillis() - _lastPingResponseTime) > _pingInterval * _shell.getPingRetries()) { - s_logger.error("Ping Interval has gone past " + _pingInterval * _shell.getPingRetries() + ". Attempting to reconnect."); - final Link link = task.getLink(); - reconnect(link); + s_logger.error("Ping Interval has gone past " + _pingInterval * _shell.getPingRetries() + ". Won't reconnect to mgt server, as connection is still alive"); return; }
