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
|
.TRY Resource sets
.INP: configure
.INP: _regtest on
.INP: erase
.INP: erase nodes
.INP: property stonith-enabled=false
.INP: node node1
.INP: primitive d1 ocf:pacemaker:Dummy
.EXT crm_resource --show-metadata ocf:pacemaker:Dummy
.INP: primitive d2 ocf:heartbeat:Dummy
.EXT crm_resource --show-metadata ocf:heartbeat:Dummy
.INP: primitive d3 ocf:heartbeat:Dummy
.INP: primitive d4 ocf:heartbeat:Dummy
.INP: primitive d5 ocf:heartbeat:Dummy
.INP: order o1 Serialize: d1 d2 ( d3 d4 )
.INP: colocation c1 inf: d4 ( d1 d2 d3 )
.INP: colocation c2 inf: d1 d2 d3 d4
.INP: colocation c3 inf: ( d3 d4 ) ( d1 d2 )
.INP: delete d2
INFO: 16: constraint order:o1 updated
INFO: 16: constraint colocation:c1 updated
INFO: 16: constraint colocation:c2 updated
INFO: 16: constraint colocation:c3 updated
.INP: show o1 c1 c2 c3
colocation c1 inf: d4 ( d1 d3 )
colocation c2 inf: d1 d3 d4
colocation c3 inf: ( d3 d4 ) ( d1 )
order o1 Serialize: d1 ( d3 d4 )
.INP: delete d4
INFO: 18: constraint order:o1 updated
INFO: 18: constraint colocation:c1 updated
INFO: 18: constraint colocation:c2 updated
INFO: 18: constraint colocation:c3 updated
.INP: show o1 c1 c2 c3
colocation c1 inf: ( d1 d3 )
colocation c2 inf: d3 d1
colocation c3 inf: d3 d1
order o1 Serialize: d1 d3
.INP: _test
.INP: verify
.EXT crm_attribute --list-options=cluster --all --output-as=xml
.EXT crm_resource --list-options=primitive --all --output-as=xml
.INP: show
node node1
primitive d1 ocf:pacemaker: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 d5 Dummy \
op monitor timeout=20s interval=10s \
op start timeout=20s interval=0s \
op stop timeout=20s interval=0s
colocation c1 inf: ( d1 d3 )
colocation c2 inf: d3 d1
colocation c3 inf: d3 d1
order o1 Serialize: d1 d3
property cib-bootstrap-options: \
stonith-enabled=false
.INP: commit
|