Red Hat Bugzilla – Bug 462824
sosreport chkconfig test in cluster plugin fails on systems with non-US locale
Last modified: 2009-11-24 18:41:46 EST
+++ This bug was initially created as a clone of Bug #462823 +++
This also applies to RHEL 5, although sos package version is slightly different:
Description of problem:
Creating a sosreport on systems configured to a non-US locate, the cluster plugin fails during service/chkconfig tests.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. set system locale to non-US (below output is taken from a german locale)
2. execute sosreport
One or more plugins have detected a problem in your configuration.
Please review the following messages:
* service cman is not started in default runlevel
* service ccsd is not started in default runlevel
* service rgmanager is not started in default runlevel
* service fenced is not started in default runlevel
Are you sure you would like to continue (y/n) ?
no warning messages, since services are running and active
Example output of chkconfig --list ccsd:
ccsd 0:Aus 1:Aus 2:Ein 3:Ein 4:Ein 5:Ein 6:Aus
And the service is running:
root 4385 0.0 0.0 21860 1292 ? Ssl Sep01 1:27 ccsd
The python script is checking for the value "On":
def runlevelByService(self, name):
ret = 
for tabs in commands.getoutput("/sbin/chkconfig --list %s" % name).split():
(runlevel, onoff) = tabs.split(":", 1)
if onoff == "on":
IMO the following change would fix the problem:
- for tabs in commands.getoutput("/sbin/chkconfig --list %s" % name).split():
+ for tabs in commands.getoutput("LC_ALL=C /sbin/chkconfig --list %s" % name).split():
Release note added. If any revisions are required, please set the
"requires_release_notes" flag to "?" and edit the "Release Notes" field accordingly.
All revisions will be proofread by the Engineering Content Services team.
The sos cluster plugin did not account for situations where the system locale may be set to something other than US English. On a system with a different locale, the plugin could not start chkconfig and therefore did not work. The cluster plugin now starts chkconfig with LC_ALL=C set, and works as intended.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.