]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
restart dnsmasq when subnet cidr set changes
authorMark McClain <mark.mcclain@dreamhost.com>
Wed, 5 Sep 2012 04:52:21 +0000 (00:52 -0400)
committerMark McClain <mark.mcclain@dreamhost.com>
Wed, 5 Sep 2012 05:50:08 +0000 (01:50 -0400)
commit6fa761fd14f634d4194eaa8cd64dbfc1821aac30
treef9a6fee2eb98bccb1240c9e6d0e065ae9334e604
parentaaec26c7db1541764f6d7b53ed40262f124652a5
restart dnsmasq when subnet cidr set changes

fixes bug 1045828

The original bug occurred because the set of subnet cidrs changed
without a restart of dnsmasq.  As a result, dnsmasq would not respond
with offers for fixed_ips assigned in the unknown cidr ranges even when
the underlying host file had properly updated.

This patch addresses the bug by restarting dnsmasq when the set of
subnet cidrs changes.  When the set does not change, it will reload the
options and allocations.

Change-Id: I0e257208750703f4a32c51d1323786e76e676bb6
quantum/agent/dhcp_agent.py
quantum/agent/linux/dhcp.py
quantum/tests/unit/test_dhcp_agent.py
quantum/tests/unit/test_linux_dhcp.py