Bug 1092158 - The daemon options suggested in /etc/sysconfig/glusterd are not being read by the init script
Summary: The daemon options suggested in /etc/sysconfig/glusterd are not being read by...
Keywords:
Status: CLOSED EOL
Alias: None
Product: GlusterFS
Classification: Community
Component: build
Version: 3.5.0
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Jose Castillo
QA Contact:
URL:
Whiteboard:
Depends On: 1073111
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-28 20:57 UTC by mparker1001
Modified: 2016-06-17 16:23 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-17 16:23:41 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

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.


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