Greg Padgett has uploaded a new change for review.

Change subject: agent: add agent fsm diagram source
......................................................................

agent: add agent fsm diagram source

Add README.AGENT-FSM.gv file containing graphviz source for HA agent FSM.

Change-Id: I82522e53dda7ab247801634f7ef34f9bdb0e8f3a
Signed-off-by: Greg Padgett <gpadg...@redhat.com>
---
A README.AGENT-FSM.gv
1 file changed, 42 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-hosted-engine-ha 
refs/changes/36/19536/1

diff --git a/README.AGENT-FSM.gv b/README.AGENT-FSM.gv
new file mode 100644
index 0000000..a44c8c0
--- /dev/null
+++ b/README.AGENT-FSM.gv
@@ -0,0 +1,42 @@
+/**
+ * This file contains the source for a graphviz FSM diagram of the HA agent
+ * state machine.  To create an image, fsm.png in this case, run the following:
+ *
+ *   dot README.AGENT-FSM.gv -Tpng -o fsm.png
+ *
+ * A copy of the latest diagram should be available at:
+ *
+ *   http://www.ovirt.org/Features/Self_Hosted_Engine#Agent_State_Diagram
+ */
+
+digraph finite_state_machine {
+    //rankdir=LR;
+    ranksep = 0.3;
+    //size = "8,5"
+    node [shape = doublecircle]; ENTRY;
+    node [shape = circle]; OFF START ON STOP MIGRATE;
+
+    ENTRY -> OFF [ label = "VM down locally" ];
+    ENTRY -> ON [ label = "VM up  \nlocally  " ];
+
+    OFF -> OFF [ label = "VM down locally" ];
+    OFF -> ON [ label = "VM unexpectedly  \nrunning locally  " ];
+    OFF -> START [ label = "VM down  \nglobally, host has  \nhighest score  " 
];
+
+    START -> OFF [ label = "VM startup  \nfailed  " ];
+    START -> ON [ label = "VM powered on" ];
+
+    ON -> ON [ label = "VM up locally" ];
+    ON -> OFF [ label = "VM died  \nunexpectedly  " ];
+    ON -> MIGRATE [ label = "VM up locally,  \nother host has  \nmuch better 
score  " ];
+    ON -> STOP [ label = "VM timed out  \nwith bad health  \nstatus  " ];
+
+    STOP -> STOP [ label = "VM shutdown\nin progress" ];
+    STOP -> OFF [ label = "VM shutdown\nsuccessful" ];
+    STOP -> ENTRY [ label = "VM failed to stop,\nunknown state" ];
+
+    MIGRATE -> MIGRATE [ label = "VM migration\nin progress" ];
+    MIGRATE -> OFF [ label = "VM migration\nsuccessful" ];
+    MIGRATE -> STOP [ label = "VM migration\nfailed" ];
+}
+


-- 
To view, visit http://gerrit.ovirt.org/19536
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I82522e53dda7ab247801634f7ef34f9bdb0e8f3a
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-hosted-engine-ha
Gerrit-Branch: master
Gerrit-Owner: Greg Padgett <gpadg...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to