Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1143886

Summary: when brick is down, rdma fuse mounting hangs for volumes with tcp,rdma as transport.
Product: [Community] GlusterFS Reporter: Mohammed Rafi KC <rkavunga>
Component: rdmaAssignee: bugs <bugs>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: mainlineCC: bugs
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: glusterfs-3.7.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-05-15 17:08:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mohammed Rafi KC 2014-09-18 08:09:15 UTC
Description of problem:

When we try to mount a tcp,rdma volume as rdma transport using fuse protocol, then mount will hang if the brick is down. 

Version-Release number of selected component (if applicable):

glusterfs 3.7dev

How reproducible:

Always.

Steps to Reproduce:
1.Create a tcp,rdma transport type volume.

2.start the volume.

3.kill the brick process.

4.Do a fuse mount with rdma as transport.

Actual results:

Mount will hang.

Expected results:

Mount should fails showing an error.

Additional info:

When we kill a process, signal will be received in glusterfsd process and it will call pmap_signout with port listening on tcp. In case of the tcp,rdma there will be two ports, and port which is listening for rdma will not called for sign out. So the mount process will try to connect to a port which is not open.

Comment 1 Anand Avati 2014-09-18 08:33:35 UTC
REVIEW: http://review.gluster.org/8762 (rdma:rdma fuse mount hangs for tcp,rdma volumes if brick is down.) posted (#1) for review on master by mohammed rafi  kc (rkavunga)

Comment 2 Anand Avati 2014-09-18 12:12:25 UTC
REVIEW: http://review.gluster.org/8762 (rdma:rdma fuse mount hangs for tcp,rdma volumes if brick is down.) posted (#2) for review on master by mohammed rafi  kc (rkavunga)

Comment 3 Anand Avati 2014-09-18 12:37:54 UTC
REVIEW: http://review.gluster.org/8762 (rdma:rdma fuse mount hangs for tcp,rdma volumes if brick is down.) posted (#3) for review on master by mohammed rafi  kc (rkavunga)

Comment 4 Anand Avati 2014-11-14 12:34:05 UTC
REVIEW: http://review.gluster.org/8762 (rdma:rdma fuse mount hangs for tcp,rdma volumes if brick is down.) posted (#8) for review on master by mohammed rafi  kc (rkavunga)

Comment 5 Anand Avati 2014-11-14 17:38:14 UTC
REVIEW: http://review.gluster.org/8762 (rdma:rdma fuse mount hangs for tcp,rdma volumes if brick is down.) posted (#9) for review on master by mohammed rafi  kc (rkavunga)

Comment 6 Anand Avati 2014-11-17 05:59:04 UTC
REVIEW: http://review.gluster.org/8762 (rdma:rdma fuse mount hangs for tcp,rdma volumes if brick is down.) posted (#10) for review on master by mohammed rafi  kc (rkavunga)

Comment 7 Anand Avati 2014-11-17 06:45:35 UTC
REVIEW: http://review.gluster.org/8762 (rdma:rdma fuse mount hangs for tcp,rdma volumes if brick is down.) posted (#11) for review on master by mohammed rafi  kc (rkavunga)

Comment 8 Anand Avati 2014-11-17 08:25:26 UTC
REVIEW: http://review.gluster.org/8762 (rdma:rdma fuse mount hangs for tcp,rdma volumes if brick is down.) posted (#12) for review on master by mohammed rafi  kc (rkavunga)

Comment 9 Anand Avati 2014-11-17 08:27:20 UTC
REVIEW: http://review.gluster.org/8762 (rdma:rdma fuse mount hangs for tcp,rdma volumes if brick is down.) posted (#13) for review on master by mohammed rafi  kc (rkavunga)

Comment 10 Anand Avati 2014-11-17 10:20:31 UTC
REVIEW: http://review.gluster.org/8762 (rdma:rdma fuse mount hangs for tcp,rdma volumes if brick is down.) posted (#14) for review on master by mohammed rafi  kc (rkavunga)

Comment 11 Anand Avati 2014-11-17 18:26:14 UTC
REVIEW: http://review.gluster.org/8762 (rdma:rdma fuse mount hangs for tcp,rdma volumes if brick is down.) posted (#15) for review on master by mohammed rafi  kc (rkavunga)

Comment 12 Anand Avati 2014-11-17 19:17:54 UTC
REVIEW: http://review.gluster.org/8762 (rdma:rdma fuse mount hangs for tcp,rdma volumes if brick is down.) posted (#16) for review on master by mohammed rafi  kc (rkavunga)

Comment 13 Anand Avati 2014-11-18 07:31:00 UTC
COMMIT: http://review.gluster.org/8762 committed in master by Raghavendra G (rgowdapp) 
------
commit 43800dedb5f0b4644de913c3fd50c6b409ec7210
Author: Mohammed Rafi KC <rkavunga>
Date:   Thu Sep 18 04:21:04 2014 -0400

    rdma:rdma fuse mount hangs for tcp,rdma volumes if brick is down.
    
    When we try to mount a tcp,rdma volume as rdma
    transport using FUSE protocol, then mount will
    hang if the brick is down. When we kill a process,
    signal will be received in glusterfsd process and
    it will call pmap_signout with port listening on tcp only.
    In case of the tcp,rdma there will be two ports,
    and port which is listening for rdma will not
    called for sign out.
    So the mount process will try to connect to a port
    which is not open and it will keep trying to connect.
    This patch will call pmap_signout for rdma port also,
    So when mount tries to get the brick port,it will fail.
    
    Change-Id: I23676f65f96eb90b69b76478f7a21412a6aba70f
    BUG: 1143886
    Signed-off-by: Mohammed Rafi KC <rkavunga>
    Reviewed-on: http://review.gluster.org/8762
    Tested-by: Gluster Build System <jenkins.com>
    Reviewed-by: Krishnan Parthasarathi <kparthas>
    Reviewed-by: Raghavendra G <rgowdapp>
    Tested-by: Raghavendra G <rgowdapp>

Comment 14 Niels de Vos 2015-05-15 17:08:59 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.7.0, please open a new bug report.

glusterfs-3.7.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] http://thread.gmane.org/gmane.comp.file-systems.gluster.devel/10939
[2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user