Bug 1318000

Summary: [GSS] - Glusterd not operational due to snapshot conflicting with nfs-ganesha export file in "/var/lib/glusterd/snaps"
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Mukul Malhotra <mmalhotr>
Component: nfs-ganeshaAssignee: Jiffin <jthottan>
Status: CLOSED ERRATA QA Contact: Manisha Saini <msaini>
Severity: high Docs Contact:
Priority: high    
Version: rhgs-3.1CC: amukherj, bkunal, jthottan, kkeithle, nlevinki, olim, rcyriac, rhinduja, rjoseph
Target Milestone: ---   
Target Release: RHGS 3.2.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: glusterfs-3.8.4-1 Doc Type: Bug Fix
Doc Text:
The glusterd service expected that all files in the /var/lib/glusterd/snaps/<snapshot name> directory were volumes. This meant that when a snapshot was taken of an NFS-Ganesha volume, glusterd interpreted the configuration file as an invalid volume and did not start. Glusterd now starts correctly in this situation.
Story Points: ---
Clone Of:
: 1318591 (view as bug list) Environment:
Last Closed: 2017-03-23 05:27:45 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: 1318591    
Bug Blocks: 1351515, 1351530, 1365265, 1365797    

Comment 3 Mukul Malhotra 2016-03-16 14:35:49 UTC
Hello,

Also, please improve the logging related to nfs-ganesha in the logs so that the same should be visible & would help in troubleshooting the issue.

Thanks
Mukul

Comment 4 Jiffin 2016-03-17 14:07:31 UTC
Patches posted in upstream for review

http://review.gluster.org/#/c/13763/
http://review.gluster.org/#/c/13764/

Comment 5 Kaleb KEITHLEY 2016-06-20 12:19:52 UTC
fix is upstream, needs to be merged downstream

Comment 7 Atin Mukherjee 2016-09-17 12:08:27 UTC
Upstream mainline : http://review.gluster.org/13764
Upstream 3.8 : http://review.gluster.org/15113

And the fix is available in rhgs-3.2.0 as part of rebase to GlusterFS 3.8.4.

Comment 10 Manisha Saini 2016-12-15 10:28:21 UTC
Verified this Bug on 

# rpm -qa | grep ganesha
nfs-ganesha-2.4.1-2.el7rhgs.x86_64
glusterfs-ganesha-3.8.4-8.el7rhgs.x86_64
nfs-ganesha-gluster-2.4.1-2.el7rhgs.x86_64


# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.3 (Maipo)

Steps:
1.Create NFS ganesha 4 node cluster setup.
2.Create a Volume and enable NFS-Ganesha on it.
3.Take snapshot of that volume.
4.Stop glusterd and restart glusterd services

Test Case2:
1.Create NFS ganesha 4 node cluster setup.
2.Create a Volume and enable NFS-Ganesha on it.
3.Take snapshot of that volume.
4.In /var/lib/glusterd/snaps/ remove export.snap1.conf file.
5.Restart glusterd services

As the issue is no more observed,Hence marking this Bug as verified.

Comment 13 errata-xmlrpc 2017-03-23 05:27:45 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://rhn.redhat.com/errata/RHSA-2017-0486.html