Bug 950299

Summary: [ORIGIN]oo-accept-broker fails to detect mongodb service if system language is different than english
Product: OKD Reporter: Adrian Moya <adrianmoya>
Component: PodAssignee: Krishna Raman <kraman>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.xCC: lxia, mfisher, sztsian, xtian
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
: 1018569 (view as bug list) Environment:
Last Closed: 2014-01-30 00:46:20 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:

Description Adrian Moya 2013-04-10 03:09:58 UTC
Description of problem: Running oo-accept-broker returns FAIL: LOCAL: mongod service not enabled, but service is active.

How reproducible: Always


Steps to Reproduce:
1. Setup system locale info (In my case Colombia)
2. Install openshift origin from puppet scripts
3. Run oo-accept-broker
  
Actual results:
FAIL: LOCAL: mongod service not enabled

Expected results:


Additional info:

The check on the script assumes english language (checks for on on line 507):

chkconfig --list 2>/dev/null | grep '^mongod.*2:on.*3:on.*4:on.*5:on'

but as system returns 
mongod         	0:desactivado	1:desactivado	2:activo	3:activo	4:activo	5:activo	6:desactivado

the check fails.

Comment 1 Zamir SUN 2013-10-14 04:25:58 UTC
pull request https://github.com/openshift/origin-server/pull/3872

Comment 3 Liang Xia 2014-01-03 08:22:49 UTC
Verified on OpenShift Origin-3 on Fedora 19(installed with oo-install), oo-accept-broker works fine even locale is not English language.

Steps used as below:
1. Install OpenShift Origin via oo-install.
2. Run oo-accept-broker.
$ oo-accept-broker
NOTICE: SELinux is Enforcing
PASS
3. Change LANG to zh_CN.UTF-8
$ export LANG=zh_CN.UTF-8
4. Run chkconfig to check that language is Chinese.
$ chkconfig
activemq 0:关 1:关 2:开 3:开 4:开 5:开 6:关
5. Run oo-accept-broker again.
$ oo-accept-broker
NOTICE: SELinux is Enforcing
PASS