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
|
Created new pacemaker configuration
A new shadow instance was created. To begin using it, enter the following into your shell:
export CIB_shadow=cts-cli
=#=#=#= Begin test: Import the test CIB =#=#=#=
=#=#=#= Current cib after: Import the test CIB =#=#=#=
<cib epoch="2" num_updates="0" admin_epoch="0" have-quorum="1" dc-uuid="1">
<configuration>
<crm_config>
<cluster_property_set id="cib-bootstrap-options">
<nvpair name="cluster-infrastructure" value="corosync" id="cib-bootstrap-options-cluster-infrastructure"/>
<nvpair name="stonith-enabled" value="false" id="cib-bootstrap-options-stonith-enabled"/>
</cluster_property_set>
</crm_config>
<nodes>
<node id="1" uname="cluster01"/>
<node id="2" uname="cluster02"/>
<node id="3" uname="cluster03"/>
<node id="4" type="remote" uname="remote01"/>
</nodes>
<resources>
<bundle id="guest01">
<docker image="pcmk:http"/>
<network ip-range-start="192.168.122.131" host-netmask="24" host-interface="eth0"/>
<primitive class="ocf" id="httpd" provider="heartbeat" type="apache"/>
</bundle>
</resources>
<constraints/>
</configuration>
<status>
<node_state id="1" uname="cluster01" in_ccm="true" crmd="online" join="member" expected="member">
<transient_attributes id="1">
<instance_attributes id="status-1">
<nvpair id="status-1-.feature-set" name="#feature-set" value="3.15.1"/>
</instance_attributes>
</transient_attributes>
</node_state>
<node_state id="2" uname="cluster02" in_ccm="true" crmd="online" join="member" expected="member">
<transient_attributes id="2">
<instance_attributes id="status-2">
<nvpair id="status-2-.feature-set" name="#feature-set" value="3.15.1"/>
</instance_attributes>
</transient_attributes>
</node_state>
<node_state id="3" uname="cluster03" in_ccm="true" crmd="offline" join="down" expected="down"/>
<node_state id="4" uname="remote01" in_ccm="true" remote_node="true"/>
</status>
</cib>
=#=#=#= End test: Import the test CIB - OK (0) =#=#=#=
* Passed: cibadmin - Import the test CIB
=#=#=#= Begin test: Complete text output, no mixed status =#=#=#=
Cluster Summary:
* Stack: corosync
* Current DC: cluster01 (1) (version) - partition with quorum
* Last updated:
* Last change:
* 5 nodes configured
* 4 resource instances configured
Node List:
* Node cluster01 (1): online, feature set 3.15.1
* Node cluster02 (2): online, feature set 3.15.1
* Node cluster03 (3): OFFLINE
* GuestNode guest01-0@: OFFLINE
* RemoteNode remote01 (4): OFFLINE
Active Resources:
* No active resources
=#=#=#= End test: Complete text output, no mixed status - OK (0) =#=#=#=
* Passed: crm_mon - Complete text output, no mixed status
=#=#=#= Begin test: XML output, no mixed status =#=#=#=
<pacemaker-result api-version="X" request="crm_mon --output-as=xml">
<summary>
<stack type="corosync"/>
<current_dc present="true" version="" name="cluster01" id="1" with_quorum="true" mixed_version="false"/>
<last_update time=""/>
<last_change time=""/>
<nodes_configured number="5"/>
<resources_configured number="4" disabled="0" blocked="0"/>
<cluster_options stonith-enabled="false" symmetric-cluster="true" no-quorum-policy="stop" maintenance-mode="false" stop-all-resources="false" stonith-timeout-ms="60000" priority-fencing-delay-ms="0"/>
</summary>
<nodes>
<node name="cluster01" id="1" online="true" standby="false" standby_onfail="false" maintenance="false" pending="false" unclean="false" health="green" feature_set="3.15.1" shutdown="false" expected_up="true" is_dc="true" resources_running="0" type="member"/>
<node name="cluster02" id="2" online="true" standby="false" standby_onfail="false" maintenance="false" pending="false" unclean="false" health="green" feature_set="3.15.1" shutdown="false" expected_up="true" is_dc="false" resources_running="0" type="member"/>
<node name="cluster03" id="3" online="false" standby="false" standby_onfail="false" maintenance="false" pending="false" unclean="false" health="green" shutdown="false" expected_up="false" is_dc="false" resources_running="0" type="member"/>
<node name="guest01-0" id="guest01-0" online="false" standby="false" standby_onfail="false" maintenance="false" pending="false" unclean="false" health="green" shutdown="false" expected_up="false" is_dc="false" resources_running="0" type="remote" id_as_resource="guest01-docker-0"/>
<node name="remote01" id="4" online="false" standby="false" standby_onfail="false" maintenance="false" pending="false" unclean="false" health="green" shutdown="false" expected_up="false" is_dc="false" resources_running="0" type="remote"/>
</nodes>
<resources>
<bundle id="guest01" type="docker" image="pcmk:http" unique="false" maintenance="false" managed="true" failed="false">
<replica id="0">
<resource id="guest01-ip-192.168.122.131" resource_agent="ocf:heartbeat:IPaddr2" role="Stopped" active="false" orphaned="false" blocked="false" maintenance="false" managed="true" failed="false" failure_ignored="false" nodes_running_on="0"/>
<resource id="httpd" resource_agent="ocf:heartbeat:apache" role="Stopped" active="false" orphaned="false" blocked="false" maintenance="false" managed="true" failed="false" failure_ignored="false" nodes_running_on="0"/>
<resource id="guest01-docker-0" resource_agent="ocf:heartbeat:docker" role="Stopped" active="false" orphaned="false" blocked="false" maintenance="false" managed="true" failed="false" failure_ignored="false" nodes_running_on="0"/>
<resource id="guest01-0" resource_agent="ocf:pacemaker:remote" role="Stopped" active="false" orphaned="false" blocked="false" maintenance="false" managed="true" failed="false" failure_ignored="false" nodes_running_on="0"/>
</replica>
</bundle>
</resources>
<node_history/>
<status code="0" message="OK"/>
</pacemaker-result>
=#=#=#= End test: XML output, no mixed status - OK (0) =#=#=#=
* Passed: crm_mon - XML output, no mixed status
=#=#=#= Begin test: Fake inconsistent feature set =#=#=#=
=#=#=#= Current cib after: Fake inconsistent feature set =#=#=#=
<cib epoch="2" num_updates="1" admin_epoch="0" have-quorum="1" dc-uuid="1">
<configuration>
<crm_config>
<cluster_property_set id="cib-bootstrap-options">
<nvpair name="cluster-infrastructure" value="corosync" id="cib-bootstrap-options-cluster-infrastructure"/>
<nvpair name="stonith-enabled" value="false" id="cib-bootstrap-options-stonith-enabled"/>
</cluster_property_set>
</crm_config>
<nodes>
<node id="1" uname="cluster01"/>
<node id="2" uname="cluster02"/>
<node id="3" uname="cluster03"/>
<node id="4" type="remote" uname="remote01"/>
</nodes>
<resources>
<bundle id="guest01">
<docker image="pcmk:http"/>
<network ip-range-start="192.168.122.131" host-netmask="24" host-interface="eth0"/>
<primitive class="ocf" id="httpd" provider="heartbeat" type="apache"/>
</bundle>
</resources>
<constraints/>
</configuration>
<status>
<node_state id="1" uname="cluster01" in_ccm="true" crmd="online" join="member" expected="member">
<transient_attributes id="1">
<instance_attributes id="status-1">
<nvpair id="status-1-.feature-set" name="#feature-set" value="3.15.1"/>
</instance_attributes>
</transient_attributes>
</node_state>
<node_state id="2" uname="cluster02" in_ccm="true" crmd="online" join="member" expected="member">
<transient_attributes id="2">
<instance_attributes id="status-2">
<nvpair id="status-2-.feature-set" name="#feature-set" value="3.15.0"/>
</instance_attributes>
</transient_attributes>
</node_state>
<node_state id="3" uname="cluster03" in_ccm="true" crmd="offline" join="down" expected="down"/>
<node_state id="4" uname="remote01" in_ccm="true" remote_node="true"/>
</status>
</cib>
=#=#=#= End test: Fake inconsistent feature set - OK (0) =#=#=#=
* Passed: crm_attribute - Fake inconsistent feature set
=#=#=#= Begin test: Complete text output, mixed status =#=#=#=
Cluster Summary:
* Stack: corosync
* Current DC: cluster01 (1) (version) - MIXED-VERSION partition with quorum
* Last updated:
* Last change:
* 5 nodes configured
* 4 resource instances configured
Node List:
* Node cluster01 (1): online, feature set 3.15.1
* Node cluster02 (2): online, feature set 3.15.0
* Node cluster03 (3): OFFLINE
* GuestNode guest01-0@: OFFLINE
* RemoteNode remote01 (4): OFFLINE
Active Resources:
* No active resources
=#=#=#= End test: Complete text output, mixed status - OK (0) =#=#=#=
* Passed: crm_mon - Complete text output, mixed status
=#=#=#= Begin test: XML output, mixed status =#=#=#=
<pacemaker-result api-version="X" request="crm_mon --output-as=xml">
<summary>
<stack type="corosync"/>
<current_dc present="true" version="" name="cluster01" id="1" with_quorum="true" mixed_version="true"/>
<last_update time=""/>
<last_change time=""/>
<nodes_configured number="5"/>
<resources_configured number="4" disabled="0" blocked="0"/>
<cluster_options stonith-enabled="false" symmetric-cluster="true" no-quorum-policy="stop" maintenance-mode="false" stop-all-resources="false" stonith-timeout-ms="60000" priority-fencing-delay-ms="0"/>
</summary>
<nodes>
<node name="cluster01" id="1" online="true" standby="false" standby_onfail="false" maintenance="false" pending="false" unclean="false" health="green" feature_set="3.15.1" shutdown="false" expected_up="true" is_dc="true" resources_running="0" type="member"/>
<node name="cluster02" id="2" online="true" standby="false" standby_onfail="false" maintenance="false" pending="false" unclean="false" health="green" feature_set="3.15.0" shutdown="false" expected_up="true" is_dc="false" resources_running="0" type="member"/>
<node name="cluster03" id="3" online="false" standby="false" standby_onfail="false" maintenance="false" pending="false" unclean="false" health="green" shutdown="false" expected_up="false" is_dc="false" resources_running="0" type="member"/>
<node name="guest01-0" id="guest01-0" online="false" standby="false" standby_onfail="false" maintenance="false" pending="false" unclean="false" health="green" shutdown="false" expected_up="false" is_dc="false" resources_running="0" type="remote" id_as_resource="guest01-docker-0"/>
<node name="remote01" id="4" online="false" standby="false" standby_onfail="false" maintenance="false" pending="false" unclean="false" health="green" shutdown="false" expected_up="false" is_dc="false" resources_running="0" type="remote"/>
</nodes>
<resources>
<bundle id="guest01" type="docker" image="pcmk:http" unique="false" maintenance="false" managed="true" failed="false">
<replica id="0">
<resource id="guest01-ip-192.168.122.131" resource_agent="ocf:heartbeat:IPaddr2" role="Stopped" active="false" orphaned="false" blocked="false" maintenance="false" managed="true" failed="false" failure_ignored="false" nodes_running_on="0"/>
<resource id="httpd" resource_agent="ocf:heartbeat:apache" role="Stopped" active="false" orphaned="false" blocked="false" maintenance="false" managed="true" failed="false" failure_ignored="false" nodes_running_on="0"/>
<resource id="guest01-docker-0" resource_agent="ocf:heartbeat:docker" role="Stopped" active="false" orphaned="false" blocked="false" maintenance="false" managed="true" failed="false" failure_ignored="false" nodes_running_on="0"/>
<resource id="guest01-0" resource_agent="ocf:pacemaker:remote" role="Stopped" active="false" orphaned="false" blocked="false" maintenance="false" managed="true" failed="false" failure_ignored="false" nodes_running_on="0"/>
</replica>
</bundle>
</resources>
<node_history/>
<status code="0" message="OK"/>
</pacemaker-result>
=#=#=#= End test: XML output, mixed status - OK (0) =#=#=#=
* Passed: crm_mon - XML output, mixed status
|