]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Wrap ML2 delete_port with db retry decorator
authorOleg Bondarev <obondarev@mirantis.com>
Wed, 6 May 2015 09:50:11 +0000 (12:50 +0300)
committerOleg Bondarev <obondarev@mirantis.com>
Wed, 3 Jun 2015 05:44:54 +0000 (05:44 +0000)
commit45ea2cf10033e12c63b8ce2cd78b04755d0aba64
tree537a735f9ebfa85eef6face4e720cd2fb22cb453
parent4bbe791e976f663105884e8eed933681b5949794
Wrap ML2 delete_port with db retry decorator

ML2 delete_port operation currently involves locking ports
and bindings tables which may lead to DBDeadlock errors in certain
cases when several ports are deleted concurrently.
That may happen due to specifics of Galera working in active-active
mode: it may throw deadlock errors when it fails to validate
a change with other members of the cluster.
The fix adds retries to delete port operation to overcome such
deadlocks

Closes-Bug: #1422504
Change-Id: I684691d59c5ac370d74314c3c91857dc709b2d9b
neutron/plugins/ml2/plugin.py
neutron/tests/unit/plugins/ml2/test_plugin.py