cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wid...@apache.org
Subject [03/50] [abbrv] git commit: updated refs/heads/rbd-snap-clone to bc82173
Date Sat, 18 May 2013 12:56:28 GMT
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/rbd-snap-clone
Commit: c8af438e64abea2c4138fab13c1d4d5ab669ada0
Parents: ddd7cfd
Author: Prachi Damle <prachi@cloud.com>
Authored: Wed May 15 14:27:27 2013 -0700
Committer: Prachi Damle <prachi@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);


Mime
View raw message