diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 06:48:59 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 06:48:59 +0000 |
commit | d835b2cae8abc71958b69362162e6a70c3d7ef63 (patch) | |
tree | 81052e3d2ce3e1bcda085f73d925e9d6257dec15 /test/testcases/confbasic-xml | |
parent | Initial commit. (diff) | |
download | crmsh-upstream.tar.xz crmsh-upstream.zip |
Adding upstream version 4.6.0.upstream/4.6.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test/testcases/confbasic-xml')
-rw-r--r-- | test/testcases/confbasic-xml | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/test/testcases/confbasic-xml b/test/testcases/confbasic-xml new file mode 100644 index 0000000..58433f5 --- /dev/null +++ b/test/testcases/confbasic-xml @@ -0,0 +1,72 @@ +showxml Basic configure (xml dump) +node node1 +delete node1 +node node1 \ + attributes mem=16G +node node2 utilization cpu=4 +primitive st stonith:ssh \ + params hostlist='node1 node2' \ + meta target-role=Started requires=nothing \ + op start timeout=60s \ + op monitor interval=60m timeout=60s +primitive st2 stonith:ssh \ + params hostlist='node1 node2' +primitive d1 ocf:pacemaker:Dummy \ + operations $id=d1-ops \ + op monitor interval=60m \ + op monitor interval=120m OCF_CHECK_LEVEL=10 +monitor d1 60s:30s +primitive d2 ocf:heartbeat:Delay \ + params mondelay=60 \ + op start timeout=60s \ + op stop timeout=60s +monitor d2:Started 60s:30s +group g1 d1 d2 +primitive d3 ocf:pacemaker:Dummy +clone c d3 \ + meta clone-max=1 +primitive d4 ocf:pacemaker:Dummy +ms m d4 +delete m +master m d4 +primitive s5 ocf:pacemaker:Stateful \ + operations $id-ref=d1-ops +primitive s6 ocf:pacemaker:Stateful \ + operations $id-ref=d1 +ms m5 s5 +ms m6 s6 +location l1 g1 100: node1 +location l2 c \ + rule $id=l2-rule1 100: #uname eq node1 +location l3 m5 \ + rule inf: #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 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 +location l6 m5 \ + rule $id-ref=l2-rule1 +location l7 m5 \ + rule $id-ref=l2 +collocation c1 inf: m6 m5 +collocation c2 inf: m5:Master d1:Started +order o1 Mandatory: m5 m6 +order o2 Optional: d1:start m5:promote +order o3 Serialize: m5 m6 +order o4 Mandatory: m5 m6 +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 +fencing_topology st st2 +property stonith-enabled=true +property $id=cpset2 maintenance-mode=true +rsc_defaults failure-timeout=10m +op_defaults $id=opsdef2 record-pending=true +_test +verify +. |