Bug 1181107
Summary: | Keepalived tries to resolve dns entries at restart, which leads to MASTER flapping | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Miguel Angel Ajo <majopela> | ||||
Component: | keepalived | Assignee: | Ryan O'Hara <rohara> | ||||
Status: | CLOSED ERRATA | QA Contact: | Brandon Perkins <bperkins> | ||||
Severity: | urgent | Docs Contact: | |||||
Priority: | urgent | ||||||
Version: | 7.1 | CC: | cluster-maint, fdinitto, lpeer, majopela, oblaut, rohara, tlavigne | ||||
Target Milestone: | rc | ||||||
Target Release: | 7.2 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | keepalived-1.2.13-7.el7 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2015-11-19 12:20:17 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: | |||||||
Bug Blocks: | 1181592 | ||||||
Attachments: |
|
Description
Miguel Angel Ajo
2015-01-12 11:40:53 UTC
Created attachment 1025539 [details]
Set global data default values after parsing config file
This patch will defer setting the global data default values until after the config file has been parsed. This will potentially avoid two calls to getaddrinfo. For example, if the router_id and/or email_from parameters are set in the config file, there is no need to call getaddrinfo twice in order to set a default value. Instead, this patch will check to see if they values are unset after parsing the config file. Note that email_from and smtp_connection_to are only set to a default value if they are unitialized and smtp_server is specified.
I'm planning to submit this upstream, but it might be worthwhile to have Neutron developers test this to make sure if fixes the problems. Note that in order to avoid all DNS queries you must have router_id set in global_defs, eg.
global_defs {
router_id whatever
}
Upstream pull request: https://github.com/acassen/keepalived/pull/148 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-2379.html |