]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Remove DHCP lease logic
authorAaron Rosen <arosen@nicira.com>
Tue, 16 Jul 2013 23:06:32 +0000 (16:06 -0700)
committerAaron Rosen <arosen@nicira.com>
Mon, 12 Aug 2013 23:55:48 +0000 (16:55 -0700)
commitd9832282cf656b162c51afdefb830dacab72defe
treec2893fb2a42704a74d5af5bfe2163eb28d605453
parent2e7f35c88b0192f553be34f973f35d39927f1746
Remove DHCP lease logic

Previously neutron was keeping track of dhcp lease time in order
to ensure it didn't hand out an ip address that was already leased.
This patch removes that logic and instead leverages the dhcp_release
utility. This allows us to reuse ip addresses immediately after a port
is deleted. This patch also bumps the lease time to 24 hours instead
of 2 minutes with reduces the amount of dhcp traffic.

DocImpact

There is a DocImpact for this bug related to the upgrade path. One should
first upgrade their dhcp-agents. Then wait till the dhcp_lease time has
expired. Lastly, update neutron-server in order to avoid the case where
an instance is deleted and the dnsmasq process has not released the lease
and neturon allocates that ip to a new port.

Fixes bug: 1202392
Implements blueprint: remove-dhcp-lease

Change-Id: Ifcb4f093c92904ceb896438987d53e692eb7fb26
15 files changed:
bin/neutron-dhcp-agent-dnsmasq-lease-update [deleted file]
etc/neutron.conf
etc/neutron/rootwrap.d/dhcp.filters
neutron/agent/dhcp_agent.py
neutron/agent/linux/dhcp.py
neutron/common/config.py
neutron/db/db_base_plugin_v2.py
neutron/db/dhcp_rpc_base.py
neutron/db/migration/alembic_migrations/versions/f9263d6df56_remove_dhcp_lease.py [new file with mode: 0644]
neutron/db/models_v2.py
neutron/tests/unit/test_config.py
neutron/tests/unit/test_db_plugin.py
neutron/tests/unit/test_dhcp_agent.py
neutron/tests/unit/test_linux_dhcp.py
setup.cfg