Bug 1123318 - HA: All services are missing max_retries=-1 settings for accessing the DB.
Summary: HA: All services are missing max_retries=-1 settings for accessing the DB.
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-foreman-installer
Version: 5.0 (RHEL 7)
Hardware: Unspecified
OS: Unspecified
Target Milestone: ga
: Installer
Assignee: Crag Wolfe
QA Contact: Leonid Natapov
Depends On:
TreeView+ depends on / blocked
Reported: 2014-07-25 10:03 UTC by Leonid Natapov
Modified: 2016-04-26 20:13 UTC (History)
7 users (show)

Fixed In Version: openstack-foreman-installer-2.0.18-1.el6ost
Doc Type: Bug Fix
Doc Text:
Previously, the max_retries parameter in various configuration files was not set to -1. As a result, an OpenStack service would 'give up' rather than retry if the initial database connection failed. With this update, the value for max_retries parameter is set to -1 in the OpenStack configuration files, so services will retry connecting to the database service if the initial attempt fails, allowing for a more robust setup.
Clone Of:
Last Closed: 2014-08-21 18:06:30 UTC

Attachments (Terms of Use)

System ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:1090 normal SHIPPED_LIVE Red Hat Enterprise Linux OpenStack Platform Enhancement Advisory 2014-08-22 15:28:08 UTC

Description Leonid Natapov 2014-07-25 10:03:17 UTC
Rubygem-staypuft: HA: All services are missing max_retries=-1 settings for accessing the DB.

This means that if the DB is not started before the service, the service will fail to start. This behaviour is currently mitigated by: start-failure-is-fatal: false, but it is technically incorrect.

set max_retries=-1 on all services with access to the DB

add a start order constrain for services on galera/mysql. This will guarantee that the services will be always started _after_ the db. In the manual how-to I use solution1 and it is known to work.
Also a maintanance to the DB will triger a chain effect of stopping all services, while that's not required with solution1.

Comment 1 Crag Wolfe 2014-08-04 21:15:17 UTC
I'm going with Solution 1 unless somebody objects.

Comment 3 Jason Guiditta 2014-08-05 18:57:42 UTC

Comment 6 Leonid Natapov 2014-08-12 13:17:24 UTC
[root@maca25400702875 ~]# grep -P '^max_retries' /etc/*/*conf
grep: /etc/httpd/conf: Is a directory


Comment 7 errata-xmlrpc 2014-08-21 18:06:30 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.