Bug 1479543

Summary: SELinux prevents "gluster nfs-ganesha enable" from succeeding
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: John Call <jcall>
Component: nfs-ganeshaAssignee: Kaleb KEITHLEY <kkeithle>
Status: CLOSED DUPLICATE QA Contact: Manisha Saini <msaini>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rhgs-3.2CC: mflanner, rhs-bugs, storage-qa-internal
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-08 23:28:42 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:
Attachments:
Description Flags
output from ausearch - please see 3 lines above/below Tue Aug 8 13:58:26 2017
none
gdeploy - backend-setup
none
gdeploy - volume create
none
gdeploy - ganesha setup none

Description John Call 2017-08-08 18:57:23 UTC
Description of problem:
Trying to enable nfs-ganesha via "gluster nfs-ganesha enable" fails when SELinux is enforcing.


Version-Release number of selected component (if applicable):
RHGS 3.2 / Glusterfs 3.8.4


How reproducible:
Basic install and used gdeploy to setup backend, create volume, and attempt to create ganesha cluster.


Actual results:
[root@gluster-1 ~]# gluster nfs-ganesha enable --mode=script
This will take a few minutes to complete. Please wait ..
nfs-ganesha: failed: Failed to set up HA config for NFS-Ganesha. Please check the log file for details

[root@gluster-1 ~]# setenforce 0

[root@gluster-1 ~]# gluster nfs-ganesha enable --mode=script
This will take a few minutes to complete. Please wait ..
nfs-ganesha : success



Additional info:
gdeploy files will be attached
output from ausearch command will be attached -- please see above (fail) and below (success) timestamp "time->Tue Aug  8 13:58:26 2017"

Comment 2 John Call 2017-08-08 18:58:51 UTC
Created attachment 1310810 [details]
output from ausearch - please see 3 lines above/below Tue Aug  8 13:58:26 2017

output from ausearch - please see 3 lines above/below Tue Aug  8 13:58:26 2017

Comment 3 John Call 2017-08-08 18:59:31 UTC
Created attachment 1310811 [details]
gdeploy - backend-setup

Comment 4 John Call 2017-08-08 19:00:00 UTC
Created attachment 1310812 [details]
gdeploy - volume create

Comment 5 John Call 2017-08-08 19:00:28 UTC
Created attachment 1310813 [details]
gdeploy - ganesha setup

Comment 6 John Call 2017-08-08 23:28:42 UTC

*** This bug has been marked as a duplicate of bug 1470146 ***