Bug 980753
Summary: | [origin_runtime_157]No OPENSHIFT_POSTGRESQL_VERSION shown in app after having embedded postgresql-9.2 with scalable app | ||
---|---|---|---|
Product: | OpenShift Online | Reporter: | Yan Du <yadu> |
Component: | Containers | Assignee: | Hiro Asari <hasari> |
Status: | CLOSED NOTABUG | QA Contact: | libra bugs <libra-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 2.x | CC: | 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:41:53 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 07:42:00 UTC
The issue here is not one where the environment variables are not set to expected values. It is that you are connecting to a wrong gear. On a scaled application, the DB gear and the application gears are most likely different, but the DB environment is set up correctly on the DB gear. Of course, it is not clear how the user would connect to the DB gear. *** Bug 980713 has been marked as a duplicate of this bug. *** Right. Use 'rhc app show j7s --gears' to get the correct parameter to connect to the postgresql gear: $ bx bin/rhc app show j7s --gears ID State Cartridges Size SSH URL ------------------------ ------- --------------------- ----- ------------------------------------------------------------------------------ 51d4220ba7ecc11f6c000002 started postgresql-9.2 small 51d4220ba7ecc11f6c000002.rhcloud.com 51d4220aa7ecc11f6c000001 started jbossas-7 haproxy-1.4 small 51d4220aa7ecc11f6c000001.rhcloud.com $ ssh 51d4220ba7ecc11f6c000002.rhcloud.com … [51d4220ba7ecc11f6c000002-fooooooooooo.dev.rhcloud.com 51d4220ba7ecc11f6c000002]\> env | sort | grep POSTGRES OPENSHIFT_POSTGRESQL_DB_HOST=127.0.250.129 OPENSHIFT_POSTGRESQL_DB_LOG_DIR=/var/lib/openshift/51d4220ba7ecc11f6c000002/postgresql//log/ OPENSHIFT_POSTGRESQL_DB_PASSWORD=PYS69-TxbH_s OPENSHIFT_POSTGRESQL_DB_PID=/var/lib/openshift/51d4220ba7ecc11f6c000002/postgresql//pid/postgres.pid OPENSHIFT_POSTGRESQL_DB_PORT=5432 OPENSHIFT_POSTGRESQL_DB_PROXY_PORT=35536 OPENSHIFT_POSTGRESQL_DB_SOCKET=/var/lib/openshift/51d4220ba7ecc11f6c000002/postgresql//socket/ OPENSHIFT_POSTGRESQL_DB_URL=postgresql://adminhiwic1u:PYS69-TxbH_s.250.129:5432 OPENSHIFT_POSTGRESQL_DB_USERNAME=adminhiwic1u OPENSHIFT_POSTGRESQL_DIR=/var/lib/openshift/51d4220ba7ecc11f6c000002/postgresql/ OPENSHIFT_POSTGRESQL_IDENT=redhat:postgresql:9.2:0.3.0 OPENSHIFT_POSTGRESQL_PATH_ELEMENT=/opt/rh/postgresql92/root/usr/bin OPENSHIFT_POSTGRESQL_VERSION=9.2 |