Bug 1422153

Summary: [NFS-Ganesha]Failed to unexport volume when ganesha cluster is in failover state.
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Arthy Loganathan <aloganat>
Component: common-haAssignee: Jiffin <jthottan>
Status: CLOSED ERRATA QA Contact: Manisha Saini <msaini>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rhgs-3.2CC: amukherj, asrivast, msaini, rhinduja, rhs-bugs, skoduri, storage-qa-internal
Target Milestone: ---   
Target Release: RHGS 3.3.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: glusterfs-3.8.4-25 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-09-21 04:30:55 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:    
Bug Blocks: 1417147    

Description Arthy Loganathan 2017-02-14 15:35:35 UTC
Description of problem:
Failed to unexport volume when ganesha cluster is in failover state.

Error message in console:
-------------------------
volume set: failed: Staging failed on dhcp37-62.lab.eng.blr.redhat.com. Error: Dynamic export addition/deletion failed. Please see log file for details

Version-Release number of selected component (if applicable):
nfs-ganesha-gluster-2.4.1-7.el7rhgs.x86_64
nfs-ganesha-2.4.1-7.el7rhgs.x86_64
glusterfs-ganesha-3.8.4-13.el7rhgs.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Create 4 node ganesha cluster.
2. Create volume and export the volume.
3. Bring down ganesha service in one of the node.(service nfs-ganesha stop)
4. Ensure ganesha cluster is in failover state.
5. Unexport the volume from other node.

Actual results:
Failed to unexport volume when ganesha cluster is in failover state.

Expected results:
Unexport should succeed.

Additional info:

No log messages are seen in ganesha.log related to this failure.

[root@dhcp37-145 ~]# showmount -e
Export list for dhcp37-145.lab.eng.blr.redhat.com:
/nfsvol1 (everyone)
[root@dhcp37-145 ~]# gluster volume set nfsvol1 ganesha.enable off
volume set: failed: Staging failed on dhcp37-62.lab.eng.blr.redhat.com. Error: Dynamic export addition/deletion failed. Please see log file for details
[root@dhcp37-145 ~]# showmount -e
Export list for dhcp37-145.lab.eng.blr.redhat.com:
[root@dhcp37-145 ~]#


Similar failure is seen in the following scenario as well.

1. Shutdown one of the node. Ganesha cluster will in failover state.
2. Export the volume.
3. Bring the node up.
4. Unexport the volume.

Comment 3 Jiffin 2017-04-19 11:02:16 UTC
Patch posted upstream for review https://review.gluster.org/#/c/17081/

Comment 7 Manisha Saini 2017-06-29 13:52:17 UTC
Verified this bug on 

# rpm -qa | grep ganesha
nfs-ganesha-gluster-2.4.4-10.el7rhgs.x86_64
nfs-ganesha-debuginfo-2.4.4-10.el7rhgs.x86_64
glusterfs-ganesha-3.8.4-31.el7rhgs.x86_64
nfs-ganesha-2.4.4-10.el7rhgs.x86_64

Volume is un-exported successfully when Ganesha cluster is in fail over state.
Hence moving this bug to verified state.

Comment 9 errata-xmlrpc 2017-09-21 04:30:55 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:2774

Comment 10 errata-xmlrpc 2017-09-21 04:56:40 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:2774