[Pacemaker] [Question]About "sequential" designation of resource_set.

renayama19661014 at ybb.ne.jp renayama19661014 at ybb.ne.jp
Fri Mar 22 04:17:31 UTC 2013


Hi Andrew,

Thank you for comments.

We demand time and the same movement that appointed ordered=false of the group resource.

 * Case 0 - group : orderded=false
  * At the time of orderded=false, it takes start of vip-rep. ------------> We demand!!
{{{
(snip)
    <resources>
      <group id="testGroup01">
        <meta_attributes id="master-group-meta_attributes">
          <nvpair id="master-group-meta_attributes-ordered" name="ordered" value="false"/>
        </meta_attributes>
        <primitive class="ocf" type="Dummy1" provider="heartbeat" id="vip-master">
          <operations>
            <op id="op-Dummy01-start" interval="0" name="start" timeout="60s" on-fail="restart"/>
            <op id="op-Dummy01-monitor" interval="10" name="monitor" timeout="60s" on-fail="restart"/>
            <op id="op-Dummy01-stop" interval="0" name="stop" timeout="60s" on-fail="block"/>
          </operations>
        </primitive>
        <primitive class="ocf" type="Dummy2" provider="heartbeat" id="vip-rep">
          <operations>
            <op id="op-Dummy02-start" interval="0" name="start" timeout="60s" on-fail="restart"/>
            <op id="op-Dummy02-monitor" interval="10" name="monitor" timeout="60s" on-fail="restart"/>
            <op id="op-Dummy02-stop" interval="0" name="stop" timeout="60s" on-fail="block"/>
          </operations>
        </primitive>
      </group>
     </resources>
(snip)
[root at rh64-heartbeat1 ~]# grep "Initiating action" /var/log/ha-log
Mar 22 21:45:01 rh64-heartbeat1 crmd: [2625]: info: te_rsc_command: Initiating action 2: probe_complete probe_complete on rh64-heartbeat1 (local) - no waiting
Mar 22 21:46:36 rh64-heartbeat1 crmd: [2625]: info: te_rsc_command: Initiating action 4: monitor vip-master_monitor_0 on rh64-heartbeat1 (local)
Mar 22 21:46:36 rh64-heartbeat1 crmd: [2625]: info: te_rsc_command: Initiating action 5: monitor vip-rep_monitor_0 on rh64-heartbeat1 (local)
Mar 22 21:46:36 rh64-heartbeat1 crmd: [2625]: info: te_rsc_command: Initiating action 3: probe_complete probe_complete on rh64-heartbeat1 (local) - no waiting
Mar 22 21:46:36 rh64-heartbeat1 crmd: [2625]: info: te_rsc_command: Initiating action 6: start vip-master_start_0 on rh64-heartbeat1 (local)
Mar 22 21:46:36 rh64-heartbeat1 crmd: [2625]: info: te_rsc_command: Initiating action 8: start vip-rep_start_0 on rh64-heartbeat1 (local)
Mar 22 21:46:37 rh64-heartbeat1 crmd: [2625]: info: te_rsc_command: Initiating action 1: stop vip-master_stop_0 on rh64-heartbeat1 (local)
Mar 22 21:46:37 rh64-heartbeat1 crmd: [2625]: info: te_rsc_command: Initiating action 5: stop vip-rep_stop_0 on rh64-heartbeat1 (local)
}}}


I tried an all combination of ordering_set and colocation_set.
However, start of vip-rep was not carried out by all combinations.
 * I do not do the "ordered=false" designation of the group resource.

 * Case 1 : true/true
{{{
(snip)
    <resources>
      <group id="testGroup01">
        <primitive class="ocf" type="Dummy1" provider="heartbeat" id="vip-master">
          <operations>
(snip)
    <constraints>
        <rsc_colocation id="test-colocation">
                <resource_set sequential="true" id="test-colocation-resource_set">
                        <resource_ref id="vip-master"/>
                        <resource_ref id="vip-rep"/>
                </resource_set>
        </rsc_colocation>
        <rsc_order id="test-order">
                <resource_set sequential="true" id="test-order-resource_set">
                        <resource_ref id="vip-master"/>
                        <resource_ref id="vip-rep"/>
                </resource_set>
        </rsc_order>
    </constraints>


[root at rh64-heartbeat1 ~]# grep "Initiating action" /var/log/ha-log
Mar 22 21:30:26 rh64-heartbeat1 crmd: [2076]: info: te_rsc_command: Initiating action 2: probe_complete probe_complete on rh64-heartbeat1 (local) - no waiting
Mar 22 21:33:36 rh64-heartbeat1 crmd: [2076]: info: te_rsc_command: Initiating action 8: monitor vip-master_monitor_0 on rh64-heartbeat1 (local)
Mar 22 21:33:36 rh64-heartbeat1 crmd: [2076]: info: te_rsc_command: Initiating action 9: monitor vip-rep_monitor_0 on rh64-heartbeat1 (local)
Mar 22 21:33:36 rh64-heartbeat1 crmd: [2076]: info: te_rsc_command: Initiating action 7: probe_complete probe_complete on rh64-heartbeat1 (local) - no waiting
Mar 22 21:33:36 rh64-heartbeat1 crmd: [2076]: info: te_rsc_command: Initiating action 10: start vip-master_start_0 on rh64-heartbeat1 (local)
Mar 22 21:33:36 rh64-heartbeat1 crmd: [2076]: info: te_rsc_command: Initiating action 1: stop vip-master_stop_0 on rh64-heartbeat1 (local)
}}}
 * Case 2 : true/false
{{{
(snip)
    <resources>
      <group id="testGroup01">
        <primitive class="ocf" type="Dummy1" provider="heartbeat" id="vip-master">
          <operations>
(snip)
    <constraints>
        <rsc_colocation id="test-colocation">
                <resource_set sequential="true" id="test-colocation-resource_set">
                        <resource_ref id="vip-master"/>
                        <resource_ref id="vip-rep"/>
                </resource_set>
        </rsc_colocation>
        <rsc_order id="test-order">
                <resource_set sequential="false" id="test-order-resource_set">
                        <resource_ref id="vip-master"/>
                        <resource_ref id="vip-rep"/>
                </resource_set>
        </rsc_order>
    </constraints>


[root at rh64-heartbeat1 ~]# grep "Initiating action" /var/log/ha-log
Mar 22 21:36:38 rh64-heartbeat1 crmd: [2222]: info: te_rsc_command: Initiating action 2: probe_complete probe_complete on rh64-heartbeat1 (local) - no waiting
Mar 22 21:36:49 rh64-heartbeat1 crmd: [2222]: info: te_rsc_command: Initiating action 8: monitor vip-master_monitor_0 on rh64-heartbeat1 (local)
Mar 22 21:36:49 rh64-heartbeat1 crmd: [2222]: info: te_rsc_command: Initiating action 9: monitor vip-rep_monitor_0 on rh64-heartbeat1 (local)
Mar 22 21:36:49 rh64-heartbeat1 crmd: [2222]: info: te_rsc_command: Initiating action 7: probe_complete probe_complete on rh64-heartbeat1 (local) - no waiting
Mar 22 21:36:49 rh64-heartbeat1 crmd: [2222]: info: te_rsc_command: Initiating action 10: start vip-master_start_0 on rh64-heartbeat1 (local)
Mar 22 21:36:50 rh64-heartbeat1 crmd: [2222]: info: te_rsc_command: Initiating action 1: stop vip-master_stop_0 on rh64-heartbeat1 (local)

}}}
 * Cse 3 : false/true
{{{
(snip)
    <resources>
      <group id="testGroup01">
        <primitive class="ocf" type="Dummy1" provider="heartbeat" id="vip-master">
          <operations>
(snip)
    <constraints>
        <rsc_colocation id="test-colocation">
                <resource_set sequential="false" id="test-colocation-resource_set">
                        <resource_ref id="vip-master"/>
                        <resource_ref id="vip-rep"/>
                </resource_set>
        </rsc_colocation>
        <rsc_order id="test-order">
                <resource_set sequential="true" id="test-order-resource_set">
                        <resource_ref id="vip-master"/>
                        <resource_ref id="vip-rep"/>
                </resource_set>
        </rsc_order>
    </constraints>

[root at rh64-heartbeat1 ~]# grep "Initiating action" /var/log/ha-log
Mar 22 21:38:51 rh64-heartbeat1 crmd: [2358]: info: te_rsc_command: Initiating action 2: probe_complete probe_complete on rh64-heartbeat1 (local) - no waiting
Mar 22 21:39:07 rh64-heartbeat1 crmd: [2358]: info: te_rsc_command: Initiating action 8: monitor vip-master_monitor_0 on rh64-heartbeat1 (local)
Mar 22 21:39:07 rh64-heartbeat1 crmd: [2358]: info: te_rsc_command: Initiating action 9: monitor vip-rep_monitor_0 on rh64-heartbeat1 (local)
Mar 22 21:39:07 rh64-heartbeat1 crmd: [2358]: info: te_rsc_command: Initiating action 7: probe_complete probe_complete on rh64-heartbeat1 (local) - no waiting
Mar 22 21:39:07 rh64-heartbeat1 crmd: [2358]: info: te_rsc_command: Initiating action 10: start vip-master_start_0 on rh64-heartbeat1 (local)
Mar 22 21:39:07 rh64-heartbeat1 crmd: [2358]: info: te_rsc_command: Initiating action 1: stop vip-master_stop_0 on rh64-heartbeat1 (local)

}}}
 * Case 4 : false/false
{{{
(snip)
    <resources>
      <group id="testGroup01">
        <primitive class="ocf" type="Dummy1" provider="heartbeat" id="vip-master">
          <operations>
(snip)
    <constraints>
        <rsc_colocation id="test-colocation">
                <resource_set sequential="false" id="test-colocation-resource_set">
                        <resource_ref id="vip-master"/>
                        <resource_ref id="vip-rep"/>
                </resource_set>
        </rsc_colocation>
        <rsc_order id="test-order">
                <resource_set sequential="false" id="test-order-resource_set">
                        <resource_ref id="vip-master"/>
                        <resource_ref id="vip-rep"/>                </resource_set>
        </rsc_order>
    </constraints>

[root at rh64-heartbeat1 ~]# grep "Initiating action" /var/log/ha-log
Mar 22 21:41:11 rh64-heartbeat1 crmd: [2491]: info: te_rsc_command: Initiating action 2: probe_complete probe_complete on rh64-heartbeat1 (local) - no waiting
Mar 22 21:42:16 rh64-heartbeat1 crmd: [2491]: info: te_rsc_command: Initiating action 8: monitor vip-master_monitor_0 on rh64-heartbeat1 (local)
Mar 22 21:42:16 rh64-heartbeat1 crmd: [2491]: info: te_rsc_command: Initiating action 9: monitor vip-rep_monitor_0 on rh64-heartbeat1 (local)
Mar 22 21:42:16 rh64-heartbeat1 crmd: [2491]: info: te_rsc_command: Initiating action 7: probe_complete probe_complete on rh64-heartbeat1 (local) - no waiting
Mar 22 21:42:16 rh64-heartbeat1 crmd: [2491]: info: te_rsc_command: Initiating action 10: start vip-master_start_0 on rh64-heartbeat1 (local)
Mar 22 21:42:16 rh64-heartbeat1 crmd: [2491]: info: te_rsc_command: Initiating action 1: stop vip-master_stop_0 on rh64-heartbeat1 (local)

}}}

Using ordering_set and colocation_set, is it impossible to perform movement same as "ordered=false" of the group resource?

Best Reagards,
Hideo Yamauchi.






More information about the Pacemaker mailing list