[Pacemaker] FSA state transition diagram

Andrew Beekhof andrew at beekhof.net
Tue Aug 25 10:16:54 EDT 2009


You can also generate one from the source files.
make -C crmd graphs

although you'll need to apply the following patch first:

diff -r e8fd48f934a9 crmd/Makefile.am
--- a/crmd/Makefile.am	Mon Aug 24 19:06:39 2009 +0200
+++ b/crmd/Makefile.am	Tue Aug 25 16:16:45 2009 +0200
@@ -65,4 +65,4 @@ graphs:	fsa_inputs.png fsa_inputs_by_act
 	dot -Tpng $< > $@

 %.dot : fsa_matrix.h make_dot.pl
-	perl $(top_srcdir)/crm/crmd/make_dot.pl
$(top_srcdir)/crm/crmd/fsa_matrix.h $(top_builddir)/crm/crmd
+	perl $(top_srcdir)/crmd/make_dot.pl $(top_srcdir)/crmd/fsa_matrix.h
$(top_builddir)/crmd


On Mon, Aug 24, 2009 at 11:44 PM, hj lee<kerdosa at gmail.com> wrote:
> Hi,
>
> Just for fun, I wrote a simple program that translates the crmd FSA state
> transition to dot file, and attached the resulting jpg file.
> Note that this state transition diagram is not 100% correct. I had to
> simplify it by
> 1. When input is one of I_FAIL, I_ERROR, I_STOP, I_SHUTDOWN, I_HALT or
> I_TERMNATE, then only the first one was written to dot file.
> 2. The transition from S_STARTING to S_RECOVERY has the many input cases
> ("I_CIB_UPDATE/I_PE_CALC/I_RELEASE_DC/I_ELECTION_DC/I_INTEGRATED/I_FINALIZED/I_NODE_JOIN/I_NOT_DC/I_RELEASE_FAIL/I_RELEASE_SUCCESS/I_TE_SUCCESS/I_PE_SUCCESS/I_JOIN_RESULT").
> I replaced it with "*".
>
> Thanks
>
>
> _______________________________________________
> Pacemaker mailing list
> Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
>




More information about the Pacemaker mailing list