<br><div class="gmail_quote">On 2 November 2010 11:22, Dejan Muhamedagic <span dir="ltr">&lt;<a href="mailto:dejanmm@fastmail.fm">dejanmm@fastmail.fm</a>&gt;</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>
&gt; Hi,<br>
&gt;<br>
&gt; I wanted to check what happens when the monitor of a fencing agents<br>
&gt; fails, thus I disconnected the PDU from network, reduced the monitor<br>
&gt; interval and put debug statements on the fencing script.<br>
&gt;<br>
&gt; here is the debug statements on the status code<br>
&gt; status)<br>
&gt;         if [ -z &quot;$pduip&quot; ]; then<br>
&gt;             exit 1<br>
&gt;         fi<br>
&gt;         date &gt;&gt; /tmp/pdu.monitor<br>
&gt;         if ping -w1 -c1 $pduip &gt;/dev/null 2&gt;&amp;1; then<br>
&gt;             exit 0<br>
&gt;         else<br>
&gt;             echo &quot;failed&quot; &gt;&gt; /tmp/pdu.monitor<br>
&gt;             exit 1<br>
&gt;         fi<br>
&gt;         ;;<br>
&gt;<br>
&gt;<br>
&gt; here is the debug output which states that monitor failed<br>
&gt; [root@node-03 tmp]# cat pdu.monitor<br>
&gt; Fri Oct 29 08:29:20 CEST 2010<br>
&gt; Fri Oct 29 08:31:05 CEST 2010<br>
&gt; failed<br>
&gt; Fri Oct 29 08:32:50 CEST 2010<br>
&gt; failed<br>
&gt;<br>
&gt; but pacemaker thinks is fine<br>
&gt; [root@node-03 tmp]# crm status|grep pdu<br>
&gt;  pdu    (stonith:external/rackpdu):     Started node-03<br>
&gt; [root@node-03 tmp]#<br>
&gt;<br>
&gt;<br>
&gt; and here is the resource<br>
&gt; primitive pdu stonith:external/rackpdu \<br>
&gt;         params community=&quot;empisteftiko&quot;<br>
&gt; names_oid=&quot;.1.3.6.1.4.1.318.1.1.4.4.2.1.4&quot;<br>
&gt; oid=&quot;.1.3.6.1.4.1.318.1.1.4.4.2.1.3&quot; hostlist=&quot;AUTO&quot;<br>
&gt; pduip=&quot;192.168.100.100&quot; stonith-timeout=&quot;30&quot; \<br>
&gt;         op monitor interval=&quot;1m&quot; timeout=&quot;60s&quot;<br>
&gt;<br>
&gt; 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=&quot;empisteftiko&quot; names_oid=&quot;.1.3.6.1.4.1.318.1.1.4.4.2.1.4&quot; ... -lS<br>
<br>
Which pacemaker release do you run? I couldn&#39;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>
&gt; Cheers,<br>
&gt; Pavlos<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
&gt; <a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
&gt;<br>
&gt; Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
&gt; 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>
&gt; 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>