Hi everybody,<br><br>I wrote a multistate resource agent to manage the Rsyslog service in a master/slave setup.<br>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.<br>
The start operation of the agent starts the service in slave mode. The RA passes all tests of the ocf-tester tool.<br>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 <br>
crm(live)# resource promote msRsyslog <br>on the subshell the resource is promoted correctly it and starts as master on one node.<br><br>This is the definition of the resource:<br><span style="font-family: courier new,monospace;">primitive resRsyslog ocf:heartbeat:Rsyslog \</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> params master_config="/etc/rsyslog_master.conf" slave_config="/etc/rsyslog.conf" \</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> op monitor interval="10" role="Master" timeout="30" start-delay="1" \</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> op monitor interval="12" timeout="31" \</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> op start interval="0" timeout="120" \</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> op stop interval="0" timeout="120"</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">ms msRsyslog resRsyslog</span><br>
<br>Further I attached the resource agent.<br><br><br><br>-- <br><br>Regards,<br><br>Simon Jansen<br><br><br>---------------------------<br>Simon Jansen<br>64291 Darmstadt<br>