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
Rsyslog
Description: Binary data
_______________________________________________ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker