Description of problem: ganesha volume export fails in rhel7.1 with permissive mode Version-Release number of selected component (if applicable): selinux-policy-3.13.1-30.el7.noarch glusterfs-3.7.1-7.el7rhgs.x86_64 nfs-ganesha-2.2.0-3.el7rhgs.x86_64 How reproducible: Always Steps to Reproduce: 1. set selinux to permisive mode 2. setup the ganesha cluster 3. now set ganesha.enable on, on the volume, it fails [root@dhcp37-133 ~]# gluster v set nfsvol ganesha.enable on volume set: failed: Failed to create NFS-Ganesha export config file. Actual results: volume does not get exported Expected results: Volume must get exported Additional info: Did not see any avc errors for this operation, running this in permissive mode since we are waiting for avc fixes for rhel7.1
A file that is used to identify the ganesha config file, "/etc/sysconfig/ganesha" is written differently on RHEL 7.1. This leads to exports failing all the time on RHEL 7.1. One of the scripts that ceates the export config file needs modification.
(In reply to Meghana from comment #3) > A file that is used to identify the ganesha config file, > "/etc/sysconfig/ganesha" is written > differently on RHEL 7.1. This leads to exports failing all the time on RHEL > 7.1. > One of the scripts that ceates the export config file needs modification. Could you explain a little more details? /etc/sysconfig/ganesha is only(?) used for the parameters for the ganesha.nfsd process. This file is in a simple KEY=VALUE format and is part of the nfs-ganesha RPM. What causes the problem and would need changing? Note that upstream NFS-Ganesha did make some relatively recent changes to this file, not sure if they are in the V2.2-stable branch.
We grep for CONFFILE parameter in "/etc/syconfig/ganesha" file to find out the path of the ganesha config file. In RHEL 7.1, this parameter does not exist in the file and we can't find out the ganesha config file. Export fails invariably due to this. Changing this pattern to a more generic one and default it to "/etc/ganesha/ganesha.conf"
This patch is up for review in upstream, http://review.gluster.org/#/c/11594/
Able to export ganesha volume on rhel7.1 with the workaround mentioned in: 1. comment 4 of bug -> https://bugzilla.redhat.com/show_bug.cgi?id=1242487#c4 2. comment 2 of bug -> https://bugzilla.redhat.com/show_bug.cgi?id=1241400#c2
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-2015-1495.html