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 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402
|
.TRY Configuration editing
.INP: configure
.INP: _regtest on
.INP: erase
.INP: erase nodes
.INP: property stonith-enabled=false
.INP: op_defaults timeout=2m
.INP: node node1 attributes mem=16G
.INP: primitive p1 ocf:heartbeat:Dummy op monitor interval=60m op monitor interval=120m OCF_CHECK_LEVEL=10
.EXT crm_resource --show-metadata ocf:heartbeat:Dummy
.INP: filter "sed '$aprimitive p2 ocf:heartbeat:Dummy'"
.INP: filter "sed '$agroup g1 p1 p2'"
.INP: show
node node1 \
attributes mem=16G
primitive p1 Dummy \
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
primitive p2 Dummy
group g1 p1 p2
property cib-bootstrap-options: \
stonith-enabled=false
op_defaults op-options: \
timeout=2m
.INP: filter "sed 's/p2/p3/;$aprimitive p3 ocf:heartbeat:Dummy'" g1
.INP: show
node node1 \
attributes mem=16G
primitive p1 Dummy \
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
primitive p2 Dummy
primitive p3 Dummy
group g1 p1 p3
property cib-bootstrap-options: \
stonith-enabled=false
op_defaults op-options: \
timeout=2m
.INP: filter "sed '$aclone c1 p2'"
.INP: filter "sed 's/p2/g1/'" c1
.INP: filter "sed '/clone/s/g1/p2/'" c1 g1
.INP: filter "sed '/clone/s/p2/g1/;s/p3/p2/'" c1 g1
.INP: filter "sed '1,$d'" c1 g1
.INP: filter "sed -e '$aclone c1 g1' -e '$agroup g1 p1 p2'"
.INP: location l1 p3 100: node1
.INP: order o1 Mandatory: p3 c1
.INP: colocation cl1 inf: c1 p3
.INP: filter "sed '/cl1/s/p3/p2/'"
.INP: filter "sed '/cl1/d'"
.INP: primitive d1 ocf:heartbeat:Dummy
.INP: primitive d2 ocf:heartbeat:Dummy
.INP: primitive d3 ocf:heartbeat:Dummy
.INP: group g2 d1 d2
.INP: filter "sed '/g2/s/d1/p1/;/g1/s/p1/d1/'"
ERROR: 29: Cannot create group:g1: Child primitive:d1 already in group:g2
.INP: filter "sed '/g1/s/d1/p1/;/g2/s/p1/d1/'"
.INP: location loc-d1 d1 rule -inf: not_defined webserver or mem number:lte 0 or not_defined a2
.INP: location loc-d1-2 d1 rule webserver: defined webserver
.INP: modgroup g1 add d3
.INP: modgroup g1 remove p1
.INP: modgroup g1 add p1 after p2
.INP: modgroup g1 remove p1
.INP: modgroup g1 add p1 before p2
.INP: modgroup g1 add p1
ERROR: 1: syntax in group: child p1 listed more than once in group g1 parsing 'group g1 p1 p2 d3 p1'
.INP: modgroup g1 remove c1
ERROR: 39: configure.modgroup: c1 is not member of g1
Traceback (most recent call last):
rv = self.execute_command() is not False
~~~~~~~~~~~~~~~~~~~~^^
rv = self.command_info.function(*arglist)
context.fatal_error("%s is not member of %s" % (prim_id, group_id))
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
raise ValueError(msg)
ValueError: c1 is not member of g1
.INP: modgroup g1 remove nosuch
ERROR: 40: configure.modgroup: nosuch is not member of g1
Traceback (most recent call last):
rv = self.execute_command() is not False
~~~~~~~~~~~~~~~~~~~~^^
rv = self.command_info.function(*arglist)
context.fatal_error("%s is not member of %s" % (prim_id, group_id))
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
raise ValueError(msg)
ValueError: nosuch is not member of g1
.INP: modgroup g1 add c1
ERROR: 41: a group may contain only primitives; c1 is clone
.INP: modgroup g1 add nosuch
ERROR: 42: g1 refers to missing object nosuch
.INP: rsc_defaults $id="rsc_options" failure-timeout=10m
.INP: filter "sed 's/2m/60s/'" op-options
.INP: show op-options
op_defaults op-options: \
timeout=60s
.INP: show cib-bootstrap-options
property cib-bootstrap-options: \
stonith-enabled=false
.INP: show cib-bootstrap-options
property cib-bootstrap-options: \
stonith-enabled=false
.INP: primitive d4 ocf:heartbeat:Dummy
.INP: primitive d5 ocf:heartbeat:Dummy
.INP: primitive d6 ocf:heartbeat:Dummy
.INP: order o-d456 d4 d5 d6
.INP: tag t-d45: d4 d5
.INP: show type:order
order o-d456 d4 d5 d6
order o1 Mandatory: p3 c1
.INP: show related:d4
primitive d4 Dummy \
op monitor timeout=20s interval=10s \
op start timeout=20s interval=0s \
op stop timeout=20s interval=0s
tag t-d45 d4 d5
order o-d456 d4 d5 d6
.INP: show
node node1 \
attributes mem=16G
primitive d1 Dummy \
op monitor timeout=20s interval=10s \
op start timeout=20s interval=0s \
op stop timeout=20s interval=0s
primitive d2 Dummy \
op monitor timeout=20s interval=10s \
op start timeout=20s interval=0s \
op stop timeout=20s interval=0s
primitive d3 Dummy \
op monitor timeout=20s interval=10s \
op start timeout=20s interval=0s \
op stop timeout=20s interval=0s
primitive d4 Dummy \
op monitor timeout=20s interval=10s \
op start timeout=20s interval=0s \
op stop timeout=20s interval=0s
primitive d5 Dummy \
op monitor timeout=20s interval=10s \
op start timeout=20s interval=0s \
op stop timeout=20s interval=0s
primitive d6 Dummy \
op monitor timeout=20s interval=10s \
op start timeout=20s interval=0s \
op stop timeout=20s interval=0s
primitive p1 Dummy \
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
primitive p2 Dummy
primitive p3 Dummy
group g1 p1 p2 d3
group g2 d1 d2
clone c1 g1
tag t-d45 d4 d5
location l1 p3 100: node1
location loc-d1 d1 \
rule -inf: not_defined webserver or mem number:lte 0 or not_defined a2
location loc-d1-2 d1 \
rule webserver: defined webserver
order o-d456 d4 d5 d6
order o1 Mandatory: p3 c1
property cib-bootstrap-options: \
stonith-enabled=false
rsc_defaults rsc_options: \
failure-timeout=10m
op_defaults op-options: \
timeout=60s
.INP: commit
.EXT crm_resource --list-options=primitive --all --output-as=xml
.EXT crm_attribute --list-options=cluster --all --output-as=xml
.INP: _test
.INP: verify
.INP: primitive a0 ocf:heartbeat:Dummy
.INP: primitive a1 ocf:heartbeat:Dummy
.INP: primitive a2 ocf:heartbeat:Dummy
.INP: primitive a3 ocf:heartbeat:Dummy
.INP: primitive a4 ocf:heartbeat:Dummy
.INP: primitive a5 ocf:heartbeat:Dummy
.INP: primitive a6 ocf:heartbeat:Dummy
.INP: primitive a7 ocf:heartbeat:Dummy
.INP: primitive a8 ocf:heartbeat:Dummy
.INP: primitive a9 ocf:heartbeat:Dummy
.INP: primitive aErr ocf:heartbeat:Dummy
.INP: group as a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aErr
.INP: commit
.INP: cd ..
.INP: cd configure
.INP: filter "sed '/as/s/a9//'"
.INP: filter "sed '/as/s/a1/a1 a9/'"
.INP: commit
.INP: cd ..
.INP: cd configure
.INP: filter "sed '/abs/s/a9//'"
.INP: filter "sed '/abs/s/a8/a8 a9/'"
.INP: show
node node1 \
attributes mem=16G
primitive a0 Dummy \
op monitor timeout=20s interval=10s \
op start timeout=20s interval=0s \
op stop timeout=20s interval=0s
primitive a1 Dummy \
op monitor timeout=20s interval=10s \
op start timeout=20s interval=0s \
op stop timeout=20s interval=0s
primitive a2 Dummy \
op monitor timeout=20s interval=10s \
op start timeout=20s interval=0s \
op stop timeout=20s interval=0s
primitive a3 Dummy \
op monitor timeout=20s interval=10s \
op start timeout=20s interval=0s \
op stop timeout=20s interval=0s
primitive a4 Dummy \
op monitor timeout=20s interval=10s \
op start timeout=20s interval=0s \
op stop timeout=20s interval=0s
primitive a5 Dummy \
op monitor timeout=20s interval=10s \
op start timeout=20s interval=0s \
op stop timeout=20s interval=0s
primitive a6 Dummy \
op monitor timeout=20s interval=10s \
op start timeout=20s interval=0s \
op stop timeout=20s interval=0s
primitive a7 Dummy \
op monitor timeout=20s interval=10s \
op start timeout=20s interval=0s \
op stop timeout=20s interval=0s
primitive a8 Dummy \
op monitor timeout=20s interval=10s \
op start timeout=20s interval=0s \
op stop timeout=20s interval=0s
primitive a9 Dummy \
op monitor timeout=20s interval=10s \
op start timeout=20s interval=0s \
op stop timeout=20s interval=0s
primitive aErr Dummy \
op monitor timeout=20s interval=10s \
op start timeout=20s interval=0s \
op stop timeout=20s interval=0s
primitive d1 Dummy \
op monitor timeout=20s interval=10s \
op start timeout=20s interval=0s \
op stop timeout=20s interval=0s
primitive d2 Dummy \
op monitor timeout=20s interval=10s \
op start timeout=20s interval=0s \
op stop timeout=20s interval=0s
primitive d3 Dummy \
op monitor timeout=20s interval=10s \
op start timeout=20s interval=0s \
op stop timeout=20s interval=0s
primitive d4 Dummy \
op monitor timeout=20s interval=10s \
op start timeout=20s interval=0s \
op stop timeout=20s interval=0s
primitive d5 Dummy \
op monitor timeout=20s interval=10s \
op start timeout=20s interval=0s \
op stop timeout=20s interval=0s
primitive d6 Dummy \
op monitor timeout=20s interval=10s \
op start timeout=20s interval=0s \
op stop timeout=20s interval=0s
primitive p1 Dummy \
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
primitive p2 Dummy
primitive p3 Dummy
group as a0 a1 a9 a2 a3 a4 a5 a6 a7 a8 aErr
group g1 p1 p2 d3
group g2 d1 d2
clone c1 g1
tag t-d45 d4 d5
location l1 p3 100: node1
location loc-d1 d1 \
rule -inf: not_defined webserver or mem number:lte 0 or not_defined a2
location loc-d1-2 d1 \
rule webserver: defined webserver
order o-d456 d4 d5 d6
order o1 Mandatory: p3 c1
property cib-bootstrap-options: \
stonith-enabled=false
rsc_defaults rsc_options: \
failure-timeout=10m
op_defaults op-options: \
timeout=60s
.INP: commit
INFO: 82: apparently there is nothing to commit
INFO: 82: try changing something first
.INP: _test
.INP: verify
.INP: show
node node1 \
attributes mem=16G
primitive a0 Dummy \
op monitor timeout=20s interval=10s \
op start timeout=20s interval=0s \
op stop timeout=20s interval=0s
primitive a1 Dummy \
op monitor timeout=20s interval=10s \
op start timeout=20s interval=0s \
op stop timeout=20s interval=0s
primitive a2 Dummy \
op monitor timeout=20s interval=10s \
op start timeout=20s interval=0s \
op stop timeout=20s interval=0s
primitive a3 Dummy \
op monitor timeout=20s interval=10s \
op start timeout=20s interval=0s \
op stop timeout=20s interval=0s
primitive a4 Dummy \
op monitor timeout=20s interval=10s \
op start timeout=20s interval=0s \
op stop timeout=20s interval=0s
primitive a5 Dummy \
op monitor timeout=20s interval=10s \
op start timeout=20s interval=0s \
op stop timeout=20s interval=0s
primitive a6 Dummy \
op monitor timeout=20s interval=10s \
op start timeout=20s interval=0s \
op stop timeout=20s interval=0s
primitive a7 Dummy \
op monitor timeout=20s interval=10s \
op start timeout=20s interval=0s \
op stop timeout=20s interval=0s
primitive a8 Dummy \
op monitor timeout=20s interval=10s \
op start timeout=20s interval=0s \
op stop timeout=20s interval=0s
primitive a9 Dummy \
op monitor timeout=20s interval=10s \
op start timeout=20s interval=0s \
op stop timeout=20s interval=0s
primitive aErr Dummy \
op monitor timeout=20s interval=10s \
op start timeout=20s interval=0s \
op stop timeout=20s interval=0s
primitive d1 Dummy \
op monitor timeout=20s interval=10s \
op start timeout=20s interval=0s \
op stop timeout=20s interval=0s
primitive d2 Dummy \
op monitor timeout=20s interval=10s \
op start timeout=20s interval=0s \
op stop timeout=20s interval=0s
primitive d3 Dummy \
op monitor timeout=20s interval=10s \
op start timeout=20s interval=0s \
op stop timeout=20s interval=0s
primitive d4 Dummy \
op monitor timeout=20s interval=10s \
op start timeout=20s interval=0s \
op stop timeout=20s interval=0s
primitive d5 Dummy \
op monitor timeout=20s interval=10s \
op start timeout=20s interval=0s \
op stop timeout=20s interval=0s
primitive d6 Dummy \
op monitor timeout=20s interval=10s \
op start timeout=20s interval=0s \
op stop timeout=20s interval=0s
primitive p1 Dummy \
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
primitive p2 Dummy
primitive p3 Dummy
group as a0 a1 a9 a2 a3 a4 a5 a6 a7 a8 aErr
group g1 p1 p2 d3
group g2 d1 d2
clone c1 g1
tag t-d45 d4 d5
location l1 p3 100: node1
location loc-d1 d1 \
rule -inf: not_defined webserver or mem number:lte 0 or not_defined a2
location loc-d1-2 d1 \
rule webserver: defined webserver
order o-d456 d4 d5 d6
order o1 Mandatory: p3 c1
property cib-bootstrap-options: \
stonith-enabled=false
rsc_defaults rsc_options: \
failure-timeout=10m
op_defaults op-options: \
timeout=60s
.INP: commit
INFO: 86: apparently there is nothing to commit
INFO: 86: try changing something first
|