Bug 1202507
Summary: | Cannot create secured communication with Postgresql 9.2 database | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Brenton Leanhardt <bleanhar> |
Component: | ImageStreams | Assignee: | Jason DeTiberus <jdetiber> |
Status: | CLOSED ERRATA | QA Contact: | libra bugs <libra-bugs> |
Severity: | unspecified | Docs Contact: | |
Priority: | high | ||
Version: | 2.2.0 | CC: | adellape, gpei, jokerman, libra-bugs, libra-onpremise-devel, maszulik, mmccomas, pruan, yinzhou |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | openshift-origin-cartridge-postgresql-1.32.4.1-1.el6op | Doc Type: | Bug Fix |
Doc Text: |
Previously in applications with a PostgreSQL cartridge, the PostgreSQL server would fail to start if the OPENSHIFT_POSTGRESQL_SSL_ENABLED environment variable was set to "true" and the server.key and server.crt files were not located in the $PGDATA/data directory. This bug fix updates the PostgreSQL cartridge to check these file locations during start up if OPENSHIFT_POSTGRESQL_SSL_ENABLED is set to "true". If they exist, SSL is enabled. Otherwise, the PostgreSQL server starts up normally but SSL is not enabled. After applying this update, a cartridge upgrade is required.
|
Story Points: | --- |
Clone Of: | 1191181 | Environment: | |
Last Closed: | 2015-04-06 17:06:42 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: | 1191181 | ||
Bug Blocks: |
Description
Brenton Leanhardt
2015-03-16 18:52:07 UTC
verify this bug with openshift-origin-cartridge-postgresql-1.32.4.1-1.el6op.noarch 1. Create an app with postgresql embedded. 2. Set the SSL env on rhc env-set OPENSHIFT_POSTGRESQL_SSL_ENABLED=true -a app1 3. Restart the app. No error happened and postgresql work well with SSL off. 4. Add server.key and server.crt to $PGDATA/data dir and restart the app again. No error happened. 5. Port-forward the postgresql to localhost. Connect to the postgres db. rhc port-forward app1 ... postgresql 127.0.0.1:5432 => 127.8.237.2:5432 [root@broker ~]# psql app1 -h 127.0.0.1 --port 5432 --user xxxxxxx Password for user xxxxxxx: psql (8.4.20, server 9.2.8) WARNING: psql version 8.4, server version 9.2. Some psql features might not work. SSL connection (cipher: DHE-RSA-AES256-SHA, bits: 256) Type "help" for help. 6. Set the SSL env off and restart the app rhc env-set OPENSHIFT_POSTGRESQL_SSL_ENABLED=false -a app1 7. Port-forward the postgresql to localhost. Connect to the postgres db. rhc port-forward app1 ... postgresql 127.0.0.1:5432 => 127.8.237.2:5432 [root@broker ~]# psql app1 -h 127.0.0.1 --port 5432 --user xxxxxxx Password for user xxxxxxx: psql (8.4.20, server 9.2.8) WARNING: psql version 8.4, server version 9.2. Some psql features might not work. Type "help" for help. app1=# ^C 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. https://rhn.redhat.com/errata/RHBA-2015-0779.html |