Bug 729207
| Summary: | /var/lib/libvirt/dnsmasq/default.hostsfile lags behind changes | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Laine Stump <laine> |
| Component: | libvirt | Assignee: | Laine Stump <laine> |
| Status: | CLOSED DUPLICATE | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.1 | CC: | aquini, berrange, clalance, crobinso, dyuan, itamar, jforbes, laine, mzhan, nphilipp, rwu, veillard, virt-maint, whuang, xhu |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 713728 | Environment: | |
| Last Closed: | 2011-08-09 06:05:44 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Laine Stump
2011-08-09 03:49:44 UTC
commit 3aa84653d1c457b1c12efd4b8449e31525042254
Author: Laine Stump <laine>
Date: Wed Aug 3 15:33:24 2011 -0400
network: eliminate lag in updating dnsmasq hosts files
This addresses https://bugzilla.redhat.com/show_bug.cgi?id=713728
When "defining" a new network (or one that exists but isn't currently
active) the new definition is stored in network->def, but for a
network that already exists and is active, the new definition is
stored in network->newDef, and then moved over to network->def as soon
as the network is destroyed.
However, the code that writes the dhcp and dns hosts files used by
dnsmasq was always using network->def for its information, even when
the new data was actually in network->newDef, so the hosts files
always lagged one edit behind the definition.
This patch changes the code to keep the pointer to the new definition
after it's been assigned into the network, and use it directly
(regardless of whether it's stored in network->newDef or network->def)
to construct the hosts files.
This same patch has also been posted to rhvirt-patches for inclusion in
RHEL6.2:
http://post-office.corp.redhat.com/archives/rhvirt-patches/2011-August/msg00298.html
*** This bug has been marked as a duplicate of bug 727982 *** |