<div dir="ltr"><div>So from the logs what it looks to be a regression caused by commit 635c1c3 ( and the good news is that this is now fixed in release-3.12 branch and should be part of 3.12.5.<br><br></div>Commit which fixes this issue:<br><br><pre class="gmail-bz_comment_text gmail-bz_wrap_comment_text" id="gmail-comment_text_6">COMMIT: <a href="https://review.gluster.org/19146">https://review.gluster.org/19146</a> committed in release-3.12 by \&quot;Atin Mukherjee\&quot; &lt;<a href="mailto:amukherj@redhat.com">amukherj@redhat.com</a>&gt; with a commit message- glusterd: connect to an existing brick process when qourum status is NOT_APPLICABLE_QUORUM

First of all, this patch reverts commit 635c1c3 as the same is causing a
regression with bricks not coming up on time when a node is rebooted.
This patch tries to fix the problem in a different way by just trying to
connect to an existing running brick when quorum status is not
applicable.

<span class="gmail-quote">&gt;mainline patch : <a href="https://review.gluster.org/#/c/19134/">https://review.gluster.org/#/c/19134/</a></span>

Change-Id: I0efb5901832824b1c15dcac529bffac85173e097
BUG: 1511301
Signed-off-by: Atin Mukherjee &lt;<a href="mailto:amukherj@redhat.com">amukherj@redhat.com</a>&gt;<br><br><br></pre><pre class="gmail-bz_comment_text gmail-bz_wrap_comment_text" id="gmail-comment_text_6"><br></pre></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 22, 2018 at 3:15 PM, Alan Orth <span dir="ltr">&lt;<a href="mailto:alan.orth@gmail.com" target="_blank">alan.orth@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Ouch! Yes, I see two port-related fixes in the GlusterFS 3.12.3 release notes[0][1][2]. I&#39;ve attached a tarball of all yesterday&#39;s logs from /var/log/glusterd on one the affected nodes (called &quot;wingu3&quot;). I hope that&#39;s what you need.<br><br>[0] <a href="https://github.com/gluster/glusterfs/blob/release-3.12/doc/release-notes/3.12.3.md" target="_blank">https://github.com/gluster/<wbr>glusterfs/blob/release-3.12/<wbr>doc/release-notes/3.12.3.md</a><br>[1] <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1507747" target="_blank">https://bugzilla.redhat.com/<wbr>show_bug.cgi?id=1507747</a><br>[2] <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1507748" target="_blank">https://bugzilla.redhat.com/<wbr>show_bug.cgi?id=1507748</a><br><br></div>Thanks,<div><div class="h5"><br><div><br><div class="gmail_quote"><div dir="ltr">On Mon, Jan 22, 2018 at 6:34 AM Atin Mukherjee &lt;<a href="mailto:amukherj@redhat.com" target="_blank">amukherj@redhat.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">The patch was definitely there in 3.12.3. Do you have the glusterd and brick logs handy with you when this happened?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jan 21, 2018 at 10:21 PM, Alan Orth <span dir="ltr">&lt;<a href="mailto:alan.orth@gmail.com" target="_blank">alan.orth@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>For what it&#39;s worth, I just updated some CentOS 7 servers from GlusterFS 3.12.1 to 3.12.4 and hit this bug. Did the patch make it into 3.12.4? I had to use Mike Hulsman&#39;s script to check the daemon port against the port in the volume&#39;s brick info, update the port, and restart glusterd on each node. Luckily I only have four servers! Hoping I don&#39;t have to do this every time I reboot!<br><br></div>Regards,<br></div><div class="m_-8392684335593390701m_6986467165706276986m_5677432380100676713HOEnZb"><div class="m_-8392684335593390701m_6986467165706276986m_5677432380100676713h5"><br><div class="gmail_quote"><div dir="ltr">On Sat, Dec 2, 2017 at 5:23 PM Atin Mukherjee &lt;<a href="mailto:amukherj@redhat.com" target="_blank">amukherj@redhat.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div class="gmail_quote"><div dir="auto">On Sat, 2 Dec 2017 at 19:29, Jo Goossens &lt;<a href="mailto:jo.goossens@hosted-power.com" target="_blank">jo.goossens@hosted-power.com</a>&gt; wrote:<br></div></div></div></div><div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>

  
  
  
  

<div>
<p>Hello Atin,</p><p> </p><p> </p><p>Could you confirm this should have been fixed in 3.10.8? If so we&#39;ll test it for sure!</p></div></blockquote><div dir="auto"><br></div><div dir="auto">Fix should be part of 3.10.8 which is awaiting release announcement.</div><div dir="auto"><br></div></div></div></div><div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><p></p><p><br><br>Regards</p></div><div><p>Jo</p><p> </p><p><br> </p></div><div><blockquote style="border-left:2px solid #325fba;padding-left:5px;margin-left:5px">-----Original message-----<br><b>From:</b>        Atin Mukherjee &lt;<a href="mailto:amukherj@redhat.com" target="_blank">amukherj@redhat.com</a>&gt;<br></blockquote></div><div><blockquote style="border-left:2px solid #325fba;padding-left:5px;margin-left:5px"><b>Sent:</b>        Mon 30-10-2017 17:40<br><b>Subject:</b>        Re: [Gluster-users] BUG: After stop and start wrong port is advertised<br><b>To:</b>        Jo Goossens &lt;<a href="mailto:jo.goossens@hosted-power.com" target="_blank">jo.goossens@hosted-power.com</a>&gt;<wbr>; <br><b>CC:</b>        <a href="mailto:gluster-users@gluster.org" target="_blank">gluster-users@gluster.org</a>; <br>  <div><br><div><div dir="auto">On Sat, 28 Oct 2017 at 02:36, Jo Goossens &lt;<a href="mailto:jo.goossens@hosted-power.com" title="This external link will open in a new window" target="_blank">jo.goossens@hosted-power.com</a>&gt; wrote:</div><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">               <div><p>Hello Atin,</p><p> </p><p> </p><p>I just read it and very happy you found the issue. We really hope this will be fixed in the next 3.10.7 version!</p></div></blockquote><div dir="auto"> </div><div dir="auto">3.10.7 - no I guess as the patch is still in review and 3.10.7 is getting tagged today. You’ll get this fix in 3.10.8. </div><div dir="auto"> </div><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><p> </p><p> </p><p> </p><p>PS: Wow nice all that c code and those &quot;goto out&quot; statements (not always considered clean but the best way often I think). Can remember the days I wrote kernel drivers myself in c :)</p><p> </p><p> </p><p>Regards</p></div><div><p>Jo Goossens</p><p> </p><p> </p><p><br> </p></div><div><blockquote style="border-left:2px solid #325fba;padding-left:5px;margin-left:5px">-----Original message-----<br><b>From:</b>        Atin Mukherjee &lt;<a href="mailto:amukherj@redhat.com" title="This external link will open in a new window" target="_blank">amukherj@redhat.com</a>&gt;<br><b>Sent:</b>        Fri 27-10-2017 21:01<br><b>Subject:</b>        Re: [Gluster-users] BUG: After stop and start wrong port is advertised<br><b>To:</b>        Jo Goossens &lt;<a href="mailto:jo.goossens@hosted-power.com" title="This external link will open in a new window" target="_blank">jo.goossens@hosted-power.com</a>&gt;<wbr>; <br><b>CC:</b>        <a href="mailto:gluster-users@gluster.org" title="This external link will open in a new window" target="_blank">gluster-users@gluster.org</a>; <br>  </blockquote></div><div><blockquote style="border-left:2px solid #325fba;padding-left:5px;margin-left:5px"><div><div>We (finally) figured out the root cause, Jo!<br> </div>Patch <a href="https://review.gluster.org/#/c/18579" title="This external link will open in a new window" target="_blank">https://review.gluster.org/#/<wbr>c/18579</a> posted upstream for review.</div><div><br><div>On Thu, Sep 21, 2017 at 2:08 PM, Jo Goossens &lt;<a href="mailto:jo.goossens@hosted-power.com" title="This external link will open in a new window" target="_blank">jo.goossens@hosted-power.com</a>&gt; wrote:<br><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">               <div><p>Hi,</p><p> </p><p> </p><p>We use glusterfs 3.10.5 on Debian 9.</p><p> </p><p>When we stop or restart the service, e.g.: service glusterfs-server restart</p><p> </p><p>We see that the wrong port get&#39;s advertised afterwards. For example:</p><p> </p><p>Before restart:</p><p> </p><div>Status of volume: public</div><div>Gluster process                             TCP Port  RDMA Port  Online  Pid</div><div>------------------------------<wbr>------------------------------<wbr>------------------</div><div>Brick 192.168.140.41:/gluster/public        49153     0          Y       6364</div><div>Brick 192.168.140.42:/gluster/public        49152     0          Y       1483</div><div>Brick 192.168.140.43:/gluster/public        49152     0          Y       5913</div><div>Self-heal Daemon on localhost               N/A       N/A        Y       5932</div><div>Self-heal Daemon on 192.168.140.42          N/A       N/A        Y       13084</div><div>Self-heal Daemon on 192.168.140.41          N/A       N/A        Y       15499</div><div> </div><div>Task Status of Volume public</div><div>------------------------------<wbr>------------------------------<wbr>------------------</div><div>There are no active volume tasks</div><div> </div><div> </div><div>After restart of the service on one of the nodes (192.168.140.43) the port seems to have changed (but it didn&#39;t):</div><div> </div><div><div>root@app3:/var/log/glusterfs#  gluster volume status</div><div>Status of volume: public</div><div>Gluster process                             TCP Port  RDMA Port  Online  Pid</div><div>------------------------------<wbr>------------------------------<wbr>------------------</div><div>Brick 192.168.140.41:/gluster/public        49153     0          Y       6364</div><div>Brick 192.168.140.42:/gluster/public        49152     0          Y       1483</div><div>Brick 192.168.140.43:/gluster/public        49154     0          Y       5913</div><div>Self-heal Daemon on localhost               N/A       N/A        Y       4628</div><div>Self-heal Daemon on 192.168.140.42          N/A       N/A        Y       3077</div><div>Self-heal Daemon on 192.168.140.41          N/A       N/A        Y       28777</div><div> </div><div>Task Status of Volume public</div><div>------------------------------<wbr>------------------------------<wbr>------------------</div><div>There are no active volume tasks</div><div> </div></div><div> </div><div>However the active process is STILL the same pid AND still listening on the old port</div><div> </div><div><div>root@192.168.140.43:/var/log/<wbr>glusterfs# netstat -tapn | grep gluster</div><div>tcp        0      0 <a href="http://0.0.0.0:49152" title="This external link will open in a new window" target="_blank">0.0.0.0:49152</a>           0.0.0.0:*               LISTEN      5913/glusterfsd</div><div> </div></div><div> </div><div>The other nodes logs fill up with errors because they can&#39;t reach the daemon anymore. They try to reach it on the &quot;new&quot; port instead of the old one:</div><div> </div><div><div>[2017-09-21 08:33:25.225006] E [socket.c:2327:socket_connect_<wbr>finish] 0-public-client-2: connection to <a href="http://192.168.140.43:49154" title="This external link will open in a new window" target="_blank">192.168.140.43:49154</a> failed (Connection refused); disconnecting socket</div><div>[2017-09-21 08:33:29.226633] I [rpc-clnt.c:2000:rpc_clnt_<wbr>reconfig] 0-public-client-2: changing port to 49154 (from 0)</div><div>[2017-09-21 08:33:29.227490] E [socket.c:2327:socket_connect_<wbr>finish] 0-public-client-2: connection to <a href="http://192.168.140.43:49154" title="This external link will open in a new window" target="_blank">192.168.140.43:49154</a> failed (Connection refused); disconnecting socket</div><div>[2017-09-21 08:33:33.225849] I [rpc-clnt.c:2000:rpc_clnt_<wbr>reconfig] 0-public-client-2: changing port to 49154 (from 0)</div><div>[2017-09-21 08:33:33.236395] E [socket.c:2327:socket_connect_<wbr>finish] 0-public-client-2: connection to <a href="http://192.168.140.43:49154" title="This external link will open in a new window" target="_blank">192.168.140.43:49154</a> failed (Connection refused); disconnecting socket</div><div>[2017-09-21 08:33:37.225095] I [rpc-clnt.c:2000:rpc_clnt_<wbr>reconfig] 0-public-client-2: changing port to 49154 (from 0)</div><div>[2017-09-21 08:33:37.225628] E [socket.c:2327:socket_connect_<wbr>finish] 0-public-client-2: connection to <a href="http://192.168.140.43:49154" title="This external link will open in a new window" target="_blank">192.168.140.43:49154</a> failed (Connection refused); disconnecting socket</div><div>[2017-09-21 08:33:41.225805] I [rpc-clnt.c:2000:rpc_clnt_<wbr>reconfig] 0-public-client-2: changing port to 49154 (from 0)</div><div>[2017-09-21 08:33:41.226440] E [socket.c:2327:socket_connect_<wbr>finish] 0-public-client-2: connection to <a href="http://192.168.140.43:49154" title="This external link will open in a new window" target="_blank">192.168.140.43:49154</a> failed (Connection refused); disconnecting socket</div><div> </div></div><div>So they now try 49154 instead of the old 49152 </div><div> </div><div>Is this also by design? We had a lot of issues because of this recently. We don&#39;t understand why it starts advertising a completely wrong port after stop/start.</div><div> </div><div> </div><div> </div><div> </div><p> </p><p>Regards</p><font color="#888888"><p>Jo Goossens</p><p> </p> </font></div> <br>______________________________<wbr>_________________<br> Gluster-users mailing list<br> <a href="mailto:Gluster-users@gluster.org" title="This external link will open in a new window" target="_blank">Gluster-users@gluster.org</a><br> <a href="http://lists.gluster.org/mailman/listinfo/gluster-users" rel="noreferrer" title="This external link will open in a new window" target="_blank">http://lists.gluster.org/<wbr>mailman/listinfo/gluster-users</a><br></blockquote></div></div>   </blockquote></div></blockquote></div></div><div>-- </div><div>- Atin (atinm)</div>   </blockquote></div></blockquote></div></div></div><div dir="ltr">-- <br></div><div class="m_-8392684335593390701m_6986467165706276986m_5677432380100676713m_-7496821472009610050m_-8351102376709243194gmail_signature" data-smartmail="gmail_signature">- Atin (atinm)</div>
______________________________<wbr>_________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a><br>
<a href="http://lists.gluster.org/mailman/listinfo/gluster-users" rel="noreferrer" target="_blank">http://lists.gluster.org/<wbr>mailman/listinfo/gluster-users</a></blockquote></div><br clear="all"><br>-- <br></div></div><span class="m_-8392684335593390701m_6986467165706276986m_5677432380100676713HOEnZb"><font color="#888888"><div dir="ltr" class="m_-8392684335593390701m_6986467165706276986m_5677432380100676713m_-7496821472009610050gmail_signature" data-smartmail="gmail_signature"><p dir="ltr">Alan Orth<br>
<a href="mailto:alan.orth@gmail.com" target="_blank">alan.orth@gmail.com</a><br>
<a href="https://picturingjordan.com" target="_blank">https://picturingjordan.com</a><br>
<a href="https://englishbulgaria.net" target="_blank">https://englishbulgaria.net</a><br>
<a href="https://mjanja.ch" target="_blank">https://mjanja.ch</a></p>
</div>
</font></span></blockquote></div><br></div>
</blockquote></div></div></div></div></div><div class="HOEnZb"><div class="h5"><br clear="all"><br>-- <br><div dir="ltr" class="m_-8392684335593390701gmail_signature" data-smartmail="gmail_signature"><p dir="ltr">Alan Orth<br>
<a href="mailto:alan.orth@gmail.com" target="_blank">alan.orth@gmail.com</a><br>
<a href="https://picturingjordan.com" target="_blank">https://picturingjordan.com</a><br>
<a href="https://englishbulgaria.net" target="_blank">https://englishbulgaria.net</a><br>
<a href="https://mjanja.ch" target="_blank">https://mjanja.ch</a></p>
</div>
</div></div></blockquote></div><br></div>