Description of problem: On the primary gear of a scaled app with PostgreSQL 9.2 cart, 'psql' invokes /usr/bin/psql, which is 8.4. Version-Release number of selected component (if applicable): devenv_3476 How reproducible: Always Steps to Reproduce: 1. app create rack ruby-1.9 postgresql-9.2 -s 2. app ssh rack 3. psql --version Actual results: [rack-fooooooooooo.dev.rhcloud.com 51dd8448e412c47550000001]\> psql psql (8.4.13, server 9.2.4) WARNING: psql version 8.4, server version 9.2. Some psql features might not work. Type "help" for help. Expected results: [51dd8449e412c47550000002-fooooooooooo.dev.rhcloud.com 51dd8449e412c47550000002]\> psql psql (9.2.4) Type "help" for help. Additional info:
Since the normal user on the primary gear cannot inquire 'scl' whether or not a certain version of software is installed, we'll need to inject logic in the psql() wrapper depending on the value of $OPENSHIFT_POSTGRESQL_VERSION, which is not published at the moment.
https://github.com/openshift/origin-server/pull/3059
Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/99c5e17c9fcc38b57be6b07a2ee94fca69a86cdf Bug 983190 Publish $OPENSHIFT_POSTGRESQL_VERSION to all gears, and depending on whether `scl` is available, set up the `psql()` wrapper in `rhcsh` appropriately.
verfied on devenv_3490 rhc-1.11.4 steps: $rhc app create rack ruby-1.9 postgresql-9.2 -s $rhc app ssh rack [rack-111.dev.rhcloud.com f4819c4cea9f11e2a0d512313d1ff52a]\> psql --version psql (PostgreSQL) 9.2.4 [rack-111.dev.rhcloud.com f4819c4cea9f11e2a0d512313d1ff52a]\> psql psql (9.2.4) Type "help" for help. move to verified.