Bug 1092158

Summary: The daemon options suggested in /etc/sysconfig/glusterd are not being read by the init script
Product: [Community] GlusterFS Reporter: mparker1001
Component: buildAssignee: Jose Castillo <jcastillo>
Status: CLOSED EOL QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.5.0CC: bugs, jcastillo, lmohanty
Target Milestone: ---Keywords: EasyFix
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-17 16:23:41 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: 1073111    
Bug Blocks:    

Description mparker1001 2014-04-28 20:57:44 UTC
Description of problem:

The daemon options suggested in /etc/sysconfig/glusterd are not being read by the init script

Steps to Reproduce:
1. Install glusterfs-server from glusterfs-epel repo
2. Uncomment GLUSTERD_LOGLEVEL and GLUSTERD_LOGFILE options. Set GLUSTERD_LOGFILE="/var/log/gluster/gluster.log" and GLUSTERD_LOGLEVEL="DEBUG"
3. Start glusterd

Actual results:

Running a "ps faux" shows that the extra daemon options are not being read and implemented by the init script. The running process appears as follows:
/usr/sbin/glusterd --pid-file=/var/run/glusterd.pid

Expected results:
The running process should look something like the following:
/usr/sbin/glusterd --pid-file=/var/run/glusterd.pid --log-level DEBUG --log-file /var/log/gluster/gluster.log

Additional info:

There seems to be two ways to go about fixing this:
1) In /etc/sysconfig/glusterd, change GLUSTERD_LOGFILE to LOG_FILE and GLUSTERD_LOGLEVEL to LOG_LEVEL

- or -

2) In /etc/init.d/glusterd change LOG_LEVEL to GLUSTERD_LOGLEVEL and change LOG_FILE to GLUSTERD_LOGFILE

Comment 1 Niels de Vos 2014-06-02 11:38:30 UTC
We'll need to merge the changes from the Fedora init-scripts back to the community gluster repository.

* http://pkgs.fedoraproject.org/cgit/glusterfs.git/tree/glusterd.init?h=el6
* http://pkgs.fedoraproject.org/cgit/glusterfs.git/tree/glusterd.sysconfig?h=el6

This is related to bug 1073111, which should be used to submit patches.

Comment 2 Niels de Vos 2016-06-17 16:23:41 UTC
This bug is getting closed because the 3.5 is marked End-Of-Life. There will be no further updates to this version. Please open a new bug against a version that still receives bugfixes if you are still facing this issue in a more current release.