[Pacemaker] Multistate resources ignore constraints

Simon Jansen simon.jansen1 at googlemail.com
Mon Jan 3 04:07:06 EST 2011


Hi,

I have got some multistate resources running. This resources should start
after the resources resIP (IPaddr2) and resFSys (Filesystem).
So to accomplish this requirement I defined the following constraints.
colocation colFSysNTP inf: msNTP:Master resFSys
colocation colIPNTP inf: msNTP:Master resIP
order orderFSysNTP inf: resFSys msNTP:promote
order orderIPNTP inf: resIP msNTP:promote

The multistate resource is defined as follows:
primitive resNTP ocf:T-Systems:ntp \
        params master_config="/mnt/DRBD/drbd1/ntp/cnf/ntp_master.conf"
slave_config="/etc/ntp.conf" \
        op monitor interval="10" role="Master" timeout="30" \
        op monitor interval="12" timeout="31" \
        op start interval="0" timeout="120" \
        op stop interval="0" timeout="120"
ms msNTP resNTP

The problem is that the multistate resource msNTP tries to promote anyways
even if the resources resIP and resFSys are not running on a cluster node.
So the constraints do not take effect at all.
Is there a solution to control the promotion of multistate resources with
constraints?

-- 


Regards

Simon Jansen


---------------------------
Simon Jansen
64291 Darmstadt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clusterlabs.org/pipermail/pacemaker/attachments/20110103/51c44333/attachment.html>


More information about the Pacemaker mailing list