cluster/rgmanager/src/daemons/tests deptest2.c ...
CVSROOT: /cvs/cluster
Module name: cluster
Changes by: lhh at sourceware.org 2007-04-18 17:11:53
Added files:
rgmanager/src/daemons/tests: deptest2.conf deptest2.in
Log message:
Add obvious requirement on shared resource case as suggested by Simone Gotti
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/tests/deptest2.conf.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/tests/deptest2.in.diff?cvsroot=cluster&r1=NONE&r2=1.1
/cvs/cluster/cluster/rgmanager/src/daemons/tests/deptest2.conf,v --> standard output revision 1.1
- renamed from rgmanager/src/daemons/tests/deptest2.conf +50 -0
@@ -0,0 +1,50 @@ +<?xml version="1.0"?> +<!-- + + * 4 nodes + * 3 services + * A requires colocation with B to operate + * C requires colocation with B to operate + + Setup: + * Start service B on node 1 + * Start service A on node 1 + * Start service C on node 1 + + Introduce a failure: + * Stop service B + + Solution: + * Stop A (or C) + * Stop C (or A) + * Stop B + * start B + * start A (or C) + * start C (or A) + + try: ../dtest ../../resources deptest2.conf < deptest2.in +--> +<cluster> + <clusternodes> + <clusternode name="node1" nodeid="1"/> + <clusternode name="node2" nodeid="2"/> + <clusternode name="node3" nodeid="3"/> + <clusternode name="node4" nodeid="4"/> + </clusternodes> + <rm> + <dependencies> + <dependency name="service:a"> + <target name="service:b" require="always" colocate="always"/> + </dependency> + <dependency name="service:c"> + <target name="service:b" require="always" colocate="always" /> + </dependency> + </dependencies> + <failoverdomains> + </failoverdomains> + <resources/> + <service name="a" /> + <service name="b" /> + <service name="c" /> + </rm> +</cluster>
/cvs/cluster/cluster/rgmanager/src/daemons/tests/deptest2.in,v --> standard output revision 1.1
- renamed from rgmanager/src/daemons/tests/deptest2.in +11 -0
@@ -0,0 +1,11 @@ +dep +online 1 2 3 4 +start b 1 +start a 1 +start c 1 +state +check +stop b +calc +apply +state