Bug 1135938 - SCL mongodb commands aren't in PATH for gears using mongodb-2.4 cart
Summary: SCL mongodb commands aren't in PATH for gears using mongodb-2.4 cart
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: John W. Lamb
QA Contact: libra bugs
URL:
Whiteboard:
Depends On: 1135062
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-01 09:03 UTC by Johnny Liu
Modified: 2015-05-14 23:37 UTC (History)
7 users (show)

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.
Clone Of: 1135062
Environment:
Last Closed: 2014-10-10 00:51:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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


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