DHCP port creation is asynchronous with subnet creation.
Therefore there is a time window where, depending on how fast
the DHCP agent honors the request, the DHCP port IP allocation
may or may not be accounted for in the total number of used IP
for the network. To kill the race, do not run dhcp on the
created subnets at all.
Closes-bug: 1563883
Change-Id: Idda25e65d04852d68a3c160cc9deefdb4ee82dcd
(cherry picked from commit 27634bb2ba2637d694c7d0aa5758173d12ef579a)
Reviewed: https:/ /review. openstack. org/299649 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=c178bd9565a e699a79a8f13e89 d1f8717a765cc1
Committed: https:/
Submitter: Jenkins
Branch: stable/mitaka
commit c178bd9565ae699 a79a8f13e89d1f8 717a765cc1
Author: Armando Migliaccio <email address hidden>
Date: Wed Mar 30 14:24:58 2016 -0700
Fix race conditions in IP availability API tests
DHCP port creation is asynchronous with subnet creation.
Therefore there is a time window where, depending on how fast
the DHCP agent honors the request, the DHCP port IP allocation
may or may not be accounted for in the total number of used IP
for the network. To kill the race, do not run dhcp on the
created subnets at all.
Closes-bug: 1563883
Change-Id: Idda25e65d04852 d68a3c160cc9dee fdb4ee82dcd 694c7d0aa575817 3d12ef579a)
(cherry picked from commit 27634bb2ba2637d