]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Handle IPAddressGenerationFailure during get_dhcp_port
authorarmando-migliaccio <armamig@gmail.com>
Thu, 21 Nov 2013 21:07:28 +0000 (13:07 -0800)
committerarmando-migliaccio <armamig@gmail.com>
Thu, 21 Nov 2013 21:08:14 +0000 (13:08 -0800)
commit8faa5f076bc8c7906d8d987931b7c817acfcbe8b
tree08761b03bc603d15f2d323bdaff51f0108d7b2c5
parentcbe91fda7b416717a23cf7b29adf8201a8c14822
Handle IPAddressGenerationFailure during get_dhcp_port

If a network/subnet is deleted while the dhcp agent is trying
to get/create a dhcp port for that network, the exception
will be raised because no IP Allocation Range is available.

However, this particular failure mode causes just noise, because
the dhcp agent can cope with it without problems.

A follow-up patch will deal with the other exception traces during
create_dhcp_port

Partial-bug: #1253344

Change-Id: I7fe35455ce905daa22ff96367e120864a7d3fb92
neutron/db/dhcp_rpc_base.py
neutron/tests/unit/test_db_rpc_base.py