]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Randomize tunnel id query to avoid contention
authorEugene Nikanorov <enikanorov@mirantis.com>
Sun, 10 May 2015 21:34:35 +0000 (01:34 +0400)
committerstephen-ma <stephen.ma@hp.com>
Sat, 6 Jun 2015 02:30:25 +0000 (02:30 +0000)
commit9bc323316a27676859280c9ee413a791c386ac64
tree1ce27e7a061b8540a8535181e5d88dfa562b895b
parentcf7647502093aa8a1a04462ef52261e1f2c5f465
Randomize tunnel id query to avoid contention

When networks are created rapidly, neutron-servers compete
for segmentation ids which creates too much contention and
may lead to inability to choose available id in hardcoded amount
of attempts (11)
Randomize tunnel id selection so that condition is not hit.

Change-Id: I7068f90fe4927e6e693f8a62cb704213b2da2920
Related-Bug: #1382064
Closes-Bug: #1454434
(cherry picked from commit 1d9fd2aec00cb85034e5a23cc1beac33c74e0110)
neutron/plugins/ml2/drivers/helpers.py