[Pacemaker] Openais OCF Script Question

Emil Popov epopov at postpath.com
Sat May 29 21:13:21 EDT 2010


Hi
I'm trying to use a OCF script in my Openais Cluster.
For the most part it works. From time to time though , the Pacemaker executes the original resource  LSB script instead of the correct OCF one.... Therefore not passing correct parameters to the resource.
 
 
When I stop the resource  and start it again it executes the correct ocf script the second time around.
 
This usually happened when the resource fails over to another node and initially runs LSB script instead the OCF one. Very strange. 

Any advise is greatly appreciated.
 
Below is the error in the /var/log/messages It insists on using the LSB in /etc/init.d directory. I had renamed the /etc/init.d/ppsd script but that causes the below error and Stonith reboots the node.
 
 
 
May 29 05:01:40 gpp0099pun018 crmd: [10927]: info: do_lrm_rsc_op: Performing key=186:20891:0:977e982d-1345-4d4f-b69f-9bf0de010aa3 op=ppsd-6_start_0 )
May 29 05:01:40 gpp0099pun018 lrmd: [10924]: info: rsc:ppsd-6: start
May 29 05:01:40 gpp0099pun018 lrmd: [7387]: WARN: For LSB init script, no additional parameters are needed.
May 29 05:01:40 gpp0099pun018 lrmd: [7387]: ERROR: (raexeclsb.c:execra:266) execv failed for /etc/init.d/ppsd: No such file or directory
May 29 05:01:40 gpp0099pun018 lrmd: [10924]: ERROR: Failed to open lsb RA ppsd. No meta-data gotten.
May 29 05:01:40 gpp0099pun018 lrmd: [10924]: WARN: on_msg_get_metadata: empty metadata for lsb::heartbeat::ppsd.
May 29 05:01:40 gpp0099pun018 crmd: [10927]: ERROR: lrm_get_rsc_type_metadata(575): got a return code HA_FAIL from a reply message of rmetadata with function g
et_ret_from_msg.
May 29 05:01:40 gpp0099pun018 crmd: [10927]: WARN: get_rsc_metadata: No metadata found for ppsd::lsb:heartbeat
May 29 05:01:40 gpp0099pun018 crmd: [10927]: ERROR: string2xml: Can't parse NULL input
May 29 05:01:40 gpp0099pun018 crmd: [10927]: ERROR: get_rsc_restart_list: Metadata for (null)::lsb:ppsd is not valid XML
May 29 05:01:40 gpp0099pun018 crmd: [10927]: info: process_lrm_event: LRM operation ppsd-6_start_0 (call=103, rc=254, cib-update=239, confirmed=true) complete
<unknown>
 
 
Here is the resource configuration that I have in the Pacemaker. It's is supposed to use OCF script named ppsd in directory /usr/lib/ocf/resource.d/custom/ppsd
 
 
primitive ppsd-0 ocf:custom:ppsd \
        params externalip="192.168.0.50" \
        op monitor interval="10s" timeout="90s" \
        op start interval="0" timeout="1800s" \
        op stop interval="0" timeout="180s" \
        meta target-role="Started" is-managed="true"
 
Using Openais 0.80.5
Pacemaker 1.0.4
 
 
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clusterlabs.org/pipermail/pacemaker/attachments/20100530/8433d7a8/attachment-0001.html>


More information about the Pacemaker mailing list