blob: 5cc42d647b49143d055b498f9e2b29a176698903 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
<cib epoch="21" num_updates="25" admin_epoch="0" validate-with="pacemaker-3.7" crm_feature_set="3.0.6" update-origin="fc16-builder" update-client="cibadmin" cib-last-written="Fri Jul 13 13:51:11 2012" have-quorum="1" dc-uuid="fc16-builder2">
<configuration>
<crm_config>
<cluster_property_set id="cib-bootstrap-options">
<nvpair id="cib-bootstrap-options-dc-version" name="dc-version" value="1.1.7-fe859a7"/>
<nvpair id="cib-bootstrap-options-cluster-infrastructure" name="cluster-infrastructure" value="corosync"/>
<nvpair id="cib-bootstrap-options-stonith-enabled" name="stonith-enabled" value="false"/>
<nvpair id="cib-bootstrap-options-no-quorum-policy" name="no-quorum-policy" value="ignore"/>
</cluster_property_set>
</crm_config>
<nodes>
<node id="fc16-builder" type="member" uname="fc16-builder">
<instance_attributes id="fc16-builder-instance_attributes">
<nvpair id="fc16-builder-stuffs" name="give-me-A" value="true"/>
</instance_attributes>
</node>
<node id="fc16-builder2" uname="fc16-builder2" type="member">
<instance_attributes id="fc16-builder2-instance_attributes">
<nvpair id="fc16-builder2-stuffs" name="give-me-A" value="false"/>
</instance_attributes>
</node>
</nodes>
<resources>
<clone id="PROMOTABLE_RSC_A">
<meta_attributes id="PROMOTABLE_RSC_A-meta_attributes">
<nvpair id="PROMOTABLE_RSC_A-meta_attributes-promotable" name="promotable" value="true"/>
<nvpair id="PROMOTABLE_RSC_A-meta_attributes-promoted-max" name="promoted-max" value="1"/>
<nvpair id="PROMOTABLE_RSC_A-meta_attributes-promoted-node-max" name="promoted-node-max" value="1"/>
<nvpair id="PROMOTABLE_RSC_A-meta_attributes-clone-max" name="clone-max" value="1"/>
<nvpair id="PROMOTABLE_RSC_A-meta_attributes-clone-node-max" name="clone-node-max" value="1"/>
<nvpair id="PROMOTABLE_RSC_A-meta_attributes-notify" name="notify" value="true"/>
<nvpair id="PROMOTABLE_RSC_A-meta_attributes-target-role" name="target-role" value="Started"/>
</meta_attributes>
<primitive class="ocf" id="NATIVE_RSC_A" provider="pacemaker" type="Stateful">
<operations>
<op id="NATIVE_RSC_A-start-0" interval="0" name="start" timeout="240"/>
<op id="NATIVE_RSC_A-stop-0" interval="0" name="stop" timeout="100"/>
<op id="NATIVE_RSC_A-monitor-20" interval="20" name="monitor" role="Promoted" timeout="20"/>
<op id="NATIVE_RSC_A-monitor-30" interval="30" name="monitor" role="Unpromoted" timeout="20"/>
</operations>
</primitive>
</clone>
<primitive class="ocf" id="NATIVE_RSC_B" provider="pacemaker" type="Dummy">
<meta_attributes id="NATIVE_RSC_B-meta_attributes">
<nvpair id="NATIVE_RSC_B-meta_attributes-target-role" name="target-role" value="Stopped"/>
</meta_attributes>
<operations>
<op id="NATIVE_RSC_B-start-0" interval="0" name="start" timeout="240"/>
<op id="NATIVE_RSC_B-stop-0" interval="0" name="stop" timeout="100"/>
</operations>
</primitive>
</resources>
<constraints>
<rsc_order first="NATIVE_RSC_B" first-action="start" then="PROMOTABLE_RSC_A" then-action="start" id="promote_then_start"/>
<rsc_location id="A-placement" rsc="PROMOTABLE_RSC_A">
<rule boolean-op="or" id="rule-A-placement" score="-INFINITY">
<expression attribute="give-me-A" id="whatever1" operation="not_defined"/>
<expression attribute="give-me-A" id="whatever2" operation="ne" value="true"/>
</rule>
</rsc_location>
</constraints>
</configuration>
<status>
<node_state id="fc16-builder" uname="fc16-builder" ha="active" in_ccm="true" crmd="online" join="member" expected="member" crm-debug-origin="do_state_transition" shutdown="0">
<transient_attributes id="fc16-builder">
<instance_attributes id="status-fc16-builder">
<nvpair id="status-fc16-builder-probe_complete" name="probe_complete" value="true"/>
<nvpair id="status-fc16-builder-promoted-NATIVE_RSC_A.0" name="master-NATIVE_RSC_A:0" value="10"/>
</instance_attributes>
</transient_attributes>
<lrm id="fc16-builder">
<lrm_resources>
<lrm_resource id="NATIVE_RSC_A:0" type="Stateful" class="ocf" provider="pacemaker">
<lrm_rsc_op id="NATIVE_RSC_A:0_last_0" operation_key="NATIVE_RSC_A:0_promote_0" operation="promote" crm-debug-origin="build_active_RAs" crm_feature_set="3.0.6" transition-key="7:5:0:b27a137e-f18a-40ab-ae90-fc916930f1d1" transition-magic="0:0;7:5:0:b27a137e-f18a-40ab-ae90-fc916930f1d1" call-id="12" rc-code="0" op-status="0" interval="0" op-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8"/>
<lrm_rsc_op id="NATIVE_RSC_A:0_monitor_20000" operation_key="NATIVE_RSC_A:0_monitor_20000" operation="monitor" crm-debug-origin="build_active_RAs" crm_feature_set="3.0.6" transition-key="9:6:8:b27a137e-f18a-40ab-ae90-fc916930f1d1" transition-magic="0:8;9:6:8:b27a137e-f18a-40ab-ae90-fc916930f1d1" call-id="14" rc-code="8" op-status="0" interval="20000" op-digest="4811cef7f7f94e3a35a70be7916cb2fd"/>
</lrm_resource>
<lrm_resource id="NATIVE_RSC_B" type="Dummy" class="ocf" provider="pacemaker">
<lrm_rsc_op id="NATIVE_RSC_B_last_0" operation_key="NATIVE_RSC_B_monitor_0" operation="monitor" crm-debug-origin="build_active_RAs" crm_feature_set="3.0.6" transition-key="5:17:7:b27a137e-f18a-40ab-ae90-fc916930f1d1" transition-magic="0:7;5:17:7:b27a137e-f18a-40ab-ae90-fc916930f1d1" call-id="15" rc-code="7" op-status="0" interval="0" op-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8" op-force-restart=" state " op-restart-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8"/>
</lrm_resource>
</lrm_resources>
</lrm>
</node_state>
<node_state id="fc16-builder2" uname="fc16-builder2" ha="active" in_ccm="true" crmd="online" crm-debug-origin="do_state_transition" join="member" expected="member" shutdown="0">
<transient_attributes id="fc16-builder2">
<instance_attributes id="status-fc16-builder2">
<nvpair id="status-fc16-builder2-probe_complete" name="probe_complete" value="true"/>
</instance_attributes>
</transient_attributes>
<lrm id="fc16-builder2">
<lrm_resources>
<lrm_resource id="NATIVE_RSC_A:0" type="Dummy" class="ocf" provider="pacemaker">
<lrm_rsc_op id="NATIVE_RSC_A:0_last_0" operation_key="NATIVE_RSC_A:0_monitor_0" operation="monitor" crm-debug-origin="build_active_RAs" crm_feature_set="3.0.6" transition-key="6:0:7:b27a137e-f18a-40ab-ae90-fc916930f1d1" transition-magic="0:7;6:0:7:b27a137e-f18a-40ab-ae90-fc916930f1d1" call-id="2" rc-code="7" op-status="0" interval="0" op-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8" op-force-restart=" state " op-restart-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8"/>
</lrm_resource>
<lrm_resource id="NATIVE_RSC_B" type="Dummy" class="ocf" provider="pacemaker">
<lrm_rsc_op id="NATIVE_RSC_B_last_0" operation_key="NATIVE_RSC_B_start_0" operation="start" crm-debug-origin="build_active_RAs" crm_feature_set="3.0.6" transition-key="36:17:0:b27a137e-f18a-40ab-ae90-fc916930f1d1" transition-magic="0:0;36:17:0:b27a137e-f18a-40ab-ae90-fc916930f1d1" call-id="4" rc-code="0" op-status="0" interval="0" op-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8" op-force-restart=" state " op-restart-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8"/>
</lrm_resource>
</lrm_resources>
</lrm>
</node_state>
</status>
</cib>
|