]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Log dnsmasq host file generation
authorIan Wienand <iwienand@redhat.com>
Wed, 12 Mar 2014 04:37:56 +0000 (15:37 +1100)
committerIan Wienand <iwienand@redhat.com>
Wed, 19 Mar 2014 23:20:10 +0000 (10:20 +1100)
commit3666dcf76dd8cf7a22743e407343b528331130f7
tree20c444cc95851d228b66331f390086d31205dd5f
parentb23f8ebb6192ad82d0df8c6b099d6bee64f056c2
Log dnsmasq host file generation

We've been seeing things that appear to be races between the hosts
files being written out for dnsmasq and dhcp requests coming in.  We
will get occasional errors from dnsmasq saying "no address available",
"duplicate IP address" but by the time you look, the corresponding
host file has long since been replaced.

If we had some debugging like this, we could at least correlate what
neutron thought dnsmasq knew at the time the requests were coming in.

We store the filename to avoid multiple lookups, and also
s/name/filename/ to avoid ambiguity and be more consistent with the
rest of the code.

Closes-Bug: #1294892
Change-Id: Ifa92ca71419ce0155b28d2015eff9e82557a0825
neutron/agent/linux/dhcp.py