Bug 1335114 - refresh-config failing with latest 2.3.1-6 nfs-ganesha build.
Summary: refresh-config failing with latest 2.3.1-6 nfs-ganesha build.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: gluster-nfs
Version: rhgs-3.1
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: ---
: RHGS 3.1.3
Assignee: Jiffin
QA Contact: Shashank Raj
URL:
Whiteboard:
: 1301450 (view as bug list)
Depends On: 1336732 1336760
Blocks: 1311817
TreeView+ depends on / blocked
 
Reported: 2016-05-11 11:56 UTC by Shashank Raj
Modified: 2017-03-17 10:19 UTC (History)
15 users (show)

Fixed In Version: glusterfs-3.7.9-5
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-23 05:22:34 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1240 0 normal SHIPPED_LIVE Red Hat Gluster Storage 3.1 Update 3 2016-06-23 08:51:28 UTC

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


Note You need to log in before you can comment on or make changes to this bug.