Bug 1418541

Summary: [Ganesha+SSL] : Bonnie++ hangs during rewrites.
Product: [Community] GlusterFS Reporter: Mohit Agrawal <moagrawa>
Component: coreAssignee: Mohit Agrawal <moagrawa>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: medium    
Version: 3.10CC: amukherj, asoman, bturner, bugs, dang, ffilz, jdarcy, jthottan, kaushal, mbenjamin, moagrawa, rcyriac, rgowdapp, rhinduja, rhs-bugs, rjoseph, rkavunga, rtalur, skoduri, srangana, storage-qa-internal
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: glusterfs-3.10.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1408576 Environment:
Last Closed: 2017-03-06 17:44:58 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:
Bug Depends On: 1408576    
Bug Blocks: 1418213, 1418539    

Comment 1 Worker Ant 2017-02-02 04:13:31 UTC
REVIEW: https://review.gluster.org/16513 (rpc/socket.c : Bonnie++ hangs during rewrites in ganesha + SSL) posted (#1) for review on release-3.10 by MOHIT AGRAWAL (moagrawa)

Comment 2 Worker Ant 2017-02-02 17:33:49 UTC
COMMIT: https://review.gluster.org/16513 committed in release-3.10 by Shyamsundar Ranganathan (srangana) 
------
commit db713127b7d2920ce98999143a502b6f554e9cff
Author: Mohit Agrawal <moagrawa>
Date:   Wed Feb 1 15:17:51 2017 +0530

    rpc/socket.c : Bonnie++ hangs during rewrites in ganesha + SSL
    
    Problem: Bonnie++ rewrite operation hangs in ganesha + SSL environment
    
    Solution: Bonnie++ hangs during execution of rewrite operation in
              ganesha + SSL environment.It was hanged due to blocking on poll
              call in ssl_do because no POLLOUT event was getting on socket.
              Socket is not getting POLLOUT event because all other threads
              are waiting to get lock and lock is not released ssl_do
              because it is not getting any event on poll.To correct it
              update the condition in ssl_do as same in getting error
              SSL_ERROR_WANT_READ.
    
    Test:     To test the patch followed below procedure
              1) Setup 2X2 Ganesha + SSL environment.
              2) Run bonnie from 3 nfs client parallely
              3) After run "Rewwrite operation" by bonnie it is hanged.
              4) After apply the patch it is not hanged.
    
    > BUG: 1418213
    > Change-Id: I5985cbbc4cfdac5d287268d791e31c274abc3c8d
    > Signed-off-by: Mohit Agrawal <moagrawa>
    > Reviewed-on: https://review.gluster.org/16501
    > Smoke: Gluster Build System <jenkins.org>
    > NetBSD-regression: NetBSD Build System <jenkins.org>
    > Reviewed-by: Jeff Darcy <jdarcy>
    > CentOS-regression: Gluster Build System <jenkins.org>
    > Reviewed-by: Vijay Bellur <vbellur>
    > (cherry picked from commit d7077bca4b372a056d23416294e729637e9af94e)
    
    Change-Id: Id029c71382025477bb5ff31f28ec537e4fe58b03
    BUG: 1418541
    Reviewed-on: https://review.gluster.org/16513
    Tested-by: MOHIT AGRAWAL <moagrawa>
    NetBSD-regression: NetBSD Build System <jenkins.org>
    Smoke: Gluster Build System <jenkins.org>
    CentOS-regression: Gluster Build System <jenkins.org>
    Reviewed-by: Shyamsundar Ranganathan <srangana>

Comment 3 Shyamsundar 2017-03-06 17:44:58 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.10.0, please open a new bug report.

glusterfs-3.10.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://lists.gluster.org/pipermail/gluster-users/2017-February/030119.html
[2] https://www.gluster.org/pipermail/gluster-users/