blob: 1d1b6a4ebf701a1c18b8accaedc07c34eacedaa8 (
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
|
<cib crm_feature_set="3.16.1" validate-with="pacemaker-3.7" epoch="269" num_updates="0" admin_epoch="0" cib-last-written="Tue Oct 25 14:29:45 2022" update-origin="node2" update-client="cibadmin" update-user="root" have-quorum="1" dc-uuid="4">
<!-- The essential elements of this test are:
- A primitive has a mandatory colocation with a group
- The group's start is blocked by another resource (in this case, because
it has a mandatory ordering after another primitive whose target-role is
Stopped)
In this scenario, rsc1 should not be allowed to start.
-->
<configuration>
<crm_config>
<cluster_property_set id="cib-bootstrap-options">
<nvpair id="cib-bootstrap-options-have-watchdog" name="have-watchdog" value="false"/>
<nvpair id="cib-bootstrap-options-dc-version" name="dc-version" value="2.1.5"/>
<nvpair id="cib-bootstrap-options-cluster-infrastructure" name="cluster-infrastructure" value="corosync"/>
<nvpair id="cib-bootstrap-options-cluster-name" name="cluster-name" value="test"/>
</cluster_property_set>
</crm_config>
<nodes>
<node id="1" uname="node1"/>
<node id="2" uname="node2"/>
<node id="3" uname="node3"/>
<node id="4" uname="node4"/>
<node id="5" uname="node5"/>
</nodes>
<resources>
<primitive class="stonith" id="Fencing" type="fence_xvm">
<meta_attributes id="Fencing-meta">
<nvpair id="Fencing-migration-threshold" name="migration-threshold" value="5"/>
</meta_attributes>
<instance_attributes id="Fencing-params">
<nvpair id="Fencing-key_file" name="key_file" value="/etc/pacemaker/fence_xvm.key"/>
<nvpair id="Fencing-multicast_address" name="multicast_address" value="239.255.100.100"/>
<nvpair id="Fencing-pcmk_host_list" name="pcmk_host_list" value="node1 node2 node3 node4 node5"/>
</instance_attributes>
<operations>
<op id="Fencing-monitor-120s" interval="120s" name="monitor" timeout="120s"/>
</operations>
</primitive>
<primitive class="ocf" id="rsc1" provider="pacemaker" type="Dummy">
<operations>
<op id="rsc1-migrate_from-interval-0s" interval="0s" name="migrate_from" timeout="20s"/>
<op id="rsc1-migrate_to-interval-0s" interval="0s" name="migrate_to" timeout="20s"/>
<op id="rsc1-monitor-interval-10s" interval="10s" name="monitor" timeout="20s"/>
<op id="rsc1-reload-interval-0s" interval="0s" name="reload" timeout="20s"/>
<op id="rsc1-reload-agent-interval-0s" interval="0s" name="reload-agent" timeout="20s"/>
<op id="rsc1-start-interval-0s" interval="0s" name="start" timeout="20s"/>
<op id="rsc1-stop-interval-0s" interval="0s" name="stop" timeout="20s"/>
</operations>
</primitive>
<group id="group1">
<primitive class="ocf" id="group1a" provider="pacemaker" type="Dummy">
<operations>
<op id="group1a-migrate_from-interval-0s" interval="0s" name="migrate_from" timeout="20s"/>
<op id="group1a-migrate_to-interval-0s" interval="0s" name="migrate_to" timeout="20s"/>
<op id="group1a-monitor-interval-10s" interval="10s" name="monitor" timeout="20s" on-fail="block"/>
<op id="group1a-reload-interval-0s" interval="0s" name="reload" timeout="20s"/>
<op id="group1a-reload-agent-interval-0s" interval="0s" name="reload-agent" timeout="20s"/>
<op id="group1a-start-interval-0s" interval="0s" name="start" timeout="20s"/>
<op id="group1a-stop-interval-0s" interval="0s" name="stop" timeout="20s"/>
</operations>
</primitive>
<primitive class="ocf" id="group1b" provider="pacemaker" type="Dummy">
<operations>
<op id="group1b-migrate_from-interval-0s" interval="0s" name="migrate_from" timeout="20s"/>
<op id="group1b-migrate_to-interval-0s" interval="0s" name="migrate_to" timeout="20s"/>
<op id="group1b-monitor-interval-10s" interval="10s" name="monitor" timeout="20s"/>
<op id="group1b-reload-interval-0s" interval="0s" name="reload" timeout="20s"/>
<op id="group1b-reload-agent-interval-0s" interval="0s" name="reload-agent" timeout="20s"/>
<op id="group1b-start-interval-0s" interval="0s" name="start" timeout="20s"/>
<op id="group1b-stop-interval-0s" interval="0s" name="stop" timeout="20s"/>
</operations>
</primitive>
</group>
<primitive class="ocf" id="rsc2" provider="pacemaker" type="Dummy">
<meta_attributes id="rsc2-meta_attributes">
<nvpair id="rsc2-meta_attributes-target-role" name="target-role" value="Stopped"/>
</meta_attributes>
<operations>
<op id="rsc2-migrate_from-interval-0s" interval="0s" name="migrate_from" timeout="20s"/>
<op id="rsc2-migrate_to-interval-0s" interval="0s" name="migrate_to" timeout="20s"/>
<op id="rsc2-monitor-interval-10s" interval="10s" name="monitor" timeout="20s"/>
<op id="rsc2-reload-interval-0s" interval="0s" name="reload" timeout="20s"/>
<op id="rsc2-reload-agent-interval-0s" interval="0s" name="reload-agent" timeout="20s"/>
<op id="rsc2-start-interval-0s" interval="0s" name="start" timeout="20s"/>
<op id="rsc2-stop-interval-0s" interval="0s" name="stop" timeout="20s"/>
</operations>
</primitive>
</resources>
<constraints>
<rsc_colocation id="colocation-rsc1-group1-INFINITY" rsc="rsc1" score="INFINITY" with-rsc="group1"/>
<rsc_order first="rsc2" first-action="start" id="order-rsc2-group1-mandatory" then="group1" then-action="start"/>
</constraints>
<fencing-topology/>
<op_defaults/>
<alerts/>
<rsc_defaults/>
</configuration>
<status>
<node_state id="1" uname="node1" in_ccm="true" crmd="online" crm-debug-origin="do_update_resource" join="member" expected="member">
<transient_attributes id="1">
<instance_attributes id="status-1">
<nvpair id="status-1-.feature-set" name="#feature-set" value="3.16.1"/>
</instance_attributes>
</transient_attributes>
<lrm id="1">
<lrm_resources>
<lrm_resource id="Fencing" type="fence_xvm" class="stonith">
<lrm_rsc_op id="Fencing_last_0" operation_key="Fencing_start_0" operation="start" crm-debug-origin="crm_simulate" crm_feature_set="3.16.1" transition-key="9:-1:0:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" transition-magic="0:0;9:-1:0:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" exit-reason="" on_node="node1" call-id="9" rc-code="0" op-status="0" interval="0" last-rc-change="1666726336" exec-time="0" queue-time="0" op-digest="52e34745a77d95a636428d3b550eb867"/>
<lrm_rsc_op id="Fencing_monitor_120000" operation_key="Fencing_monitor_120000" operation="monitor" crm-debug-origin="crm_simulate" crm_feature_set="3.16.1" transition-key="10:-1:0:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" transition-magic="0:0;10:-1:0:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" exit-reason="" on_node="node1" call-id="10" rc-code="0" op-status="0" interval="120000" last-rc-change="1666726336" exec-time="0" queue-time="0" op-digest="acc6dd2c58c637db4d12a6fe35626617"/>
</lrm_resource>
<lrm_resource id="rsc1" class="ocf" provider="pacemaker" type="Dummy">
<lrm_rsc_op id="rsc1_last_0" operation_key="rsc1_monitor_0" operation="monitor" crm-debug-origin="crm_simulate" crm_feature_set="3.17.2" transition-key="1:-1:7:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" transition-magic="0:7;1:-1:7:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" exit-reason="" call-id="1" rc-code="7" op-status="0" interval="0" last-rc-change="1670956304" exec-time="0" queue-time="0" op-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8"/>
</lrm_resource>
<lrm_resource id="group1a" class="ocf" provider="pacemaker" type="Dummy">
<lrm_rsc_op id="group1a_last_0" operation_key="group1a_monitor_0" operation="monitor" crm-debug-origin="crm_simulate" crm_feature_set="3.17.2" transition-key="1:-1:7:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" transition-magic="0:7;1:-1:7:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" exit-reason="" call-id="1" rc-code="7" op-status="0" interval="0" last-rc-change="1670956304" exec-time="0" queue-time="0" op-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8"/>
</lrm_resource>
<lrm_resource id="group1b" class="ocf" provider="pacemaker" type="Dummy">
<lrm_rsc_op id="group1b_last_0" operation_key="group1b_monitor_0" operation="monitor" crm-debug-origin="crm_simulate" crm_feature_set="3.17.2" transition-key="1:-1:7:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" transition-magic="0:7;1:-1:7:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" exit-reason="" call-id="1" rc-code="7" op-status="0" interval="0" last-rc-change="1670956304" exec-time="0" queue-time="0" op-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8"/>
</lrm_resource>
</lrm_resources>
</lrm>
</node_state>
<node_state id="5" uname="node5" in_ccm="true" crmd="online" crm-debug-origin="do_update_resource" join="member" expected="member">
<transient_attributes id="5">
<instance_attributes id="status-5">
<nvpair id="status-5-.feature-set" name="#feature-set" value="3.16.1"/>
</instance_attributes>
</transient_attributes>
<lrm id="5">
<lrm_resources>
<lrm_resource id="Fencing" type="fence_xvm" class="stonith">
<lrm_rsc_op id="Fencing_last_0" operation_key="Fencing_monitor_0" operation="monitor" crm-debug-origin="do_update_resource" crm_feature_set="3.16.1" transition-key="5:0:7:72f87069-7296-4421-b2b0-ab12fa9068ef" transition-magic="0:7;5:0:7:72f87069-7296-4421-b2b0-ab12fa9068ef" exit-reason="" on_node="node5" call-id="5" rc-code="7" op-status="0" interval="0" last-rc-change="1666726234" exec-time="1" queue-time="0" op-digest="ac94f147daea19463126aacea2f8cd39"/>
</lrm_resource>
<lrm_resource id="rsc1" class="ocf" provider="pacemaker" type="Dummy">
<lrm_rsc_op id="rsc1_last_0" operation_key="rsc1_monitor_0" operation="monitor" crm-debug-origin="crm_simulate" crm_feature_set="3.17.2" transition-key="1:-1:7:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" transition-magic="0:7;1:-1:7:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" exit-reason="" call-id="1" rc-code="7" op-status="0" interval="0" last-rc-change="1670956304" exec-time="0" queue-time="0" op-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8"/>
</lrm_resource>
<lrm_resource id="group1a" class="ocf" provider="pacemaker" type="Dummy">
<lrm_rsc_op id="group1a_last_0" operation_key="group1a_monitor_0" operation="monitor" crm-debug-origin="crm_simulate" crm_feature_set="3.17.2" transition-key="1:-1:7:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" transition-magic="0:7;1:-1:7:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" exit-reason="" call-id="1" rc-code="7" op-status="0" interval="0" last-rc-change="1670956304" exec-time="0" queue-time="0" op-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8"/>
</lrm_resource>
<lrm_resource id="group1b" class="ocf" provider="pacemaker" type="Dummy">
<lrm_rsc_op id="group1b_last_0" operation_key="group1b_monitor_0" operation="monitor" crm-debug-origin="crm_simulate" crm_feature_set="3.17.2" transition-key="1:-1:7:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" transition-magic="0:7;1:-1:7:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" exit-reason="" call-id="1" rc-code="7" op-status="0" interval="0" last-rc-change="1670956304" exec-time="0" queue-time="0" op-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8"/>
</lrm_resource>
</lrm_resources>
</lrm>
</node_state>
<node_state id="3" uname="node3" in_ccm="true" crmd="online" crm-debug-origin="do_update_resource" join="member" expected="member">
<transient_attributes id="3">
<instance_attributes id="status-3">
<nvpair id="status-3-.feature-set" name="#feature-set" value="3.16.1"/>
</instance_attributes>
</transient_attributes>
<lrm id="3">
<lrm_resources>
<lrm_resource id="Fencing" type="fence_xvm" class="stonith">
<lrm_rsc_op id="Fencing_last_0" operation_key="Fencing_monitor_0" operation="monitor" crm-debug-origin="do_update_resource" crm_feature_set="3.16.1" transition-key="3:0:7:72f87069-7296-4421-b2b0-ab12fa9068ef" transition-magic="0:7;3:0:7:72f87069-7296-4421-b2b0-ab12fa9068ef" exit-reason="" on_node="node3" call-id="5" rc-code="7" op-status="0" interval="0" last-rc-change="1666726234" exec-time="1" queue-time="0" op-digest="ac94f147daea19463126aacea2f8cd39"/>
</lrm_resource>
<lrm_resource id="rsc1" class="ocf" provider="pacemaker" type="Dummy">
<lrm_rsc_op id="rsc1_last_0" operation_key="rsc1_monitor_0" operation="monitor" crm-debug-origin="crm_simulate" crm_feature_set="3.17.2" transition-key="1:-1:7:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" transition-magic="0:7;1:-1:7:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" exit-reason="" call-id="1" rc-code="7" op-status="0" interval="0" last-rc-change="1670956304" exec-time="0" queue-time="0" op-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8"/>
</lrm_resource>
<lrm_resource id="group1a" class="ocf" provider="pacemaker" type="Dummy">
<lrm_rsc_op id="group1a_last_0" operation_key="group1a_monitor_0" operation="monitor" crm-debug-origin="crm_simulate" crm_feature_set="3.17.2" transition-key="1:-1:7:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" transition-magic="0:7;1:-1:7:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" exit-reason="" call-id="1" rc-code="7" op-status="0" interval="0" last-rc-change="1670956304" exec-time="0" queue-time="0" op-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8"/>
</lrm_resource>
<lrm_resource id="group1b" class="ocf" provider="pacemaker" type="Dummy">
<lrm_rsc_op id="group1b_last_0" operation_key="group1b_monitor_0" operation="monitor" crm-debug-origin="crm_simulate" crm_feature_set="3.17.2" transition-key="1:-1:7:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" transition-magic="0:7;1:-1:7:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" exit-reason="" call-id="1" rc-code="7" op-status="0" interval="0" last-rc-change="1670956304" exec-time="0" queue-time="0" op-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8"/>
</lrm_resource>
</lrm_resources>
</lrm>
</node_state>
<node_state id="4" uname="node4" in_ccm="true" crmd="online" crm-debug-origin="do_update_resource" join="member" expected="member">
<transient_attributes id="4">
<instance_attributes id="status-4">
<nvpair id="status-4-.feature-set" name="#feature-set" value="3.16.1"/>
</instance_attributes>
</transient_attributes>
<lrm id="4">
<lrm_resources>
<lrm_resource id="Fencing" type="fence_xvm" class="stonith">
<lrm_rsc_op id="Fencing_last_0" operation_key="Fencing_monitor_0" operation="monitor" crm-debug-origin="do_update_resource" crm_feature_set="3.16.1" transition-key="4:0:7:72f87069-7296-4421-b2b0-ab12fa9068ef" transition-magic="0:7;4:0:7:72f87069-7296-4421-b2b0-ab12fa9068ef" exit-reason="" on_node="node4" call-id="5" rc-code="7" op-status="0" interval="0" last-rc-change="1666726234" exec-time="1" queue-time="0" op-digest="ac94f147daea19463126aacea2f8cd39"/>
</lrm_resource>
<lrm_resource id="rsc1" class="ocf" provider="pacemaker" type="Dummy">
<lrm_rsc_op id="rsc1_last_0" operation_key="rsc1_monitor_0" operation="monitor" crm-debug-origin="crm_simulate" crm_feature_set="3.17.2" transition-key="1:-1:7:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" transition-magic="0:7;1:-1:7:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" exit-reason="" call-id="1" rc-code="7" op-status="0" interval="0" last-rc-change="1670956304" exec-time="0" queue-time="0" op-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8"/>
</lrm_resource>
<lrm_resource id="group1a" class="ocf" provider="pacemaker" type="Dummy">
<lrm_rsc_op id="group1a_last_0" operation_key="group1a_monitor_0" operation="monitor" crm-debug-origin="crm_simulate" crm_feature_set="3.17.2" transition-key="1:-1:7:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" transition-magic="0:7;1:-1:7:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" exit-reason="" call-id="1" rc-code="7" op-status="0" interval="0" last-rc-change="1670956304" exec-time="0" queue-time="0" op-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8"/>
</lrm_resource>
<lrm_resource id="group1b" class="ocf" provider="pacemaker" type="Dummy">
<lrm_rsc_op id="group1b_last_0" operation_key="group1b_monitor_0" operation="monitor" crm-debug-origin="crm_simulate" crm_feature_set="3.17.2" transition-key="1:-1:7:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" transition-magic="0:7;1:-1:7:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" exit-reason="" call-id="1" rc-code="7" op-status="0" interval="0" last-rc-change="1670956304" exec-time="0" queue-time="0" op-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8"/>
</lrm_resource>
</lrm_resources>
</lrm>
</node_state>
<node_state id="2" uname="node2" in_ccm="true" crmd="online" crm-debug-origin="do_update_resource" join="member" expected="member">
<transient_attributes id="2">
<instance_attributes id="status-2">
<nvpair id="status-2-.feature-set" name="#feature-set" value="3.16.1"/>
</instance_attributes>
</transient_attributes>
<lrm id="2">
<lrm_resources>
<lrm_resource id="Fencing" type="fence_xvm" class="stonith">
<lrm_rsc_op id="Fencing_last_0" operation_key="Fencing_monitor_0" operation="monitor" crm-debug-origin="do_update_resource" crm_feature_set="3.16.1" transition-key="2:0:7:72f87069-7296-4421-b2b0-ab12fa9068ef" transition-magic="0:7;2:0:7:72f87069-7296-4421-b2b0-ab12fa9068ef" exit-reason="" on_node="node2" call-id="5" rc-code="7" op-status="0" interval="0" last-rc-change="1666726234" exec-time="2" queue-time="0" op-digest="ac94f147daea19463126aacea2f8cd39"/>
</lrm_resource>
<lrm_resource id="rsc1" class="ocf" provider="pacemaker" type="Dummy">
<lrm_rsc_op id="rsc1_last_0" operation_key="rsc1_monitor_0" operation="monitor" crm-debug-origin="crm_simulate" crm_feature_set="3.17.2" transition-key="1:-1:7:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" transition-magic="0:7;1:-1:7:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" exit-reason="" call-id="1" rc-code="7" op-status="0" interval="0" last-rc-change="1670956304" exec-time="0" queue-time="0" op-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8"/>
</lrm_resource>
<lrm_resource id="group1a" class="ocf" provider="pacemaker" type="Dummy">
<lrm_rsc_op id="group1a_last_0" operation_key="group1a_monitor_0" operation="monitor" crm-debug-origin="crm_simulate" crm_feature_set="3.17.2" transition-key="1:-1:7:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" transition-magic="0:7;1:-1:7:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" exit-reason="" call-id="1" rc-code="7" op-status="0" interval="0" last-rc-change="1670956304" exec-time="0" queue-time="0" op-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8"/>
</lrm_resource>
<lrm_resource id="group1b" class="ocf" provider="pacemaker" type="Dummy">
<lrm_rsc_op id="group1b_last_0" operation_key="group1b_monitor_0" operation="monitor" crm-debug-origin="crm_simulate" crm_feature_set="3.17.2" transition-key="1:-1:7:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" transition-magic="0:7;1:-1:7:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" exit-reason="" call-id="1" rc-code="7" op-status="0" interval="0" last-rc-change="1670956304" exec-time="0" queue-time="0" op-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8"/>
</lrm_resource>
</lrm_resources>
</lrm>
</node_state>
</status>
</cib>
|