]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Don't resync on DHCP agent setup failure
authorKevin Benton <blak111@gmail.com>
Fri, 24 Apr 2015 07:35:31 +0000 (00:35 -0700)
committerKevin Benton <blak111@gmail.com>
Fri, 24 Apr 2015 11:10:02 +0000 (04:10 -0700)
commitd37e566dcadf8a540eb5f84b668847fa192393a1
tree3c2458ae8482f64257c96c127bede88fe159d5a0
parent9e113360b9ab55793a1b5d8fc0cb3e428e63c044
Don't resync on DHCP agent setup failure

There are various cases where the DHCP agent will try to
create a DHCP port for a network and there will be a failure.
This has primarily been caused by a lack of available IP addresses
in the allocation pool. Trying to fix all availability corner cases
on the server side will be very difficult due to race conditions between
multiple ports being created, the dhcp_agents_per_network parameter, etc.

This patch just stops the resync attempt on the agent side if a failure
is caused by an IP address generation problem. Future updates to the subnet
will cause another attempt so if the tenant does fix the issue they will
get DHCP service.

Change-Id: I0896730126d6dca13fe9284b4d812cfb081b6218
Closes-Bug: #1447883
(cherry picked from commit db9ac7e0110a0c2ef1b65213317ee8b7f1053ddc)
neutron/agent/dhcp/agent.py
neutron/tests/unit/agent/dhcp/test_agent.py