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:
The patch ahs posted upstream for review http://review.gluster.org/#/c/14325/2
https://code.engineering.redhat.com/gerrit/#/c/74360
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.
*** Bug 1301450 has been marked as a duplicate of this bug. ***
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