]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
LBaaS: synchronize haproxy deploy/undeploy_instance methods
authorOleg Bondarev <obondarev@mirantis.com>
Fri, 13 Dec 2013 14:22:32 +0000 (18:22 +0400)
committerOleg Bondarev <obondarev@mirantis.com>
Fri, 13 Dec 2013 15:03:40 +0000 (19:03 +0400)
commit6d3290ab39db687d34c02caebfbb3d32c90e9cdf
tree1279c786f0c5d2ad8668b4344d44c8f5c8450d0e
parent3b4233873539bad62d202025529678a5b0add412
LBaaS: synchronize haproxy deploy/undeploy_instance methods

When creating/deleting lbaas objects at a high rate (like tempest api tests do)
deploy/undeploy_unstance methods of haproxy namespace driver
may be executed concurrently which leads to different conflicts with
network namespaces and interfaces created by the diver.

@synchronized decorator should be used in order to ensure that only one thread
will execute one of the methods at a time.

Closes-Bug: #1260692

Change-Id: Ibe86653c20c9a4e0b4e7b3b2cefbd445428b82da
neutron/services/loadbalancer/drivers/haproxy/namespace_driver.py