]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Big Switch: Lock consistency table for REST calls
authorKevin Benton <blak111@gmail.com>
Fri, 6 Jun 2014 21:15:46 +0000 (14:15 -0700)
committerKevin Benton <blak111@gmail.com>
Wed, 18 Jun 2014 15:09:42 +0000 (08:09 -0700)
commit09e706b210513968cac2bad78fe81ee9cbb5b5be
tree6efb2060eaa47d654b14cf94cee56989b62f5f3f
parent24718e6f1764e95f0c393ba042546e3584981b31
Big Switch: Lock consistency table for REST calls

Adds a new class to hold an SQL table lock throughout
a REST call to prevent servers in an HA deployment from
using a stale consistency hash value.

Also passes the current context down to the server manager
for every request since the consistency hash will need to
be read from the database instead of from a variable on the
server pool object.

Closes-Bug: #1328331
Change-Id: I5f8402c076d7732742c0ae4d9b9d6833d42a0b7b
neutron/plugins/bigswitch/db/consistency_db.py
neutron/plugins/bigswitch/plugin.py
neutron/plugins/bigswitch/servermanager.py
neutron/tests/unit/bigswitch/test_servermanager.py