]> 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 10:14:22 +0000 (03:14 -0700)
commitdb9ac7e0110a0c2ef1b65213317ee8b7f1053ddc
treedfb74fb1af7a63ddaa68263845ae5a3d90abbd80
parent4363bc38c44d60abefe59ed2edea036e326cbce5
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
neutron/agent/dhcp/agent.py
neutron/tests/unit/agent/dhcp/test_agent.py