[Pacemaker] Resource is not started immediately regardless of require-all="false"

Takatoshi MATSUO matsuo.tak at gmail.com
Thu Sep 12 06:29:21 EDT 2013


Hi all

I use resource_set and require-all='false' as follows

--------------------------------
    <constraints>
      <rsc_order id="order1" kind="Mandatory">
        <resource_set id="order1-0">
          <resource_ref id="dummy1"/>
        </resource_set>
        <resource_set id="order1-1" require-all="false" sequential="false">
          <resource_ref id="dummy2"/>
          <resource_ref id="dummy3"/>
        </resource_set>
        <resource_set id="order1-2">
          <resource_ref id="dummy4"/>
        </resource_set>
      </rsc_order>
    </constraints>
--------------------------------

Dummy1 and dummy2 have "sleep 5"  on start.
and dummy3 has "sleep 10" on start.

In this case, dummy4 should be started immediately after dummy2 is started ?
But dummy4 is not started until dummy3 is started.

dummy1 17:50:10  + sleep 5
dummy2 17:50:15  + sleep 5
dummy3 17:50:15  + sleep 10
dummy4  17:50:25    <--- not 17:50:20 !!

Is this normal ?

I use pacemaker 951cc5f which is commited 7 days ago.

--------------------------------------------
Last updated: Thu Sep 12 17:52:26 2013
Last change: Thu Sep 12 17:50:09 2013 via cibadmin on 16-sl6
Stack: corosync
Current DC: 16-sl6 (1084752244) - partition with quorum
Version: 1.1.11-0.1.951cc5f.git.el6-951cc5f
1 Nodes configured
4 Resources configured


Online: [ 16-sl6 ]

dummy1  (ocf::heartbeat:Dummy5):        Started 16-sl6
dummy2  (ocf::heartbeat:Dummy5):        Started 16-sl6
dummy3  (ocf::heartbeat:Dummy10):       Started 16-sl6
dummy4  (ocf::heartbeat:Dummy): Started 16-sl6

Operations:
* Node 16-sl6:
   dummy3: migration-threshold=1
    + (30) start: last-rc-change='Thu Sep 12 17:50:15 2013'
last-run='Thu Sep 12 17:50:15 2013' exec-time=10050ms queue-time=0ms
rc=0 (ok)
    + (38) monitor: interval=10000ms last-rc-change='Thu Sep 12
17:50:25 2013' exec-time=27ms queue-time=0ms rc=0 (ok)
   dummy4: migration-threshold=1
    + (40) start: last-rc-change='Thu Sep 12 17:50:25 2013'
last-run='Thu Sep 12 17:50:25 2013' exec-time=40ms queue-time=0ms rc=0
(ok)
    + (44) monitor: interval=10000ms last-rc-change='Thu Sep 12
17:50:25 2013' exec-time=25ms queue-time=0ms rc=0 (ok)
   dummy1: migration-threshold=1
    + (23) start: last-rc-change='Thu Sep 12 17:50:10 2013'
last-run='Thu Sep 12 17:50:10 2013' exec-time=5036ms queue-time=0ms
rc=0 (ok)
    + (26) monitor: interval=10000ms last-rc-change='Thu Sep 12
17:50:15 2013' exec-time=44ms queue-time=0ms rc=0 (ok)
   dummy2: migration-threshold=1
    + (28) start: last-rc-change='Thu Sep 12 17:50:15 2013'
last-run='Thu Sep 12 17:50:15 2013' exec-time=5062ms queue-time=0ms
rc=0 (ok)
    + (34) monitor: interval=10000ms last-rc-change='Thu Sep 12
17:50:20 2013' exec-time=23ms queue-time=0ms rc=0 (ok)
--------------------------------------------

Regards,
Takatoshi MATSUO




More information about the Pacemaker mailing list