<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">The crux of the problem is that as of
      today, brick processes on restart try to reuse the old port they
      were using (assuming that no other process will be using it, and
      not consulting pmap_registry_alloc() before using it). With a
      recent change, pmap_registry_alloc (), reassigns older ports that
      were used, but are now free. Hence snapd now gets a port that was
      previously used by a brick and tries to bind to it, whereas the
      older brick process without consulting pmap table blindly tries to
      connect to it, and hence we see this problem.<br>
      <br>
      Now coming to the fix, I feel brick process should not try to get
      the older port and should just take a new port every time it comes
      up. We will not run out of ports with this change coz, now pmap
      allocates old ports again, and the previous port being used by the
      brick process will eventually be reused. If anyone sees any
      concern with this approach, please feel free to raise so now.<br>
      <br>
      While awaiting feedback from you guys, I have sent this patch
      (<a class="moz-txt-link-freetext" href="http://review.gluster.org/15001">http://review.gluster.org/15001</a>), which moves the said test case
      to bad tests for now, and after we collectively reach to a
      conclusion on the fix, we will remove this from bad test.<br>
      <br>
      Regards,<br>
      Avra<br>
      <br>
      On 07/25/2016 02:33 PM, Avra Sengupta wrote:<br>
    </div>
    <blockquote cite="mid:5795D5E4.1090506@redhat.com" type="cite">
      <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
      <div class="moz-cite-prefix">The failure suggests that the port
        snapd is trying to bind to is already in use. But snapd has been
        modified to use a new port everytime. I am looking into this.<br>
        <br>
        On 07/25/2016 02:23 PM, Nithya Balachandran wrote:<br>
      </div>
      <blockquote
cite="mid:CAOUCJ=jQSAOHc1hJ7h4hRfouai0FVDNyfMLGVB=w4E=4+oERGQ@mail.gmail.com"
        type="cite">
        <div dir="ltr">More failures:
          <div><a moz-do-not-send="true"
href="https://build.gluster.org/job/rackspace-regression-2GB-triggered/22452/console">https://build.gluster.org/job/rackspace-regression-2GB-triggered/22452/console</a><br>
          </div>
          <div><br>
          </div>
          <div>I see these messages in the snapd.log:</div>
          <div><br>
          </div>
          <div>
            <div>[2016-07-22 05:31:52.482282] I
              [rpcsvc.c:2199:rpcsvc_set_outstanding_rpc_limit]
              0-rpc-service: Configured rpc.outstanding-rpc-limit with
              value 64</div>
            <div>[2016-07-22 05:31:52.482352] W [MSGID: 101002]
              [options.c:954:xl_opt_validate] 0-patchy-server: option
              'listen-port' is deprecated, preferred is
              'transport.socket.listen-port', continuing with correction</div>
            <div>[2016-07-22 05:31:52.482436] E
              [socket.c:771:__socket_server_bind] 0-tcp.patchy-server:
              binding to  failed: Address already in use</div>
            <div>[2016-07-22 05:31:52.482447] E
              [socket.c:774:__socket_server_bind] 0-tcp.patchy-server:
              Port is already in use</div>
            <div>[2016-07-22 05:31:52.482459] W
              [rpcsvc.c:1630:rpcsvc_create_listener] 0-rpc-service:
              listening on transport failed</div>
            <div>[2016-07-22 05:31:52.482469] W [MSGID: 115045]
              [server.c:1061:init] 0-patchy-server: creation of listener
              failed</div>
            <div>[2016-07-22 05:31:52.482481] E [MSGID: 101019]
              [xlator.c:433:xlator_init] 0-patchy-server: Initialization
              of volume 'patchy-server' failed, review your volfile
              again</div>
            <div>[2016-07-22 05:31:52.482491] E [MSGID: 101066]
              [graph.c:324:glusterfs_graph_init] 0-patchy-server:
              initializing translator failed</div>
            <div>[2016-07-22 05:31:52.482499] E [MSGID: 101176]
              [graph.c:670:glusterfs_graph_activate] 0-graph: init
              failed</div>
          </div>
        </div>
        <div class="gmail_extra"><br>
          <div class="gmail_quote">On Mon, Jul 25, 2016 at 12:00 PM,
            Ashish Pandey <span dir="ltr">&lt;<a moz-do-not-send="true"
                href="mailto:aspandey@redhat.com" target="_blank">aspandey@redhat.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>
                <div style="font-family:times new roman,new
                  york,times,serif;font-size:12pt;color:#000000">
                  <div>Hi,<br>
                  </div>
                  <div><br>
                  </div>
                  <div>Following test has failed 3 times in last two
                    days -</div>
                  <div><br>
                  </div>
                  <div>./tests/bugs/snapshot/bug-1316437.t <br>
                  </div>
                  <div><a moz-do-not-send="true"
href="https://build.gluster.org/job/rackspace-regression-2GB-triggered/22445/consoleFull"
                      target="_blank">https://build.gluster.org/job/rackspace-regression-2GB-triggered/22445/consoleFull</a></div>
                  <div><a moz-do-not-send="true"
href="https://build.gluster.org/job/rackspace-regression-2GB-triggered/22445/consoleFull"
                      target="_blank">https://build.gluster.org/job/rackspace-regression-2GB-triggered/22445/consoleFull</a></div>
                  <div><a moz-do-not-send="true"
href="https://build.gluster.org/job/rackspace-regression-2GB-triggered/22470/consoleFull"
                      target="_blank">https://build.gluster.org/job/rackspace-regression-2GB-triggered/22470/consoleFull</a></div>
                  <div><br>
                  </div>
                  <div>Please take a look at it and check if it spurious
                    failure or not.<span class="HOEnZb"><font
                        color="#888888"><br>
                      </font></span></div>
                  <span class="HOEnZb"><font color="#888888">
                      <div><br>
                      </div>
                      <div>Ashish<br>
                      </div>
                    </font></span></div>
              </div>
              <br>
              _______________________________________________<br>
              Gluster-devel mailing list<br>
              <a moz-do-not-send="true"
                href="mailto:Gluster-devel@gluster.org">Gluster-devel@gluster.org</a><br>
              <a moz-do-not-send="true"
                href="http://www.gluster.org/mailman/listinfo/gluster-devel"
                rel="noreferrer" target="_blank">http://www.gluster.org/mailman/listinfo/gluster-devel</a><br>
            </blockquote>
          </div>
          <br>
        </div>
      </blockquote>
      <br>
    </blockquote>
    <br>
  </body>
</html>