]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
ML2 VxlanTypeDriver: Synchronize of VxlanAllocation table
authorEugene Nikanorov <enikanorov@mirantis.com>
Thu, 8 May 2014 11:19:02 +0000 (15:19 +0400)
committerEugene Nikanorov <enikanorov@mirantis.com>
Thu, 8 May 2014 11:19:02 +0000 (15:19 +0400)
commitb3e52b6b2462cf80dbdb5fa4785e51b0d147316e
treeb3cf5a2140834eec3777784b22d9d7b45e461ca6
parentae3e92fe0c820dd851ada8fbac50ade068a07e7a
ML2 VxlanTypeDriver: Synchronize of VxlanAllocation table

At neutron startup VxlanTypeDriver syncs tunnel range from conf
to DB. In case multiple servers deployment restarting several
servers at the same time could lead to DB exceptions being thrown.
Need to synchronize between neutron servers by locking VxlanAllocation
table.

Change-Id: Idf9908f039070b9194612484603f592f1a8d74b8
Closes-Bug: #1307295
neutron/plugins/ml2/drivers/type_vxlan.py