<?xml version="1.0"?>
<!--
  Basic "whiteboard" case:

  * 4 nodes
  * 2 restricted failover domains:
    * A is allowed to run on {1 4}
    * B is allowed to run on {3 4}
  * 3 services
    * A requires B to operate
    * B requires C to operate
    * A must NEVER run on the same node as B.

  Setup:
  * Start service C on node 2
  * Start service B on node 4
  * Start service A on node 1
  * Nothing is running on node 3

  Introduce a failure:
  * Kill off node 1

  Solution:
  * A must be moved to the stopped state (its owner is dead)
  * B must be stopped on node 4, and started on node 3
  * A must be started on node 4, since that is the only legal target
    of service A

  try: ../dtest ../../resources deptest1.conf < deptest1.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="never"/>
			</dependency>
			<dependency name="service:b">
				<target name="service:c" require="always" />
			</dependency>
		</dependencies>
		<failoverdomains>
			<failoverdomain name="nodes-14" restricted="1">
				<failoverdomainnode name="node1" priority="1"/>
				<failoverdomainnode name="node4" priority="1"/>
			</failoverdomain>
			<failoverdomain name="nodes-34" restricted="1">
				<failoverdomainnode name="node3" priority="1"/>
				<failoverdomainnode name="node4" priority="1"/>
			</failoverdomain>
		</failoverdomains>
		<resources/>
		<service name="a" domain="nodes-14" />
		<service name="b" domain="nodes-34" />
		<service name="c" />
	</rm>
	<fence_daemon post_fail_delay="0" post_join_delay="3"/>
</cluster>
