]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix detection of deleted networks in DHCP agent.
authorRoman Podolyaka <rpodolyaka@mirantis.com>
Tue, 5 Mar 2013 16:53:51 +0000 (18:53 +0200)
committerRoman Podolyaka <rpodolyaka@mirantis.com>
Tue, 12 Mar 2013 12:59:12 +0000 (14:59 +0200)
commitbb43a075f79fde8e57019671aab62e14d0bb2741
tree35edead83c0b0e77a266c2f06aa8982052e02c9f
parentcf00be07a699525f95fc039899e1b0d470a7c5d5
Fix detection of deleted networks in DHCP agent.

The DHCP-agent uses an in-memory networks cache to find out which networks must
be deleted and which ones must be updated. In a case of agent restart the networks
cache is empty and it's not possible to cleanup DHCP-processes serving networks
which were deleted while the DHCP-agent was down. The proposed fix fills the networks
cache when the agent starts using a list of networks which have existing config files.

Fixes: bug #1135948
Change-Id: I27758389755cd19bca9fdbeda9cc1a123370f527
quantum/agent/dhcp_agent.py
quantum/agent/linux/dhcp.py
quantum/tests/unit/test_dhcp_agent.py
quantum/tests/unit/test_linux_dhcp.py