]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Provide way to reserve dhcp port during failovers
authorEd Bak <ed.bak2@hp.com>
Fri, 7 Mar 2014 17:16:15 +0000 (17:16 +0000)
committerEd Bak <ed.bak2@hp.com>
Tue, 20 May 2014 17:24:22 +0000 (17:24 +0000)
commitd5c0a37999f9e3a611a322baacabebc06b13283b
treea01051f79caf80ace7c8f6775c329f772d759435
parentf341b9ec8815653917fcafa059365b9ff466c69e
Provide way to reserve dhcp port during failovers

This change provides a way to save the dhcp port when failing
over a network from one dhcp agent to another.  When a
dhcp-agent-network-remove is issued, the dhcp port device_id is
marked as reserved which causes it to not be deleted. When a
subsequent dhcp-agent-network-add is issued, the reserved port
is used and the device_id is corrected.  This is desirable
in order to maintain the dhcp port ip address so that dns doesn't
get impacted. Unit test added.

Change-Id: I531d7ffab074b01adfe186d2c3df43ca978359cd
Closes-Bug: #1288923
neutron/agent/linux/dhcp.py
neutron/common/constants.py
neutron/common/utils.py
neutron/db/agentschedulers_db.py
neutron/tests/unit/openvswitch/test_agent_scheduler.py
neutron/tests/unit/test_db_plugin.py
neutron/tests/unit/test_dhcp_agent.py