[Pacemaker] rule in the rule on SLES11 SP1

Janec, Jozef jozef.janec at hp.com
Tue Jun 14 15:30:17 UTC 2011


FYI: I was able get to work this one

<rsc_location id="M_Master" rsc="rs_ip_usr">
                <rule id="M_Master-rule"  boolean-op="and" score="INFINITY">
                <rule id="M_Master-rule1"  boolean-op="or" score="1">
                        <expression attribute="#uname" id="M_test-1" operation="eq" value="node1"/>
                        <expression attribute="#uname" id="M_test-2" operation="eq" value="node2"/>
                </rule>
                <rule id="M_Master-rule2"  boolean-op="or" score="1">
                        <expression attribute="rule_co" id="test-21" operation="eq" value="2"/>
                        <expression attribute="rule_co" id="test-22" operation="eq" value="1"/>
                </rule>
                </rule>
</rsc_location>

Best regards

Jozef

-----Original Message-----
From: Janec, Jozef 
Sent: Tuesday, June 14, 2011 3:58 PM
To: pacemaker at oss.clusterlabs.org
Subject: rule in the rule on SLES11 SP1

Hello All,

Was somebody able something like this working on sles11 sp1?:

<rsc_location id="L_Master1" rsc="rs_ip_us">
<rule id="rule5"  score="INFINITY" boolean-op="and">
   	<rule id="rule5-nested1" boolean-op="or">
    		<expression attribute="#uname" id="test-1" operation="eq" value="node1"/>
		<expression attribute="#uname" id="test-2" operation="eq" value="node2"/>
   	</rule>
   	<rule id="rule5-nested2" boolean-op="or">
    		<expression attribute="rule_co" id="test-21" operation="eq" value="1"/>
		<expression attribute="rule_co" id="test-22" operation="eq" value="2"/>
   	</rule>
</rule>
</rsc_location>


Thanks for reply

Best regards, 

Jozef





More information about the Pacemaker mailing list