.TRY Delete/Rename test .INP: configure .INP: # erase to start from scratch .INP: erase .INP: erase nodes .INP: node node1 .INP: # create one stonith so that verify does not complain .INP: primitive st stonith:ssh params hostlist='node1' meta target-role="Started" op start requires=nothing timeout=60s op monitor interval=60m timeout=60s .INP: primitive d1 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 primitive d2 ocf:pacemaker:Dummy primitive st stonith:ssh \ params hostlist="node1" \ meta target-role="Started" \ op start interval="0" timeout="60s" requires="nothing" \ op monitor interval="60m" timeout="60s" location d1-pref d1 100: node1 .INP: _test .INP: rename d1 p1 INFO: 13: resource references in location:d1-pref updated .INP: show node node1 primitive d2 ocf:pacemaker:Dummy primitive p1 ocf:pacemaker:Dummy primitive st stonith:ssh \ params hostlist="node1" \ meta target-role="Started" \ op start interval="0" timeout="60s" requires="nothing" \ op monitor interval="60m" timeout="60s" location d1-pref p1 100: node1 .INP: # delete primitive .INP: delete d2 .INP: _test .INP: show node node1 primitive p1 ocf:pacemaker:Dummy primitive st stonith:ssh \ params hostlist="node1" \ meta target-role="Started" \ op start interval="0" timeout="60s" requires="nothing" \ op monitor interval="60m" timeout="60s" location d1-pref p1 100: node1 .INP: # delete primitive with constraint .INP: delete p1 INFO: 20: hanging location:d1-pref deleted .INP: _test .INP: show node node1 primitive st stonith:ssh \ params hostlist="node1" \ meta target-role="Started" \ op start interval="0" timeout="60s" requires="nothing" \ op monitor interval="60m" timeout="60s" .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: 29: resource references in location:d1-pref updated .INP: delete d2 .INP: show node node1 primitive d1 ocf:pacemaker:Dummy primitive st stonith:ssh \ params hostlist="node1" \ meta target-role="Started" \ op start interval="0" timeout="60s" requires="nothing" \ op monitor interval="60m" timeout="60s" group g1 d1 location d1-pref g1 100: node1 .INP: _test .INP: delete g1 INFO: 33: resource references in location:d1-pref updated .INP: show node node1 primitive d1 ocf:pacemaker:Dummy primitive st stonith:ssh \ params hostlist="node1" \ meta target-role="Started" \ op start interval="0" timeout="60s" requires="nothing" \ op monitor interval="60m" timeout="60s" location d1-pref d1 100: node1 .INP: verify .INP: # delete a group which is in a clone .INP: primitive d2 ocf:pacemaker:Dummy .INP: group g1 d2 d1 INFO: 38: resource references in location:d1-pref updated .INP: clone c1 g1 INFO: 39: resource references in location:d1-pref updated .INP: delete g1 INFO: 40: resource references in location:d1-pref updated INFO: 40: resource references in location:d1-pref updated .INP: show node node1 primitive d1 ocf:pacemaker:Dummy primitive d2 ocf:pacemaker:Dummy primitive st stonith:ssh \ params hostlist="node1" \ meta target-role="Started" \ op start interval="0" timeout="60s" requires="nothing" \ op monitor interval="60m" timeout="60s" location d1-pref d2 100: node1 .INP: _test .INP: group g1 d2 d1 INFO: 43: resource references in location:d1-pref updated .INP: clone c1 g1 INFO: 44: resource references in location:d1-pref updated .INP: _test .INP: # delete group from a clone (again) .INP: delete g1 INFO: 47: resource references in location:d1-pref updated INFO: 47: resource references in location:d1-pref updated .INP: show node node1 primitive d1 ocf:pacemaker:Dummy primitive d2 ocf:pacemaker:Dummy primitive st stonith:ssh \ params hostlist="node1" \ meta target-role="Started" \ op start interval="0" timeout="60s" requires="nothing" \ op monitor interval="60m" timeout="60s" location d1-pref d2 100: node1 .INP: _test .INP: group g1 d2 d1 INFO: 50: resource references in location:d1-pref updated .INP: clone c1 g1 INFO: 51: resource references in location:d1-pref updated .INP: # delete primitive and its group and their clone .INP: delete d2 d1 c1 g1 INFO: 53: resource references in location:d1-pref updated INFO: 53: resource references in location:d1-pref updated INFO: 53: hanging location:d1-pref deleted .INP: show node node1 primitive st stonith:ssh \ params hostlist="node1" \ meta target-role="Started" \ op start interval="0" timeout="60s" requires="nothing" \ op monitor interval="60m" timeout="60s" .INP: _test .INP: # verify .INP: verify .INP: commit