Description of problem: The gear PATH variable doesn't reference the correct directory for the binaries included with SCL MongoDB package mongodb24-mongodb. Version-Release number of selected component (if applicable): openshift-origin-cartridge-mongodb-1.19.3.2-1.el6op.noarch How reproducible: 100% Steps to Reproduce: 1. Create an app with a mongo cartridge # rhc app-create -s mongoapp1 diy-0.1 mongodb-2.4 --no-git --no-dns 2. SSH into the primary gear # rhc ssh mongoapp1 3. Try to run any mongodb binary other than "mongo" (which is provided as an alias in rhcsh): [mongoapp1 53abcd]\> mongoimport --version Actual results: On systems with the non-scl "mongodb" package installed (e.g. all-in-one broker/node hosts): [mongoapp1 53abcd]\> mongoimport --version mongoimport version 2.4.6 [mongoapp1 53abcd]\> type mongoimport mongoimport is hashed (/usr/bin/mongoimport) On systems with only the scl "mongodb24-mongodb" package installed (e.g. typical standalone node setup): [mongoapp1 53abcd]\> mongoimport --version bash: mongoimport: command not found Expected results: The mongoimport version should be 2.4.9, and the path should be the SCL-set path "/opt/rh/mongodb24/root/usr/bin": [mongoapp1 53abcd]\> mongoimport --version mongoimport version 2.4.9 [mongoapp1 53abcd]\> type mongoimport mongoimport is hashed (/opt/rh/mongodb24/root/usr/bin/mongoimport) Additional info: This can be worked around by using the scl tools: [mongoapp1 53abcd]\> scl enable mongodb24 "mongoimport --version" mongoimport version 2.4.9
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
http://etherpad.corp.redhat.com/puddle-2-1-2014-08-29
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