[Pacemaker] Multistate Resources is not promoted automatically

Simon Jansen simon.jansen1 at googlemail.com
Thu Nov 11 08:59:59 UTC 2010


Hi everybody,

I wrote a multistate resource agent to manage the Rsyslog service in a
master/slave setup.
In the master role the service is started with a predefined
rsyslog_master.conf. In the slave role with a predefined rsyslog_slave.conf
configuration file.
The start operation of the agent starts the service in slave mode. The RA
passes all tests of the ocf-tester tool.
When I use the RA to configure a multistate resource in the cluster, the
cluster starts the resource on both nodes as slave. The problem is that the
resource isn't promoted automatically. When I do a
crm(live)# resource promote msRsyslog
on the subshell the resource is promoted correctly it and starts as master
on one node.

This is the definition of the resource:
primitive resRsyslog ocf:heartbeat:Rsyslog \
    params master_config="/etc/rsyslog_master.conf"
slave_config="/etc/rsyslog.conf" \
    op monitor interval="10" role="Master" timeout="30" start-delay="1" \
    op monitor interval="12" timeout="31" \
    op start interval="0" timeout="120" \
    op stop interval="0" timeout="120"
ms msRsyslog resRsyslog

Further I attached the resource agent.



-- 

Regards,

Simon Jansen


---------------------------
Simon Jansen
64291 Darmstadt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20101111/bb8088fc/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Rsyslog
Type: application/octet-stream
Size: 13956 bytes
Desc: not available
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20101111/bb8088fc/attachment-0003.obj>


More information about the Pacemaker mailing list