Bug 1123850
Summary: | Openshift overwrites data/postgresql.conf during restart, destroying Locale and Formatting configuration | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Brenton Leanhardt <bleanhar> |
Component: | ImageStreams | Assignee: | Jason DeTiberus <jdetiber> |
Status: | CLOSED ERRATA | QA Contact: | libra bugs <libra-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 2.1.0 | CC: | gpei, jokerman, jurgencuiza, libra-bugs, libra-onpremise-devel, mfojtik, mmccomas |
Target Milestone: | --- | Keywords: | Upstream |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | openshift-origin-cartridge-postgresql-1.29.2-1.git.147.ef6cd67.el6op | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | 1123587 | Environment: | |
Last Closed: | 2014-11-03 19:54:36 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: | 1123587 | ||
Bug Blocks: |
Description
Brenton Leanhardt
2014-07-28 13:18:10 UTC
Verify this bug with openshift-origin-cartridge-postgresql-1.29.2-1.git.147.ef6cd67.el6op.noarch 1. Create a php app with postgresql-9.2 embedded, check its default settings in postgresql/data/postgresql.conf: datestyle = 'iso, mdy' lc_messages = 'en_US.utf8' lc_monetary = 'en_US.utf8' lc_numeric = 'en_US.utf8' lc_time = 'en_US.utf8' default_text_search_config = 'pg_catalog.english' 2. Set env vars to modify datestyle and locale vars rhc env-set OPENSHIFT_POSTGRESQL_LOCALE="zh_CN.utf8" -a app1 Setting environment variable(s) ... done rhc env-set OPENSHIFT_POSTGRESQL_DATESTYLE="iso, dmy" -a app1 Setting environment variable(s) ... done 3. Restart the postgres cartridge [root@dhcp-129-188 pei]# rhc cartridge restart postgresql-9 -a app1 Using postgresql-9.2 (PostgreSQL 9.2) for 'postgresql-9' Restarting postgresql-9.2 ... done 4. Check postgresql/data/postgresql.conf again. The env vars setting by user was taking effect datestyle = 'iso, dmy' lc_messages = 'zh_CN.utf8' lc_monetary = 'zh_CN.utf8' lc_numeric = 'zh_CN.utf8' lc_time = 'zh_CN.utf8' The two env vars also work well with scalable app and postgresql-8.4 cartridge. 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/RHSA-2014-1796.html |