]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Handle exceptions on create_dhcp_port
authorarmando-migliaccio <armamig@gmail.com>
Fri, 22 Nov 2013 02:42:08 +0000 (18:42 -0800)
committerarmando-migliaccio <armamig@gmail.com>
Wed, 4 Dec 2013 08:19:53 +0000 (00:19 -0800)
commitbff120a4775a1b1f3846a27c38d8eff4a678fd24
tree2b4cfc9aca00608865a89f1d203c09f4d10293e9
parent8faa5f076bc8c7906d8d987931b7c817acfcbe8b
Handle exceptions on create_dhcp_port

If a network/subnet is deleted while creating the dhcp
port, the agent will detect a conflict on state of the
network and deal with it accordingly.

A concurrent delete may manifest itself via a number
of exceptions, IPAddressGenerationFailure amongst others,
hence the refactoring of the error handling logic into its
own utility method.

Partial-bug: #1253344
Related-bug: #1243726

Change-Id: I442beb5f82f3db8786eea53926903ef0ba0efbf1
neutron/agent/dhcp_agent.py
neutron/agent/linux/dhcp.py
neutron/db/dhcp_rpc_base.py
neutron/tests/unit/test_db_rpc_base.py
neutron/tests/unit/test_dhcp_agent.py