summaryrefslogtreecommitdiffstats
path: root/cts/scheduler/xml/colocate-unmanaged-group.xml
blob: 1f1a037925895031ee6b6b3d6e1b8b80bf6d93e3 (plain)
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
<cib crm_feature_set="3.2.0" validate-with="pacemaker-3.7" epoch="18" num_updates="18" admin_epoch="0" cib-last-written="Wed Feb 26 14:49:12 2020" update-origin="rh80-test01" update-client="cibadmin" update-user="root" have-quorum="1" dc-uuid="2" execution-date="1582696216">
  <configuration>
    <crm_config>
      <cluster_property_set id="cib-bootstrap-options">
        <nvpair id="cib-bootstrap-options-have-watchdog" name="have-watchdog" value="false"/>
        <nvpair id="cib-bootstrap-options-dc-version" name="dc-version" value="2.0.3-4b1f869f0f"/>
        <nvpair id="cib-bootstrap-options-cluster-infrastructure" name="cluster-infrastructure" value="corosync"/>
        <nvpair id="cib-bootstrap-options-cluster-name" name="cluster-name" value="my_cluster"/>
        <nvpair id="cib-bootstrap-options-stonith-enabled" name="stonith-enabled" value="false"/>
      </cluster_property_set>
    </crm_config>
    <nodes>
      <node id="1" uname="rh80-test01"/>
      <node id="2" uname="rh80-test02"/>
    </nodes>
    <resources>
      <clone id="prmStateful-clone">
        <primitive class="ocf" id="prmStateful" provider="pacemaker" type="Stateful">
          <operations>
            <op id="prmStateful-demote-interval-0s" interval="0s" name="demote" on-fail="block" timeout="300s"/>
            <op id="prmStateful-monitor-interval-10s" interval="10s" name="monitor" on-fail="restart" timeout="60s"/>
            <op id="prmStateful-monitor-interval-9s" interval="9s" name="monitor" on-fail="restart" role="Promoted" timeout="60s"/>
            <op id="prmStateful-notify-interval-0s" interval="0s" name="notify" timeout="60s"/>
            <op id="prmStateful-promote-interval-0s" interval="0s" name="promote" on-fail="restart" timeout="300s"/>
            <op id="prmStateful-start-interval-0s" interval="0s" name="start" on-fail="restart" timeout="300s"/>
            <op id="prmStateful-stop-interval-0s" interval="0s" name="stop" on-fail="block" timeout="300s"/>
          </operations>
        </primitive>
        <meta_attributes id="prmStateful-clone-meta_attributes">
          <nvpair id="prmStateful-clone-meta_attributes-clone-max" name="clone-max" value="2"/>
          <nvpair id="prmStateful-clone-meta_attributes-clone-node-max" name="clone-node-max" value="1"/>
          <nvpair id="prmStateful-clone-meta_attributes-notify" name="notify" value="true"/>
          <nvpair id="prmStateful-clone-meta_attributes-promotable" name="promotable" value="true"/>
          <nvpair id="prmStateful-clone-meta_attributes-promoted-max" name="promoted-max" value="1"/>
          <nvpair id="prmStateful-clone-meta_attributes-promoted-node-max" name="promoted-node-max" value="1"/>
        </meta_attributes>
      </clone>
      <group id="grpTest">
        <primitive class="ocf" id="prmDummy1" provider="heartbeat" type="Dummy">
          <meta_attributes id="prmDummy1-meta_attributes">
            <nvpair id="prmDummy1-meta_attributes-is-managed" name="is-managed" value="false"/>
          </meta_attributes>
          <operations>
            <op id="prmDummy1-migrate_from-interval-0s" interval="0s" name="migrate_from" timeout="20s"/>
            <op id="prmDummy1-migrate_to-interval-0s" interval="0s" name="migrate_to" timeout="20s"/>
            <op id="prmDummy1-monitor-interval-10s" interval="10s" name="monitor" on-fail="restart" timeout="60s"/>
            <op id="prmDummy1-reload-interval-0s" interval="0s" name="reload" timeout="20s"/>
            <op id="prmDummy1-start-interval-0s" interval="0s" name="start" on-fail="restart" timeout="60s"/>
            <op id="prmDummy1-stop-interval-0s" interval="0s" name="stop" on-fail="block" timeout="60s"/>
          </operations>
        </primitive>
        <primitive class="ocf" id="prmDummy2" provider="heartbeat" type="Dummy">
          <operations>
            <op id="prmDummy2-migrate_from-interval-0s" interval="0s" name="migrate_from" timeout="20s"/>
            <op id="prmDummy2-migrate_to-interval-0s" interval="0s" name="migrate_to" timeout="20s"/>
            <op id="prmDummy2-monitor-interval-10s" interval="10s" name="monitor" on-fail="restart" timeout="60s"/>
            <op id="prmDummy2-reload-interval-0s" interval="0s" name="reload" timeout="20s"/>
            <op id="prmDummy2-start-interval-0s" interval="0s" name="start" on-fail="restart" timeout="60s"/>
            <op id="prmDummy2-stop-interval-0s" interval="0s" name="stop" on-fail="block" timeout="60s"/>
          </operations>
        </primitive>
        <primitive class="ocf" id="prmDummy3" provider="heartbeat" type="Dummy">
          <operations>
            <op id="prmDummy3-migrate_from-interval-0s" interval="0s" name="migrate_from" timeout="20s"/>
            <op id="prmDummy3-migrate_to-interval-0s" interval="0s" name="migrate_to" timeout="20s"/>
            <op id="prmDummy3-monitor-interval-10s" interval="10s" name="monitor" on-fail="restart" timeout="60s"/>
            <op id="prmDummy3-reload-interval-0s" interval="0s" name="reload" timeout="20s"/>
            <op id="prmDummy3-start-interval-0s" interval="0s" name="start" on-fail="restart" timeout="60s"/>
            <op id="prmDummy3-stop-interval-0s" interval="0s" name="stop" on-fail="block" timeout="60s"/>
          </operations>
        </primitive>
      </group>
    </resources>
    <constraints>
      <rsc_location id="location-grpTest-rh80-test01-200" node="rh80-test01" rsc="grpTest" score="200"/>
      <rsc_location id="location-grpTest-rh80-test02-100" node="rh80-test02" rsc="grpTest" score="100"/>
      <rsc_location id="location-prmStateful-clone" rsc="prmStateful-clone">
        <rule boolean-op="or" id="location-prmStateful-clone-rule" score="-INFINITY">
          <expression attribute="default_ping_set" id="location-prmStateful-clone-rule-expr" operation="lt" value="100"/>
          <expression attribute="default_ping_set" id="location-prmStateful-clone-rule-expr-1" operation="not_defined"/>
        </rule>
      </rsc_location>
      <rsc_colocation id="colocation-grpTest-prmStateful-clone-INFINITY" rsc="grpTest" rsc-role="Started" score="INFINITY" with-rsc="prmStateful-clone" with-rsc-role="Promoted"/>
      <rsc_order first="prmStateful-clone" first-action="promote" id="order-prmStateful-clone-grpTest-Optional" kind="Optional" symmetrical="true" then="grpTest" then-action="start"/>
    </constraints>
    <rsc_defaults>
      <meta_attributes id="rsc_defaults-options">
        <nvpair id="rsc_defaults-options-migration-threshold" name="migration-threshold" value="1"/>
        <nvpair id="rsc_defaults-options-resource-stickiness" name="resource-stickiness" value="INFINITY"/>
      </meta_attributes>
    </rsc_defaults>
  </configuration>
  <status>
    <node_state id="2" uname="rh80-test02" in_ccm="true" crmd="online" crm-debug-origin="do_update_resource" join="member" expected="member">
      <lrm id="2">
        <lrm_resources>
          <lrm_resource id="prmStateful" type="Stateful" class="ocf" provider="pacemaker">
            <lrm_rsc_op id="prmStateful_last_0" operation_key="prmStateful_monitor_0" operation="monitor" crm-debug-origin="do_update_resource" crm_feature_set="3.2.0" transition-key="5:0:7:0f75d58f-cd1e-436c-a4e5-cc97fc09899d" transition-magic="0:7;5:0:7:0f75d58f-cd1e-436c-a4e5-cc97fc09899d" exit-reason="" on_node="rh80-test02" call-id="6" rc-code="7" op-status="0" interval="0" last-rc-change="1582696215" last-run="1582696215" exec-time="48" queue-time="0" op-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8"/>
          </lrm_resource>
          <lrm_resource id="prmDummy1" type="Dummy" class="ocf" provider="heartbeat">
            <lrm_rsc_op id="prmDummy1_last_0" operation_key="prmDummy1_monitor_0" operation="monitor" crm-debug-origin="do_update_resource" crm_feature_set="3.2.0" transition-key="6:0:7:0f75d58f-cd1e-436c-a4e5-cc97fc09899d" transition-magic="0:7;6:0:7:0f75d58f-cd1e-436c-a4e5-cc97fc09899d" exit-reason="" on_node="rh80-test02" call-id="10" rc-code="7" op-status="0" interval="0" last-rc-change="1582696215" last-run="1582696215" exec-time="59" queue-time="0" op-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8" op-force-restart=" state " op-restart-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8"/>
          </lrm_resource>
          <lrm_resource id="prmDummy2" type="Dummy" class="ocf" provider="heartbeat">
            <lrm_rsc_op id="prmDummy2_last_0" operation_key="prmDummy2_monitor_0" operation="monitor" crm-debug-origin="do_update_resource" crm_feature_set="3.2.0" transition-key="7:0:7:0f75d58f-cd1e-436c-a4e5-cc97fc09899d" transition-magic="0:7;7:0:7:0f75d58f-cd1e-436c-a4e5-cc97fc09899d" exit-reason="" on_node="rh80-test02" call-id="14" rc-code="7" op-status="0" interval="0" last-rc-change="1582696215" last-run="1582696215" exec-time="39" queue-time="0" op-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8" op-force-restart=" state " op-restart-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8"/>
          </lrm_resource>
          <lrm_resource id="prmDummy3" type="Dummy" class="ocf" provider="heartbeat">
            <lrm_rsc_op id="prmDummy3_last_0" operation_key="prmDummy3_monitor_0" operation="monitor" crm-debug-origin="do_update_resource" crm_feature_set="3.2.0" transition-key="8:0:7:0f75d58f-cd1e-436c-a4e5-cc97fc09899d" transition-magic="0:7;8:0:7:0f75d58f-cd1e-436c-a4e5-cc97fc09899d" exit-reason="" on_node="rh80-test02" call-id="18" rc-code="7" op-status="0" interval="0" last-rc-change="1582696215" last-run="1582696215" exec-time="35" queue-time="0" op-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8" op-force-restart=" state " op-restart-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8"/>
          </lrm_resource>
        </lrm_resources>
      </lrm>
    </node_state>
    <node_state id="1" uname="rh80-test01" in_ccm="true" crmd="online" crm-debug-origin="do_update_resource" join="member" expected="member">
      <lrm id="1">
        <lrm_resources>
          <lrm_resource id="prmStateful" type="Stateful" class="ocf" provider="pacemaker">
            <lrm_rsc_op id="prmStateful_last_0" operation_key="prmStateful_monitor_0" operation="monitor" crm-debug-origin="do_update_resource" crm_feature_set="3.2.0" transition-key="1:0:7:0f75d58f-cd1e-436c-a4e5-cc97fc09899d" transition-magic="0:7;1:0:7:0f75d58f-cd1e-436c-a4e5-cc97fc09899d" exit-reason="" on_node="rh80-test01" call-id="6" rc-code="7" op-status="0" interval="0" last-rc-change="1582696215" last-run="1582696215" exec-time="54" queue-time="0" op-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8"/>
          </lrm_resource>
          <lrm_resource id="prmDummy1" type="Dummy" class="ocf" provider="heartbeat">
            <lrm_rsc_op id="prmDummy1_last_0" operation_key="prmDummy1_monitor_0" operation="monitor" crm-debug-origin="do_update_resource" crm_feature_set="3.2.0" transition-key="2:0:7:0f75d58f-cd1e-436c-a4e5-cc97fc09899d" transition-magic="0:0;2:0:7:0f75d58f-cd1e-436c-a4e5-cc97fc09899d" exit-reason="" on_node="rh80-test01" call-id="10" rc-code="0" op-status="0" interval="0" last-rc-change="1582696215" last-run="1582696215" exec-time="57" queue-time="0" op-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8" op-force-restart=" state " op-restart-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8"/>
            <lrm_rsc_op id="prmDummy1_last_failure_0" operation_key="prmDummy1_monitor_0" operation="monitor" crm-debug-origin="do_update_resource" crm_feature_set="3.2.0" transition-key="2:0:7:0f75d58f-cd1e-436c-a4e5-cc97fc09899d" transition-magic="0:0;2:0:7:0f75d58f-cd1e-436c-a4e5-cc97fc09899d" exit-reason="" on_node="rh80-test01" call-id="10" rc-code="0" op-status="0" interval="0" last-rc-change="1582696215" last-run="1582696215" exec-time="57" queue-time="0" op-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8"/>
          </lrm_resource>
          <lrm_resource id="prmDummy2" type="Dummy" class="ocf" provider="heartbeat">
            <lrm_rsc_op id="prmDummy2_last_0" operation_key="prmDummy2_monitor_0" operation="monitor" crm-debug-origin="do_update_resource" crm_feature_set="3.2.0" transition-key="3:0:7:0f75d58f-cd1e-436c-a4e5-cc97fc09899d" transition-magic="0:7;3:0:7:0f75d58f-cd1e-436c-a4e5-cc97fc09899d" exit-reason="" on_node="rh80-test01" call-id="14" rc-code="7" op-status="0" interval="0" last-rc-change="1582696216" last-run="1582696216" exec-time="44" queue-time="0" op-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8" op-force-restart=" state " op-restart-digest="f2317cad3d54cec5d7d7aa7d0bf35cf8"/>
          </lrm_resource>
        </lrm_resources>
      </lrm>
    </node_state>
  </status>
</cib>