Bug 1335114

Summary: refresh-config failing with latest 2.3.1-6 nfs-ganesha build.
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Shashank Raj <sraj>
Component: gluster-nfsAssignee: Jiffin <jthottan>
Status: CLOSED ERRATA QA Contact: Shashank Raj <sraj>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: rhgs-3.1CC: akhakhar, asrivast, jthottan, kkeithle, mchangir, ndevos, nlevinki, pasik, rcyriac, rhinduja, rhs-bugs, sashinde, skoduri, smohan, storage-qa-internal
Target Milestone: ---Keywords: Regression, ZStream
Target Release: RHGS 3.1.3   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: glusterfs-3.7.9-5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-23 05:22:34 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: 1336732, 1336760    
Bug Blocks: 1311817    

Description Shashank Raj 2016-05-11 11:56:56 UTC
Description of problem:

refresh-config failing with latest 2.3.1-6 nfs-ganesha build.

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

nfs-ganesha-2.3.1-6

How reproducible:

Always

Steps to Reproduce:
1.Create a 4 node cluster and configure ganesha on it
2.Create and export a volume through ganesha.
3.Perform some changes in volume export file.
4.Do a refresh config and observe that refresh config fails with below errors:

[root@dhcp42-20 ~]# /usr/libexec/ganesha/ganesha-ha.sh --refresh-config /etc/ganesha/ newvolume
awk: fatal: Unmatched [ or [^: /[=,/
/usr/libexec/ganesha/ganesha-ha.sh: line 262: ] '{print/etc/ganesha}' | tr -d '[[:space:]]': No such file or directory
Error: refresh-config failed on dhcp42-196.

Actual results:

refresh-config failing with latest 2.3.1-6 nfs-ganesha build.

Expected results:

refresh-config should pass without any issues.

Additional info:

Comment 2 Jiffin 2016-05-13 06:54:27 UTC
The patch ahs posted upstream for review

http://review.gluster.org/#/c/14325/2

Comment 6 Shashank Raj 2016-05-20 11:48:04 UTC
Verified this bug with latest glusterfs and ganesha builds on RHEL 6 and RHEL 7 platforms and it works as expected:

RHEL7:

[root@dhcp42-20 exports]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.2 (Maipo)

[root@dhcp42-20 exports]# rpm -qa|grep ganesha
nfs-ganesha-gluster-2.3.1-7.el7rhgs.x86_64
nfs-ganesha-debuginfo-2.3.1-7.el7rhgs.x86_64
nfs-ganesha-2.3.1-7.el7rhgs.x86_64
glusterfs-ganesha-3.7.9-5.el7rhgs.x86_64

[root@dhcp42-20 exports]# rpm -qa|grep glusterfs
glusterfs-server-3.7.9-5.el7rhgs.x86_64
glusterfs-api-3.7.9-5.el7rhgs.x86_64
glusterfs-libs-3.7.9-5.el7rhgs.x86_64
glusterfs-fuse-3.7.9-5.el7rhgs.x86_64
glusterfs-geo-replication-3.7.9-5.el7rhgs.x86_64
glusterfs-3.7.9-5.el7rhgs.x86_64
glusterfs-cli-3.7.9-5.el7rhgs.x86_64
glusterfs-rdma-3.7.9-5.el7rhgs.x86_64
glusterfs-client-xlators-3.7.9-5.el7rhgs.x86_64
glusterfs-ganesha-3.7.9-5.el7rhgs.x86_64

[root@dhcp42-20 exports]# /usr/libexec/ganesha/ganesha-ha.sh --refresh-config /etc/ganesha/ newvolume
Refresh-config completed on dhcp42-196.
Refresh-config completed on dhcp42-239.
Refresh-config completed on dhcp43-175.
Success: refresh-config completed.

Note: This test on RHEL 7 is performed with workaround given for selinux issue (https://bugzilla.redhat.com/show_bug.cgi?id=1336732) and using the local selinux policy, refresh-config works fine and no failures are seen.



RHEL6:

[root@dhcp43-33 ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 6.8 (Santiago)

[root@dhcp43-33 ~]# rpm -qa|grep ganesha
nfs-ganesha-2.3.1-7.el6rhs.x86_64
glusterfs-ganesha-3.7.9-5.el6rhs.x86_64
nfs-ganesha-gluster-2.3.1-7.el6rhs.x86_64

[root@dhcp43-33 ~]# rpm -qa|grep glusterfs
glusterfs-3.7.9-5.el6rhs.x86_64
glusterfs-cli-3.7.9-5.el6rhs.x86_64
glusterfs-libs-3.7.9-5.el6rhs.x86_64
glusterfs-client-xlators-3.7.9-5.el6rhs.x86_64
glusterfs-api-3.7.9-5.el6rhs.x86_64
glusterfs-server-3.7.9-5.el6rhs.x86_64
glusterfs-ganesha-3.7.9-5.el6rhs.x86_64
glusterfs-fuse-3.7.9-5.el6rhs.x86_64
glusterfs-geo-replication-3.7.9-5.el6rhs.x86_64

[root@dhcp43-33 exports]# /usr/libexec/ganesha/ganesha-ha.sh --refresh-config /etc/ganesha/ testvolume
Refresh-config completed on dhcp42-11.
Refresh-config completed on dhcp42-78.
Refresh-config completed on dhcp43-40.
Success: refresh-config completed.

based on above observation, marking this bug as Verified.

Comment 7 Kaleb KEITHLEY 2016-06-06 11:18:02 UTC
*** Bug 1301450 has been marked as a duplicate of this bug. ***

Comment 9 errata-xmlrpc 2016-06-23 05:22:34 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-2016:1240