Bug 1135938

Summary: SCL mongodb commands aren't in PATH for gears using mongodb-2.4 cart
Product: OpenShift Online Reporter: Johnny Liu <jialiu>
Component: ContainersAssignee: John W. Lamb <jolamb>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: anli, jokerman, jolamb, libra-bugs, libra-onpremise-devel, mmccomas, zzhao
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: MongoDB cart did not properly include the SCL-provided PATH and LD_LIBRARY_PATH entries in the cart environment, and did not publish the appropriate PATH elements for scaled carts Consequence: The appropriate PATH and LD_LIBRARY_PATH for the SCL-provided mongo support binaries (e.g. mongoimport) weren't being set. Fix: The mongodb cart has been updated to include the appropriate PATH and LD_LIBRARY_PATH entries for non-scaled carts, and to provide a new connection hook that publishes OPENSHIFT_MONGODB_LD_LIBRARY_PATH_ELEMENT and OPENSHIFT_MONGODB_PATH_ELEMENT, included by scaled carts in the primary cart's PATH and LD_LIBRARY_PATH environment variable. Result: The correct mongo binaries are now available from the command line for scaled and unscaled apps.
Story Points: ---
Clone Of: 1135062 Environment:
Last Closed: 2014-10-10 00:51:07 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:
Bug Depends On: 1135062    
Bug Blocks:    

Comment 1 Johnny Liu 2014-09-01 09:03:52 UTC
Reproduce this bug on stg.openshift.redhat.com

Comment 2 John W. Lamb 2014-09-02 13:44:58 UTC
Addressed with PR https://github.com/openshift/origin-server/pull/5441

Comment 3 John W. Lamb 2014-09-02 19:19:51 UTC
Fix should be in 2.0.50

Comment 4 zhaozhanqi 2014-09-03 02:45:03 UTC
Verified this bug on devnev_5135


> mongoimport --version
mongoimport version 2.4.9
[mongoapp1-zqd.dev.rhcloud.com 5406b7dacfb556d943000105]\> type mongoimport
mongoimport is hashed (/opt/rh/mongodb24/root/usr/bin/mongoimport)
[mongoapp1-zqd.dev.rhcloud.com 5406b7dacfb556d943000105]\> scl enable mongodb24 "mongoimport --version"
mongoimport version 2.4.9