Hello! I have another problem with my resource agent which should run in a master slave fashion. I successfully tested the RA with ocf-tester and it completes any promote or demote action:
fctarget[14659]: DEBUG: Resource is running fctarget[14659]: DEBUG: Resource is currently running as Slave fctarget[14659]: DEBUG: fctargettest demote : 0 Checking for promote action fctarget[14677]: DEBUG: Resource is running fctarget[14677]: DEBUG: Resource is currently running as Slave fctarget[14677]: DEBUG: Resource is running MASTER fctarget[14677]: DEBUG: Resource promoted fctarget[14677]: DEBUG: fctargettest promote : 0 Testing: demotion of started resource fctarget[14717]: DEBUG: Resource is running MASTER fctarget[14717]: DEBUG: Resource is currently running as Master fctarget[14717]: DEBUG: Resource is running fctarget[14717]: DEBUG: Resource demoted fctarget[14717]: DEBUG: fctargettest demote : 0 Testing: promote fctarget[14746]: DEBUG: Resource is running fctarget[14746]: DEBUG: Resource is currently running as Slave fctarget[14746]: DEBUG: Resource is running MASTER fctarget[14746]: DEBUG: Resource promoted fctarget[14746]: DEBUG: fctargettest promote : 0 Testing: demote fctarget[14790]: DEBUG: Resource is running MASTER fctarget[14790]: DEBUG: Resource is currently running as Master fctarget[14790]: DEBUG: Resource is running fctarget[14790]: DEBUG: Resource demoted fctarget[14790]: DEBUG: fctargettest demote : 0 Testing: demotion of demoted resource fctarget[14819]: DEBUG: Resource is running fctarget[14819]: DEBUG: Resource is currently running as Slave fctarget[14819]: DEBUG: fctargettest demote : 0 [...] fctarget passed all tests I added the resource to the crm and it successfully starts on both nodes. But it does not promote anywhere although I have configured target-role "Master" The Cluster Manager does not even try to promote as I don't get any log output about something failing. It seems the crm does not like my RA for some reason. I can successfully promote a Stateful Dummy resource or a DRBD device with the CRM. Configuration of resource looks like the following: primitive p_fctarget_7701 ocf:onesty:fctarget \ params wwnn="77:00:00:00:00:00:01:00" wwpn="77:00:00:00:00:00:01:01" parentwwpns="storage-test-a;21:00:00:e0:8b:86:0e:cf storage-test-b;21:00:00:1b:32:88:66:c5" \ op stop interval="0" timeout="40s" ms ms_fctarget_7701 p_fctarget_7701 \ meta master-max="1" clone-max="2" clone-node-max="1" target-role="Master" My resource agent does support the promote and demote action and advertises them in the meta data: <actions> <action name="start" timeout="15" /> <action name="stop" timeout="40" /> <action name="promote" timeout="20" /> <action name="demote" timeout="20" /> <action name="status " timeout="10" interval="10" /> <action name="monitor" timeout="10" interval="10" role="Master"/> <action name="monitor" timeout="10" interval="10" role="Slave"/> <action name="meta-data" timeout="5" /> <action name="validate-all" timeout="10" /> </actions> case $__OCF_ACTION in start) fctarget_start;; stop) fctarget_stop;; promote) fctarget_promote;; demote) fctarget_demote;; monitor|status) fctarget_monitor;; validate-all) fctarget_validate_all;; *) fctarget_usage exit $OCF_ERR_UNIMPLEMENTED ;; This ist he output of crm status: Master/Slave Set: ms_fctarget_7701 [p_fctarget_7701] Slaves: [ storage-test-a storage-test-b ] I tried manually promoting and demoting the resource which simply seems to do NOTHING. Can anyone give me a hint what I am missing? Thank you all in advance _______________________________________________ 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://bugs.clusterlabs.org