Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
DescriptionMiguel Angel Ajo
2015-01-12 11:40:53 UTC
Description of problem:
When keepalived is running inside a network namespace it could have no network access to the system configured name servers. So during a -HUP restart to reload new configuration keepalived tries to resolve it's own hostname twice, waiting for DNS timeout.
This makes keepalived MASTER move around the BACKUP instances.
The DNS resolutions are done to fill up default configuration regardless of configuration being set or not. So there is no way to avoid it without system workarounds.
This workaround fixes the issue, but could interfere with other services:
# echo 127.0.0.1 $( hostname ) >>/etc/hosts
Version-Release number of selected component (if applicable):
keepalived-1.2.13-6.el7.x86_64
How reproducible:
100%
Steps to Reproduce:
1. set /etc/resolv.conf to a non responding DNS server.
2.
3.
Actual results:
when you kill -HUP $(keepalived_pid) the MASTER moves to a SLAVE because keepalived get's stuck in name resolution.
Expected results:
If you provide router_id and you're not configuring email notifications no DNS resolution should be invoked to fill up any of those default settings within keepalived.
Additional info:
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
}
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