summaryrefslogtreecommitdiffstats
path: root/test/testcases/confbasic.exp
blob: 5fc2dff519bf4a7d8d141d86bc3490762212a6b0 (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
.TRY Basic configure
.INP: configure
.INP: _regtest on
.INP: erase
.INP: erase nodes
.INP: node node1
.INP: delete node1
.INP: node node1 	attributes mem=16G
.INP: node node2 utilization cpu=4
.INP: primitive st stonith:ssh 	params hostlist='node1 node2' 	meta target-role="Started" 	op start timeout=60s 	op monitor interval=60m timeout=60s
.EXT crm_resource --show-metadata stonith:ssh
.EXT stonithd metadata
.INP: primitive st2 stonith:ssh 	params hostlist='node1 node2'
.INP: primitive d1 ocf:pacemaker:Dummy 	operations $id=d1-ops 	op monitor interval=60m 	op monitor interval=120m OCF_CHECK_LEVEL=10
.EXT crm_resource --show-metadata ocf:pacemaker:Dummy
.INP: monitor d1 60s:30s
.INP: primitive d2 ocf:heartbeat:Delay 	params mondelay=60 	op start timeout=60s 	op stop timeout=60s
.EXT crm_resource --show-metadata ocf:heartbeat:Delay
.INP: monitor d2:Started 60s:30s
.INP: group g1 d1 d2
.INP: primitive d3 ocf:pacemaker:Dummy
.INP: clone c d3 	meta clone-max=1
.INP: primitive d4 ocf:pacemaker:Dummy
.INP: ms m d4
WARNING: 19: "ms" is deprecated. Please use "clone m d4 meta promotable=true"
.INP: delete m
.INP: master m d4
WARNING: 21: This command 'master' is deprecated, please use 'ms'
INFO: 21: "master" is accepted as "ms"
WARNING: 21: "ms" is deprecated. Please use "clone m d4 meta promotable=true"
.INP: primitive s5 ocf:pacemaker:Stateful 	operations $id-ref=d1-ops
.EXT crm_resource --show-metadata ocf:pacemaker:Stateful
.INP: primitive s6 ocf:pacemaker:Stateful 	operations $id-ref=d1
.INP: ms m5 s5
WARNING: 24: "ms" is deprecated. Please use "clone m5 s5 meta promotable=true"
.INP: ms m6 s6
WARNING: 25: "ms" is deprecated. Please use "clone m6 s6 meta promotable=true"
.INP: primitive d7 Dummy 	params rule inf: #uname eq node1 fake=1 	params rule inf: #uname eq node2 fake=2         op start interval=0 timeout=60s         op_params 2: rule #uname eq node1 op_param=dummy         op_params 1: op_param=smart         op_meta 2: rule #ra-version version:gt 1.0 start-delay=120m         op_meta 1: start-delay=60m
.EXT crm_resource --show-metadata ocf:heartbeat:Dummy
.INP: primitive d8 ocf:pacemaker:Dummy
.INP: clone m7 d8 	meta promotable=true 	meta promoted-max=1 	meta promoted-node-max=1
.INP: location l1 g1 100: node1
.INP: location l2 c 	rule $id=l2-rule1 100: #uname eq node1
.INP: location l3 m5 	rule inf: #uname eq node1 and pingd gt 0
.INP: location l4 m5 	rule -inf: not_defined pingd or pingd lte 0
.INP: location l5 m5 	rule -inf: not_defined pingd or pingd lte 0 	rule inf: #uname eq node1 and pingd gt 0 	rule inf: date lt "2009-05-26" and 		date in start="2009-05-26" end="2009-07-26" and 		date in start="2009-05-26" years="2009" and 		date spec years="2009" hours="09-17"
.INP: location l6 m5 	rule $id-ref=l2-rule1
.INP: location l7 m5 	rule $id-ref=l2
.INP: collocation c1 inf: m6 m5
WARNING: 36: This command 'collocation' is deprecated, please use 'colocation'
INFO: 36: "collocation" is accepted as "colocation"
.INP: collocation c2 inf: m5:Master d1:Started
WARNING: 37: This command 'collocation' is deprecated, please use 'colocation'
INFO: 37: "collocation" is accepted as "colocation"
.INP: order o1 Mandatory: m5 m6
.INP: order o2 Optional: d1:start m5:promote
.INP: order o3 Serialize: m5 m6
.INP: order o4 Mandatory: m5 m6
.INP: rsc_ticket ticket-A_m6 ticket-A: m6
.INP: rsc_ticket ticket-B_m6_m5 ticket-B: m6 m5 loss-policy=fence
.INP: rsc_ticket ticket-C_master ticket-C: m6 m5:Master loss-policy=fence
.INP: fencing_topology st st2
.INP: property stonith-enabled=true
.INP: property $id=cpset2 maintenance-mode=true
.INP: rsc_defaults failure-timeout=10m
.INP: op_defaults $id=opsdef2 rule 100: #uname eq node1 record-pending=true
.INP: tag t1: m5 m6
.INP: set d2.mondelay 45
.INP: _test
.INP: verify
WARNING: 53: c2: resource d1 is grouped, constraints should apply to the group
.EXT crmd metadata
.EXT pengine metadata
.EXT cib metadata
.INP: show
node node1 \
	attributes mem=16G
node node2 \
	utilization cpu=4
primitive d1 ocf:pacemaker:Dummy \
	operations $id=d1-ops \
	op monitor interval=60m timeout=20s \
	op monitor interval=120m timeout=20s \
	op_params OCF_CHECK_LEVEL=10 \
	op start timeout=20s interval=0s \
	op stop timeout=20s interval=0s \
	op monitor interval=60s timeout=30s
primitive d2 Delay \
	params mondelay=45 \
	op start timeout=60s interval=0s \
	op stop timeout=60s interval=0s \
	op monitor timeout=30s interval=10s \
	op monitor role=Started interval=60s timeout=30s
primitive d3 ocf:pacemaker:Dummy \
	op monitor timeout=20s interval=10s \
	op start timeout=20s interval=0s \
	op stop timeout=20s interval=0s
primitive d4 ocf:pacemaker:Dummy \
	op monitor timeout=20s interval=10s \
	op start timeout=20s interval=0s \
	op stop timeout=20s interval=0s
primitive d7 Dummy \
	params rule #uname eq node1 fake=1 \
	params rule #uname eq node2 fake=2 \
	op start interval=0 timeout=60s \
	op_params 2: rule #uname eq node1 op_param=dummy \
	op_params 1: op_param=smart \
	op_meta 2: rule #ra-version version:gt 1.0 start-delay=120m \
	op_meta 1: start-delay=60m \
	op monitor timeout=20s interval=10s \
	op stop timeout=20s interval=0s
primitive d8 ocf:pacemaker:Dummy \
	op monitor timeout=20s interval=10s \
	op start timeout=20s interval=0s \
	op stop timeout=20s interval=0s
primitive s5 ocf:pacemaker:Stateful \
	operations  $id-ref=d1-ops \
	op monitor timeout=20s interval=10s role=Promoted \
	op monitor timeout=20s interval=11s role=Unpromoted \
	op start timeout=20s interval=0s \
	op stop timeout=20s interval=0s \
        op promote timeout=10s interval=0s \
        op demote timeout=10s interval=0s
primitive s6 ocf:pacemaker:Stateful \
	operations  $id-ref=d1-ops \
	op monitor timeout=20s interval=10s role=Promoted \
	op monitor timeout=20s interval=11s role=Unpromoted \
	op start timeout=20s interval=0s \
	op stop timeout=20s interval=0s \
        op promote timeout=10s interval=0s \
        op demote timeout=10s interval=0s
primitive st stonith:ssh \
	params hostlist="node1 node2" \
	meta target-role=Started \
	op start timeout=60s interval=0s \
	op monitor interval=60m timeout=60s \
	op stop timeout=15 interval=0s
primitive st2 stonith:ssh \
	params hostlist="node1 node2" \
	op monitor timeout=20 interval=3600 \
	op start timeout=20 interval=0s \
	op stop timeout=15 interval=0s
group g1 d1 d2
ms m d4
ms m5 s5
ms m6 s6
clone c d3 \
	meta clone-max=1 interleave=true
clone m7 d8 \
	meta promotable=true interleave=true \
	meta promoted-max=1 \
	meta promoted-node-max=1
tag t1 m5 m6
colocation c1 inf: m6 m5
colocation c2 inf: m5:Master d1:Started
location l1 g1 100: node1
location l2 c \
	rule $id=l2-rule1 100: #uname eq node1
location l3 m5 \
	rule #uname eq node1 and pingd gt 0
location l4 m5 \
	rule -inf: not_defined pingd or pingd lte 0
location l5 m5 \
	rule -inf: not_defined pingd or pingd lte 0 \
	rule #uname eq node1 and pingd gt 0 \
	rule date lt 2009-05-26 and date in start=2009-05-26 end=2009-07-26 and date in start=2009-05-26 years=2009 and date spec years=2009 hours=09-17
location l6 m5 \
	rule $id-ref=l2-rule1
location l7 m5 \
	rule $id-ref=l2-rule1
order o1 Mandatory: m5 m6
order o2 Optional: d1:start m5:promote
order o3 Serialize: m5 m6
order o4 Mandatory: m5 m6
fencing_topology st st2
rsc_ticket ticket-A_m6 ticket-A: m6
rsc_ticket ticket-B_m6_m5 ticket-B: m6 m5 loss-policy=fence
rsc_ticket ticket-C_master ticket-C: m6 m5:Master loss-policy=fence
property cib-bootstrap-options: \
	stonith-enabled=true
property cpset2: \
	maintenance-mode=true
rsc_defaults rsc-options: \
	failure-timeout=10m
op_defaults opsdef2: \
	rule 100: #uname eq node1 \
	record-pending=true
.INP: commit
WARNING: 55: c2: resource d1 is grouped, constraints should apply to the group
.TRY -F node maintenance node1
.TRY -F resource maintenance g1 off
.TRY -F resource maintenance d1
.TRY -F configure property maintenance-mode=true
INFO: 'maintenance' attribute already exists in d1. Remove it? [YES]
INFO: 'maintenance' attribute already exists in g1. Remove it? [YES]
INFO: 'maintenance' attribute already exists in node1. Remove it? [YES]
.EXT crmd metadata
.EXT pengine metadata
.EXT cib metadata