<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal>Hi<o:p></o:p></p>
<p class=MsoNormal>I’m trying to use a OCF script in my Openais Cluster.<o:p></o:p></p>
<p class=MsoNormal>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.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>When I stop the resource and start it again it
executes the correct ocf script the second time around.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>This usually happened when the resource fails over to
another node and initially runs LSB script instead the OCF one. Very strange. <o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Any advise is greatly appreciated.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>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.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><b>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 )<o:p></o:p></b></p>
<p class=MsoNormal><b>May 29 05:01:40 gpp0099pun018 lrmd: [10924]: info:
rsc:ppsd-6: start<o:p></o:p></b></p>
<p class=MsoNormal><b>May 29 05:01:40 gpp0099pun018 lrmd: [7387]: WARN: For LSB
init script, no additional parameters are needed.<o:p></o:p></b></p>
<p class=MsoNormal><b>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<o:p></o:p></b></p>
<p class=MsoNormal><b>May 29 05:01:40 gpp0099pun018 lrmd: [10924]: ERROR:
Failed to open lsb RA ppsd. No meta-data gotten.<o:p></o:p></b></p>
<p class=MsoNormal><b>May 29 05:01:40 gpp0099pun018 lrmd: [10924]: WARN:
on_msg_get_metadata: empty metadata for lsb::heartbeat::ppsd.<o:p></o:p></b></p>
<p class=MsoNormal><b>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<o:p></o:p></b></p>
<p class=MsoNormal><b>et_ret_from_msg.<o:p></o:p></b></p>
<p class=MsoNormal><b>May 29 05:01:40 gpp0099pun018 crmd: [10927]: WARN:
get_rsc_metadata: No metadata found for ppsd::lsb:heartbeat<o:p></o:p></b></p>
<p class=MsoNormal><b>May 29 05:01:40 gpp0099pun018 crmd: [10927]: ERROR:
string2xml: Can't parse NULL input<o:p></o:p></b></p>
<p class=MsoNormal><b>May 29 05:01:40 gpp0099pun018 crmd: [10927]: ERROR:
get_rsc_restart_list: Metadata for (null)::lsb:ppsd is not valid XML<o:p></o:p></b></p>
<p class=MsoNormal><b>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<o:p></o:p></b></p>
<p class=MsoNormal><b><unknown><o:p></o:p></b></p>
<p class=MsoNormal><b><o:p> </o:p></b></p>
<p class=MsoNormal><b><o:p> </o:p></b></p>
<p class=MsoNormal>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<o:p></o:p></p>
<p class=MsoNormal><b><o:p> </o:p></b></p>
<p class=MsoNormal><b><o:p> </o:p></b></p>
<p class=MsoNormal><b>primitive ppsd-0 ocf:custom:ppsd \<o:p></o:p></b></p>
<p class=MsoNormal><b> params
externalip="192.168.0.50" \<o:p></o:p></b></p>
<p class=MsoNormal><b> op monitor
interval="10s" timeout="90s" \<o:p></o:p></b></p>
<p class=MsoNormal><b> op start
interval="0" timeout="1800s" \<o:p></o:p></b></p>
<p class=MsoNormal><b> op stop
interval="0" timeout="180s" \<o:p></o:p></b></p>
<p class=MsoNormal><b> meta
target-role="Started" is-managed="true"<o:p></o:p></b></p>
<p class=MsoNormal><b><o:p> </o:p></b></p>
<p class=MsoNormal><b>Using Openais 0.80.5<o:p></o:p></b></p>
<p class=MsoNormal><b>Pacemaker 1.0.4<o:p></o:p></b></p>
<p class=MsoNormal><b><o:p> </o:p></b></p>
<p class=MsoNormal><b><o:p> </o:p></b></p>
<p class=MsoNormal><b><o:p> </o:p></b></p>
</div>
</body>
</html>