Bug 1018569

Summary: [RFE]oo-accept-broker fails to detect package installation if system language is different than english
Product: OKD Reporter: Zamir SUN <sztsian>
Component: PodAssignee: Abhishek Gupta <abhgupta>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: low Docs Contact:
Priority: unspecified    
Version: 2.xCC: adrianmoya, jhou, xtian
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 950299 Environment:
Last Closed: 2014-01-30 00:46:55 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:

Description Zamir SUN 2013-10-13 12:24:11 UTC
+++ This bug was initially created as a clone of Bug #950299 +++

Description of problem: Running oo-accept-broker won't return package not installed in French system.

How reproducible: Always


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

Expected results:
package mongodb is not installed

Additional info:

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

if echo $PKGSTATUS | grep "not installed" >/dev/null
However, in Francais, it is "le paquet $PKGNAME n'est pas installé"
the check fails.

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

Comment 2 Abhishek Gupta 2013-11-13 18:18:46 UTC
The pull request above is merged. This should now be fixed.

Comment 3 Jianwei Hou 2014-01-03 06:41:00 UTC
Verified on oso-3 on Feodra 19(setup with oo-install)

1. Edit /usr/sbin/oo-accept-broker on line 637, added a line of additional package to check which is not on the system:
eg: check_packages abc
2. export LC_ALL=fr_FR.utf_8
3. oo-accept-broker -v

Result:
The program is able to detect the package which is not installed.
FAIL: package abc is not installed