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
|
.TRY Delete/Rename test
.INP: configure
.INP: # erase to start from scratch
.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:pacemaker:Dummy
.INP: location d1-pref d1 100: node1
.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 d2 ocf:pacemaker:Dummy \
op monitor timeout=20s interval=10s \
op start timeout=20s interval=0s \
op stop timeout=20s interval=0s
location d1-pref d1 100: node1
property cib-bootstrap-options: \
stonith-enabled=false
.INP: _test
.INP: rename d1 p1
INFO: 12: modified location:d1-pref from d1 to p1
.INP: show
node node1
primitive d2 ocf:pacemaker:Dummy \
op monitor timeout=20s interval=10s \
op start timeout=20s interval=0s \
op stop timeout=20s interval=0s
primitive p1 ocf:pacemaker:Dummy \
op monitor timeout=20s interval=10s \
op start timeout=20s interval=0s \
op stop timeout=20s interval=0s
location d1-pref p1 100: node1
property cib-bootstrap-options: \
stonith-enabled=false
.INP: # delete primitive
.INP: delete d2
.INP: _test
.INP: show
node node1
primitive p1 ocf:pacemaker:Dummy \
op monitor timeout=20s interval=10s \
op start timeout=20s interval=0s \
op stop timeout=20s interval=0s
location d1-pref p1 100: node1
property cib-bootstrap-options: \
stonith-enabled=false
.INP: # delete primitive with constraint
.INP: delete p1
INFO: 19: hanging location:d1-pref deleted
.INP: _test
.INP: show
node node1
property cib-bootstrap-options: \
stonith-enabled=false
.INP: primitive d1 ocf:pacemaker:Dummy
.INP: location d1-pref d1 100: node1
.INP: _test
.INP: # delete primitive belonging to a group
.INP: primitive d2 ocf:pacemaker:Dummy
.INP: _test
.INP: group g1 d2 d1
INFO: 28: modified location:d1-pref from d1 to g1
.INP: delete d2
.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
group g1 d1
location d1-pref g1 100: node1
property cib-bootstrap-options: \
stonith-enabled=false
.INP: _test
.INP: delete g1
INFO: 32: modified location:d1-pref from g1 to d1
.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
location d1-pref d1 100: node1
property cib-bootstrap-options: \
stonith-enabled=false
.INP: verify
.EXT crm_attribute --list-options=cluster --all --output-as=xml
.EXT crm_resource --list-options=primitive --all --output-as=xml
.INP: # delete a group which is in a clone
.INP: primitive d2 ocf:pacemaker:Dummy
.INP: group g1 d2 d1
INFO: 37: modified location:d1-pref from d1 to g1
.INP: clone c1 g1
INFO: 38: modified location:d1-pref from g1 to c1
.INP: delete g1
INFO: 39: modified location:d1-pref from c1 to g1
INFO: 39: modified location:d1-pref from g1 to d2
.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 d2 ocf:pacemaker:Dummy \
op monitor timeout=20s interval=10s \
op start timeout=20s interval=0s \
op stop timeout=20s interval=0s
location d1-pref d2 100: node1
property cib-bootstrap-options: \
stonith-enabled=false
.INP: _test
.INP: group g1 d2 d1
INFO: 42: modified location:d1-pref from d2 to g1
.INP: clone c1 g1
INFO: 43: modified location:d1-pref from g1 to c1
.INP: _test
.INP: # delete group from a clone (again)
.INP: delete g1
INFO: 46: modified location:d1-pref from c1 to g1
INFO: 46: modified location:d1-pref from g1 to d2
.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 d2 ocf:pacemaker:Dummy \
op monitor timeout=20s interval=10s \
op start timeout=20s interval=0s \
op stop timeout=20s interval=0s
location d1-pref d2 100: node1
property cib-bootstrap-options: \
stonith-enabled=false
.INP: _test
.INP: group g1 d2 d1
INFO: 49: modified location:d1-pref from d2 to g1
.INP: clone c1 g1
INFO: 50: modified location:d1-pref from g1 to c1
.INP: # delete primitive and its group and their clone
.INP: delete d2 d1 c1 g1
INFO: 52: modified location:d1-pref from c1 to g1
INFO: 52: modified location:d1-pref from g1 to d2
INFO: 52: hanging location:d1-pref deleted
.INP: show
node node1
property cib-bootstrap-options: \
stonith-enabled=false
.INP: _test
.INP: # verify
.INP: verify
.INP: commit
|