Bug 1146492

Summary: mount hangs for rdma type transport if the network is busy.
Product: [Community] GlusterFS Reporter: Mohammed Rafi KC <rkavunga>
Component: rdmaAssignee: Mohammed Rafi KC <rkavunga>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: mainlineCC: bugs, hchiramm
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-05-11 11:07:09 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-25 10:33:10 UTC
Description of problem:

 rdma transport type mount will hang if there is a delay in network to receive the request. the dump rpc request was rejected by server, so the client can't proceed.

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

3.6

How reproducible:

Some times.

Steps to Reproduce:
1. create rdma type volume

2. Start the volume 

3.issue a mount command directly from cmd using glusterfs binary with proper argument.
 
Actual results:
 
 mount will hang.

Expected results:

Mount should successes. 

Additional info:

Comment 1 Anand Avati 2014-09-25 10:37:14 UTC
REVIEW: http://review.gluster.org/8850 (rdma: mount hangs for rdma type transport.) posted (#1) for review on master by mohammed rafi  kc (rkavunga)

Comment 2 Anand Avati 2014-09-25 12:09:57 UTC
REVIEW: http://review.gluster.org/8850 (rdma: mount hangs for rdma type transport.) posted (#2) for review on master by mohammed rafi  kc (rkavunga)

Comment 3 Anand Avati 2014-09-25 14:09:52 UTC
REVIEW: http://review.gluster.org/8850 (rdma: mount hangs for rdma type transport.) posted (#3) for review on master by mohammed rafi  kc (rkavunga)

Comment 4 Anand Avati 2014-09-25 14:19:35 UTC
REVIEW: http://review.gluster.org/8850 (rdma: mount hangs for rdma type transport.) posted (#4) for review on master by mohammed rafi  kc (rkavunga)

Comment 5 Anand Avati 2014-09-26 07:49:33 UTC
REVIEW: http://review.gluster.org/8850 (rdma: mount hangs for rdma type transport.) posted (#5) for review on master by Humble Devassy Chirammal (humble.devassy)

Comment 6 Anand Avati 2014-10-08 08:44:45 UTC
COMMIT: http://review.gluster.org/8850 committed in master by Raghavendra G (rgowdapp) 
------
commit 678e91718c41b29046df7b9a019e4e9f7550efcb
Author: Mohammed Rafi KC <rkavunga>
Date:   Thu Sep 25 15:36:30 2014 +0530

    rdma: mount hangs for rdma type transport.
    
    rdma transport type mount will hang if there is a delay
    in network to receive,we will set transport as connected
    if we get an event type RDMA_CM_EVENT_ESTABLISHED,
    we cannot assure whether client or server will get the
    event first, the only condition is that the side which
    sends the first request should wait for the event.
    If client gets the event first, then it sends DUMP request,
    in server side the request will reach, but it will reject
    the rpc request since it didn't get the RDMA_CM_EVENT_ESTABLISHED.
    So in server we will set the connected flag as soon
    as rdma_accept is called.
    
    Change-Id: Iac5845e3592666daa575c727822889779b5bd203
    BUG: 1146492
    Signed-off-by: Mohammed Rafi KC <rkavunga>
    Reviewed-on: http://review.gluster.org/8850
    Tested-by: Gluster Build System <jenkins.com>
    Reviewed-by: Raghavendra G <rgowdapp>
    Tested-by: Raghavendra G <rgowdapp>

Comment 7 Mohammed Rafi KC 2015-05-11 11:07:09 UTC
fixed from glusterfs-3.6.2 onwards.