Bug 1181916
Summary: | Openshift overwrites data/postgresql.conf during restart, destroying max_prepared_transactions setting | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Hooman Broujerdi <hghasemb> |
Component: | ImageStreams | Assignee: | Jason DeTiberus <jdetiber> |
Status: | CLOSED ERRATA | QA Contact: | libra bugs <libra-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | high | ||
Version: | 2.1.0 | CC: | bleanhar, cryan, erich, gpei, hghasemb, jokerman, knakayam, libra-onpremise-devel, mmccomas |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | openshift-origin-cartridge-postgresql-1.32.0.1-1 | Doc Type: | Bug Fix |
Doc Text: |
Cause: Configuration templates did not account for max_prepared_transactions.
Consequence: max_prepared_transactions was not set to the value from OPENSHIFT_POSTGRESQL_MAX_PREPARED_TRANSACTIONS
Fix: Configuration templates have been updated to ensure postgres configuration matches the environment variable.
Result: If the environment variable OPENSHIFT_POSTGRESQL_MAX_PREPARED_TRANSACTIONS is set the postgres configuration honor that value at restart. If the variable is not set the value will be zero.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2015-02-12 13:09:58 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
Hooman Broujerdi
2015-01-14 04:53:43 UTC
Verify this bug with openshift-origin-cartridge-postgresql-1.32.0.1-1 on 2.2/2015-01-23.2. Both postgresql-8.4 and postgresql-9.2 work well with the new env var OPENSHIFT_POSTGRESQL_MAX_PREPARED_TRANSACTIONS. 1. Create an app with postgresql-8.4 embedded, check its default max_prepared_transactions settings in postgresql/data/postgresql.conf. [app-123.ose22-manual.com.cn data]\> grep max_prepared_transactions * postgresql.conf:max_prepared_transactions = 0 2. Set env vars to modify datestyle and locale vars [root@broker ~]# rhc env-set OPENSHIFT_POSTGRESQL_MAX_PREPARED_TRANSACTIONS=100 -a app Setting environment variable(s) ... done 3. Restart the postgres cartridge [root@broker ~]# rhc cartridge restart postgresql -a app Using postgresql-8.4 (PostgreSQL 8.4) for 'postgresql' Restarting postgresql-8.4 ... done 4. Check postgresql/data/postgresql.conf again. The env vars setting by user was taking effect [app-123.ose22-manual.com.cn data]\> grep max_prepared_transactions postgresql.conf max_prepared_transactions = 100 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-0220.html |