Page Menu
Home
ClusterLabs Projects
Search
Configure Global Search
Log In
Files
F4511636
lifetime-1.ref-3
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
7 KB
Referenced Files
None
Subscribers
None
lifetime-1.ref-3
View Options
<cib crm_feature_set="3.19.7" validate-with="pacemaker-4.0" epoch="16" num_updates="0" admin_epoch="0" original="1">
<configuration original="1">
<!-- The essential elements of this test are:
* There are four location constraints:
* ban-rsc1-node1 uses node/score and has a lifetime element with two
defined rules.
* ban-rsc2-node1 uses a top-level rule and has a lifetime element
with two referenced rules.
* ban-rsc3-node1 uses node/score and has a lifetime element with one
defined rule.
* ban-rsc4-node1 uses a top-level rule and has a lifetime element
with one referenced rule.
* There are two colocation constraints:
* rsc2-with-rsc1 has a lifetime element with two defined rules.
* rsc4-with-rsc3 has a lifetime element with two referenced rules.
* There are two order constraints:
* rsc1-then-rsc2 has a lifetime element with two defined rules.
* rsc3-then-rsc4 has a lifetime element with two referenced rules.
* A cluster_property_set ("cluster-properties") references two rules
that are defined in the lifetime elements of colocation and order
constraints.
In this situation:
* All lifetime elements should be removed.
* For ban-rsc1-node1, the node/score attributes should be removed and a
compound "and" rule should be created containing the following:
* A rule version of the node/score attributes
* A compound "or" rule containing the lifetime rules
* For ban-rsc1-node2, a compound "and" rule should be created
containing the following:
* The existing top-level rule
* A compound "or" rule containing the lifetime rules
* For ban-rsc1-node3, a compound "and" rule should be created
containing the following:
* A rule version of the node/score attributes
* The lifetime rule
* For ban-rsc1-node4, a compound "and" rule should be created
containing the following:
* The existing top-level rule
* The lifetime rule
* A new location constraint should be created with a rsc-pattern that
can't match any resources. It should have a compound rule containing
all the rules defined in the lifetime elements of the colocation and
order constraints that are referenced elsewhere
(rsc2-with-rsc1-lifetime-rule1 and rsc1-then-rsc2-lifetime-rule2).
-->
<crm_config original="1">
<cluster_property_set id="cluster-properties" original="1">
<rule id="cluster-properties-rule" original="1">
<rule id="rsc1-then-rsc2-lifetime-rule2" original="0">
<date_expression id="rsc1-then-rsc2-lifetime-rule2-expr" operation="in_range" end="2005-001" original="0"/>
</rule>
<rule id="rsc2-with-rsc1-lifetime-rule1" original="0">
<date_expression id="rsc2-with-rsc1-lifetime-rule1-expr" operation="in_range" start="2004-001" original="0"/>
</rule>
</rule>
</cluster_property_set>
</crm_config>
<nodes original="1">
<node id="node1" uname="node1" type="member" original="1"/>
</nodes>
<resources original="1">
<primitive id="rsc1" class="ocf" type="Dummy" provider="pacemaker" original="1"/>
<primitive id="rsc2" class="ocf" type="Dummy" provider="pacemaker" original="1"/>
<primitive id="rsc3" class="ocf" type="Dummy" provider="pacemaker" original="1"/>
<primitive id="rsc4" class="ocf" type="Dummy" provider="pacemaker" original="1"/>
</resources>
<constraints original="1">
<rsc_location id="ban-rsc1-node1" rsc="rsc1" original="1">
<rule id="pcmk__3_10_upgrade-ban-rsc1-node1-lifetime-and-rule" boolean-op="and">
<rule id="pcmk__3_10_upgrade-ban-rsc1-node1-node-score-rule" score="-INFINITY">
<expression id="pcmk__3_10_upgrade-ban-rsc1-node1-node-score-rule-expr" attribute="#uname" operation="eq" value="node1"/>
</rule>
<rule id="pcmk__3_10_upgrade-ban-rsc1-node1-lifetime-or-rule" boolean-op="or">
<rule id="ban-rsc1-node1-lifetime-rule1" original="1">
<date_expression id="ban-rsc1-node1-lifetime-rule1-expr" operation="in_range" start="2004-001" original="1"/>
</rule>
<rule id="ban-rsc1-node1-lifetime-rule2" original="1">
<date_expression id="ban-rsc1-node1-lifetime-rule2-expr" operation="in_range" end="2005-001" original="1"/>
</rule>
</rule>
</rule>
</rsc_location>
<rsc_location id="ban-rsc2-node1" rsc="rsc2" original="1">
<rule id="pcmk__3_10_upgrade-ban-rsc2-node1-lifetime-and-rule" boolean-op="and">
<rule id="ban-rsc2-node1-rule" score="-INFINITY" original="1">
<expression id="ban-rsc2-node1-rule-expr" attribute="#uname" operation="eq" value="node1" original="1"/>
</rule>
<rule id="pcmk__3_10_upgrade-ban-rsc2-node1-lifetime-or-rule" boolean-op="or">
<rule id="ban-rsc1-node1-lifetime-rule1" original="0">
<date_expression id="ban-rsc1-node1-lifetime-rule1-expr" operation="in_range" start="2004-001" original="0"/>
</rule>
<rule id="ban-rsc1-node1-lifetime-rule2" original="0">
<date_expression id="ban-rsc1-node1-lifetime-rule2-expr" operation="in_range" end="2005-001" original="0"/>
</rule>
</rule>
</rule>
</rsc_location>
<rsc_location id="ban-rsc3-node1" rsc="rsc3" original="1">
<rule id="pcmk__3_10_upgrade-ban-rsc3-node1-lifetime-and-rule" boolean-op="and">
<rule id="pcmk__3_10_upgrade-ban-rsc3-node1-node-score-rule" score="-INFINITY">
<expression id="pcmk__3_10_upgrade-ban-rsc3-node1-node-score-rule-expr" attribute="#uname" operation="eq" value="node1"/>
</rule>
<rule id="ban-rsc3-node1-lifetime-rule" original="1">
<date_expression id="ban-rsc3-node1-lifetime-rule-expr" operation="in_range" start="2004-001" original="1"/>
</rule>
</rule>
</rsc_location>
<rsc_location id="ban-rsc4-node1" rsc="rsc4" original="1">
<rule id="pcmk__3_10_upgrade-ban-rsc4-node1-lifetime-and-rule" boolean-op="and">
<rule id="ban-rsc4-node1-rule" score="-INFINITY" original="1">
<expression id="ban-rsc4-node1-rule-expr" attribute="#uname" operation="eq" value="node1" original="1"/>
</rule>
<rule id="ban-rsc3-node1-lifetime-rule" original="0">
<date_expression id="ban-rsc3-node1-lifetime-rule-expr" operation="in_range" start="2004-001" original="0"/>
</rule>
</rule>
</rsc_location>
<rsc_colocation id="rsc2-with-rsc1" score="INFINITY" rsc="rsc2" with-rsc="rsc1" original="1"/>
<rsc_colocation id="rsc4-with-rsc3" score="INFINITY" rsc="rsc4" with-rsc="rsc3" original="1"/>
<rsc_order id="rsc1-then-rsc2" first="rsc1" then="rsc2" original="1"/>
<rsc_order id="rsc3-then-rsc4" first="rsc3" then="rsc4" original="1"/>
<rsc_location id="pcmk__3_10_upgrade-coloc-order-lifetime-rules" rsc-pattern="a^">
<rule id="pcmk__3_10_upgrade-coloc-order-lifetime-rules-rule" score="-INFINITY">
<rule id="rsc2-with-rsc1-lifetime-rule1" original="1">
<date_expression id="rsc2-with-rsc1-lifetime-rule1-expr" operation="in_range" start="2004-001" original="1"/>
</rule>
<rule id="rsc1-then-rsc2-lifetime-rule2" original="1">
<date_expression id="rsc1-then-rsc2-lifetime-rule2-expr" operation="in_range" end="2005-001" original="1"/>
</rule>
</rule>
</rsc_location>
</constraints>
</configuration>
<status original="1"/>
</cib>
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jun 25, 2:06 AM (8 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1944881
Default Alt Text
lifetime-1.ref-3 (7 KB)
Attached To
Mode
rP Pacemaker
Attached
Detach File
Event Timeline
Log In to Comment