Updated Branches: refs/heads/master ddd7cfd71 -> c8af438e6
CLOUDSTACK-2522: While processing agents behind on ping, we may fail to process a host that is already in 'Down' state Changes: - Added a transition for DOWN -> DOWN state on PING TIMEOUT so that transition will set mgmt_server_id in the host table to null. Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/c8af438e Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/c8af438e Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/c8af438e Branch: refs/heads/master Commit: c8af438e64abea2c4138fab13c1d4d5ab669ada0 Parents: ddd7cfd Author: Prachi Damle <pra...@cloud.com> Authored: Wed May 15 14:27:27 2013 -0700 Committer: Prachi Damle <pra...@cloud.com> Committed: Wed May 15 14:27:27 2013 -0700 ---------------------------------------------------------------------- api/src/com/cloud/host/Status.java | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/c8af438e/api/src/com/cloud/host/Status.java ---------------------------------------------------------------------- diff --git a/api/src/com/cloud/host/Status.java b/api/src/com/cloud/host/Status.java index 97b151d..dd49122 100755 --- a/api/src/com/cloud/host/Status.java +++ b/api/src/com/cloud/host/Status.java @@ -147,6 +147,7 @@ public enum Status { s_fsm.addTransition(Status.Down, Event.Remove, Status.Removed); s_fsm.addTransition(Status.Down, Event.ManagementServerDown, Status.Down); s_fsm.addTransition(Status.Down, Event.AgentDisconnected, Status.Down); + s_fsm.addTransition(Status.Down, Event.PingTimeout, Status.Down); s_fsm.addTransition(Status.Alert, Event.AgentConnected, Status.Connecting); s_fsm.addTransition(Status.Alert, Event.Ping, Status.Up); s_fsm.addTransition(Status.Alert, Event.Remove, Status.Removed);