Bug 980713

Summary: [origin_runtime_157] psql client version is still 8.4 after embeded postgresql-9.2 to scalable app
Product: OpenShift Online Reporter: Yan Du <yadu>
Component: ContainersAssignee: Hiro Asari <hasari>
Status: CLOSED DUPLICATE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: hasari, jkeck
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-03 13:36:13 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:

Description Yan Du 2013-07-03 06:02:38 UTC
Description of problem:
create a app embeded postgresql-9.2, and ssh in to the all, run psql or psql --version


Version-Release number of selected component (if applicable):
devenv_3441
rhc-1.11.2


How reproducible:
Always


Steps to Reproduce:

1. Create an app and added postgresql-9.2 to the app
$ rhc app create j7s jbossas-7 -s
$ rhc cartridge add -a j7s -c postgresql-9.2

2. ssh the app and run psq or psql --version
$ psql --version
$ psql


Actual results:
[j7s-111.dev.rhcloud.com 574972695356251140259840]\> psql --version
psql (PostgreSQL) 8.4.13
contains support for command-line editing

[j7s-111.dev.rhcloud.com 574972695356251140259840]\> 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:
should show psql (PostgreSQL) 9.2.4



Additional info:
It is ok with devenv_3439
[j7-111.dev.rhcloud.com 181535259818370384527360]\> psql --version
psql (PostgreSQL) 9.2.4


[j7-111.dev.rhcloud.com 181535259818370384527360]\> psql
psql (9.2.4)
Type "help" for help.

Comment 1 Yan Du 2013-07-03 10:40:17 UTC
clarify the Additional info:

Issue only occured with scablable app. both in devenv_3439 and devenv_3441.
It works normally with non-scalable app.

[p33-111.dev.rhcloud.com 51d3f17048d5f979c1000002]\> psql
psql (9.2.4)
Type "help" for help.

Comment 2 Hiro Asari 2013-07-03 13:36:13 UTC
This is essentially the same issue as #980753. You are not connecting to the correct gear to look at the DB environment. There should be a way to do this easily.

*** This bug has been marked as a duplicate of bug 980753 ***