Bug 1135062
Summary: | SCL mongodb commands aren't in PATH for gears using mongodb-2.4 cart | |||
---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | John W. Lamb <jolamb> | |
Component: | Containers | Assignee: | John W. Lamb <jolamb> | |
Status: | CLOSED ERRATA | QA Contact: | libra bugs <libra-bugs> | |
Severity: | medium | Docs Contact: | ||
Priority: | high | |||
Version: | 2.1.0 | CC: | adellape, anli, bleanhar, jdetiber, jokerman, jolamb, libra-onpremise-devel, mmccomas | |
Target Milestone: | --- | |||
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | openshift-origin-cartridge-mongodb-1.19.3.4-1.el6op | Doc Type: | Bug Fix | |
Doc Text: |
The MongoDB cartridge did not properly include the PATH and LD_LIBRARY_PATH entries provided by Red Hat Software Collections (SCL) in the cartridge environment, and did not publish the appropriate PATH elements for scaled cartridges. This caused the appropriate PATH and LD_LIBRARY_PATH entries for the mongo support binaries provided by SCL, such as mongoimport, to not be set, and were therefore not available to gear action hooks. This bug fix updates the MongoDB cartridge to include the appropriate PATH and LD_LIBRARY_PATH entries for non-scaled cartridges. It also provides a new connection hook that publishes OPENSHIFT_MONGODB_LD_LIBRARY_PATH_ELEMENT and OPENSHIFT_MONGODB_PATH_ELEMENT, included by scaled cartridges in the primary cartridge's PATH and LD_LIBRARY_PATH environment variable. As a result, the correct mongo binaries are now available from the command line and gear action hooks for scaled and non-scaled applications. See https://access.redhat.com/articles/1179613 for instructions on applying this fix to existing gears.
|
Story Points: | --- | |
Clone Of: | ||||
: | 1135938 (view as bug list) | Environment: | ||
Last Closed: | 2014-09-11 20:06: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: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1135938 |
Description
John W. Lamb
2014-08-28 18:38:31 UTC
Verified and pass on puddle-2014-08-28.1 For the new create apps, mongoimport works. For old apps with mongodb-2.4, after reloaded cartridges and executed the mongodb connection-hooks, mongoimport works. I reloaded cartridge using oo-cartridge rather than oo-admin-upgrade. oo-admin-upgrade doesn't work since the mongodb cartridge version doesn't changed. Shall we update the cartridge version? (In reply to Anping Li from comment #6) > I reloaded cartridge using oo-cartridge rather than oo-admin-upgrade. > oo-admin-upgrade doesn't work since the mongodb cartridge version doesn't > changed. Shall we update the cartridge version? Good catch; will take care of that today Verified and pass on puddle-2-1-2014-08-29 1. Update Openshift to ose-2.16 from ose-2.15 1). update to puddle-2-1-2014-08-29 from ose-2.15 #yum update 2). import new cartridges to broker #oo-admin-ctl-cartridge -c import-node --activate 3). load new version of cartridge for all gears #oo-admin-upgrade upgrade-node --version=2.16 4). run run-mongodb-connection-hooks.rb #wget https://raw.githubusercontent.com/dobbymoodge/openshift-extras/sclmongo/admin/run-mongodb-connection-hooks.rb #chmod +x run-mongodb-connection-hooks.rb #./run-mongodb-connection-hooks.rb 2. "mongoimport --version" take effect on new created app. 3. "mongoimport --version" take effect on apps created in ose-2.15 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2014-1183.html |