commit 2b3e6e736123d7eaf03b8a13cf90976a75b27877
Author: Sean Dague <email address hidden>
Date: Wed Jan 27 13:02:35 2016 +0000
Spread allocations of fixed ips
The default fixed_ip allocation always does .first() out of the fixed
ip pool. This leads to a pathological situation that in a rapidly
changing environment we're constantly recycling the same small number
of ips out of the pool. Given other racey behavior in dnsmasq around
processing DHCP Release requests, we can start to get DHCP fails when
a DHCP release is missed, we immediately recycle the IP and give it to
a new guest.
We can mitigate this by sorting the results by updated_at. This
means we'll favor least recently used fixed ips.
Reviewed: https:/ /review. openstack. org/278992 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=2b3e6e73612 3d7eaf03b8a13cf 90976a75b27877
Committed: https:/
Submitter: Jenkins
Branch: stable/kilo
commit 2b3e6e736123d7e af03b8a13cf9097 6a75b27877
Author: Sean Dague <email address hidden>
Date: Wed Jan 27 13:02:35 2016 +0000
Spread allocations of fixed ips
The default fixed_ip allocation always does .first() out of the fixed
ip pool. This leads to a pathological situation that in a rapidly
changing environment we're constantly recycling the same small number
of ips out of the pool. Given other racey behavior in dnsmasq around
processing DHCP Release requests, we can start to get DHCP fails when
a DHCP release is missed, we immediately recycle the IP and give it to
a new guest.
We can mitigate this by sorting the results by updated_at. This
means we'll favor least recently used fixed ips.
Depends-On: I27f73c1edf1221 8818c4d279efbd9 fef5cdef672
Related-Bug: #1532809
Change-Id: I3c83bd68a0e2bb bcdd6d955722dbc 9f9fc528113 13163f31f2962d1 09941ee362) 3267ffdbbc1b3a8 c68062208a)
(cherry picked from commit 32b4ce0e92b3334
(cherry picked from commit 65d0ef8b69a03f1