<br><div class="gmail_quote">On 2 November 2010 11:22, Dejan Muhamedagic <span dir="ltr"><<a href="mailto:dejanmm@fastmail.fm">dejanmm@fastmail.fm</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<div><div></div><div class="h5"><br>
On Fri, Oct 29, 2010 at 08:37:04AM +0200, Pavlos Parissis wrote:<br>
> Hi,<br>
><br>
> I wanted to check what happens when the monitor of a fencing agents<br>
> fails, thus I disconnected the PDU from network, reduced the monitor<br>
> interval and put debug statements on the fencing script.<br>
><br>
> here is the debug statements on the status code<br>
> status)<br>
> if [ -z "$pduip" ]; then<br>
> exit 1<br>
> fi<br>
> date >> /tmp/pdu.monitor<br>
> if ping -w1 -c1 $pduip >/dev/null 2>&1; then<br>
> exit 0<br>
> else<br>
> echo "failed" >> /tmp/pdu.monitor<br>
> exit 1<br>
> fi<br>
> ;;<br>
><br>
><br>
> here is the debug output which states that monitor failed<br>
> [root@node-03 tmp]# cat pdu.monitor<br>
> Fri Oct 29 08:29:20 CEST 2010<br>
> Fri Oct 29 08:31:05 CEST 2010<br>
> failed<br>
> Fri Oct 29 08:32:50 CEST 2010<br>
> failed<br>
><br>
> but pacemaker thinks is fine<br>
> [root@node-03 tmp]# crm status|grep pdu<br>
> pdu (stonith:external/rackpdu): Started node-03<br>
> [root@node-03 tmp]#<br>
><br>
><br>
> and here is the resource<br>
> primitive pdu stonith:external/rackpdu \<br>
> params community="empisteftiko"<br>
> names_oid=".1.3.6.1.4.1.318.1.1.4.4.2.1.4"<br>
> oid=".1.3.6.1.4.1.318.1.1.4.4.2.1.3" hostlist="AUTO"<br>
> pduip="192.168.100.100" stonith-timeout="30" \<br>
> op monitor interval="1m" timeout="60s"<br>
><br>
> Is it the expected behaviour?<br>
<br>
</div></div>Definitely not. If you do the monitor action from the command<br>
line does that also return the unexpected exit code:<br></blockquote><div><br></div><div>from the code I pasted you can see it returned 1. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
# stonith -t external/rackpdu community="empisteftiko" names_oid=".1.3.6.1.4.1.318.1.1.4.4.2.1.4" ... -lS<br>
<br>
Which pacemaker release do you run? I couldn't reproduce this<br>
with a recent Pacemaker.<br></blockquote><div><br></div><div>that it was on 1.1.3 and now I run 1.0.9.</div><div>Do you want me to run the test on 1.0.9?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Thanks,<br>
<br>
Dejan<br>
<br>
> Cheers,<br>
> Pavlos<br>
><br>
> _______________________________________________<br>
> Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
> <a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
><br>
> Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
> Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
> Bugs: <a href="http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker" target="_blank">http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker</a><br>
<br>
_______________________________________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker" target="_blank">http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker</a><br>
</blockquote></div><br>