neutron/neutron/tests/unit/ml2/drivers/cisco
Robert Kukura b1677dcb80 ML2: Bind ports outside transactions
The ML2 plugin now calls the bind_port() operation on the registered
mechanism drivers outside of any enclosing DB transaction. Ports are
created or updated in one transaction, then a binding is established
if possible, and finally a second transaction commits the binding
result.

With [re]binding moved outside the DB transaction that triggered it,
it is now possible that multiple threads or processes will
concurrently try to bind the same port, or that the port will be
updated between transactions. Concurrent attempts to bind the same
port are allowed to proceed, which results are used is resolved in the
second transaction, and binding is retried if necessary.

Improvements to the Cisco Nexus driver and unit tests from Rich Curran
needed due to the binding changes are also included.

Closes-Bug: 1276391
Closes-Bug: 1335226
Change-Id: I65dafc330d6e812dad0667d2383858504d0ba299
2014-07-14 15:13:52 -04:00
..
apic Configure agents using neutron.common.config.init (formerly .parse) 2014-06-17 21:56:24 +02:00
nexus ML2: Bind ports outside transactions 2014-07-14 15:13:52 -04:00
__init__.py Prepare for multiple cisco ML2 mech drivers 2014-02-07 11:37:01 -05:00