Bug 950299 - [ORIGIN]oo-accept-broker fails to detect mongodb service if system language is different than english
Summary: [ORIGIN]oo-accept-broker fails to detect mongodb service if system language i...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Pod
Version: 2.x
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Krishna Raman
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-10 03:09 UTC by Adrian Moya
Modified: 2015-05-15 02:18 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
: 1018569 (view as bug list)
Environment:
Last Closed: 2014-01-30 00:46:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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


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