]> 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)
committerEugene Nikanorov <enikanorov@mirantis.com>
Sun, 10 May 2015 22:18:54 +0000 (02:18 +0400)
commit1d9fd2aec00cb85034e5a23cc1beac33c74e0110
tree68d09e6d6b229ce55128cf2ecd5cc422dd0715b9
parent0933f26b2c9772c457bb259cff7c8f648d29f620
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
neutron/plugins/ml2/drivers/helpers.py