<p dir="ltr"></p>
<p dir="ltr">-Atin<br>
Sent from one plus one<br>
On Jul 17, 2015 5:32 PM, &quot;Manikandan Selvaganesh&quot; &lt;<a href="mailto:mselvaga@redhat.com">mselvaga@redhat.com</a>&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Regards,<br>
&gt; Manikandan Selvaganesh.<br>
&gt;<br>
&gt; ----- Forwarded Message -----<br>
&gt; From: Manikandan Selvaganesh &lt;<a href="mailto:mselvaga@redhat.com">mselvaga@redhat.com</a>&gt;<br>
&gt; To: <a href="mailto:gluster-devel@gluster.org">gluster-devel@gluster.org</a><br>
&gt; Sent: Fri, 17 Jul 2015 05:58:25 -0400 (EDT)<br>
&gt; Subject: &quot;gluster peer probe&quot; on localhost should fail with appropriate value<br>
&gt;<br>
&gt; Hi,<br>
&gt;<br>
&gt; Currently, the command &quot;gluster peer probe $localhost&quot; shows &quot;peer probe: success. Probe on localhost not needed&quot; with a ret value of 0.<br>
&gt;<br>
&gt; As per the discussion with Satheesaran(QE), since, we are showing a warning message, &quot;Probe on localhost not needed&quot;, so, would it be better if we show &quot;peer probe: failure: Probe on localhost not needed&quot; with a ret value of -1.<br>
My only concern on the patch is are we breaking any automation or not. I think it makes sense to forward this query to gluster-user mailing list and get the feedback from the users.<br>
&gt;<br>
&gt; In my opinion, it would be better to change if no script is dependent on this ret value. Are there any automation scripts or other functions which uses this ret value or is there any reason to not return an error(ret = -1)?<br>
&gt;<br>
&gt; I have sent a patch[1] changing the ret value to -1 if its a local host and &quot;gluster peer probe $localhost&quot; would show &quot;peer probe: failed: Probe on localhost not needed&quot;.<br>
&gt;<br>
&gt; [1] <a href="http://review.gluster.org/#/c/11704/">http://review.gluster.org/#/c/11704/</a><br>
&gt;<br>
&gt; Any suggestions would be helpful!!<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Thanks &amp; regards,<br>
&gt; Manikandan Selvaganesh.<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Gluster-devel mailing list<br>
&gt; <a href="mailto:Gluster-devel@gluster.org">Gluster-devel@gluster.org</a><br>
&gt; <a href="http://www.gluster.org/mailman/listinfo/gluster-devel">http://www.gluster.org/mailman/listinfo/gluster-devel</a><br>
</p>