neutron/neutron/tests/unit/nec
Akihiro Motoki 64acc3bd63 nec plugin: Avoid long transaction in delete_ports
db_plugin.delete_ports() can lead to long transaction
if plugin.deleete_port talks with external system.
This commit removes a transaction in delete_ports and
allows NEC plugin to use more granular db transactions
in delete_port. It greatly helps db race conditions and
timeouts in delete_port operations.

To avoid to impact other plugins/drivers by changing
db_plugin.delete_ports directly and to land this patch soon,
this commit overrides delete_ports() in NEC plugin.
Further disssion on transaction in delete_ports will be
discussed under bug 1282925.

Closes-Bug: #1282922
Related-Bug: #1282925

Change-Id: I2c00694ad34eb2058bf7a0ff1c920ceded327d43
2014-03-02 09:04:13 +00:00
..
__init__.py Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
fake_ofc_manager.py Refactor unit tests for NEC Plugin 2013-07-12 15:40:33 +09:00
stub_ofc_driver.py OpenFlow distributed router support in NEC plugin 2013-09-04 17:15:59 +09:00
test_agent_scheduler.py Adds support for L3 routing/NAT as a service plugin 2013-09-11 12:12:10 +02:00
test_config.py Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
test_db.py Utilizes assertIsNone and assertIsNotNone 2013-10-23 10:59:16 +08:00
test_nec_agent.py Utilizes assertIn 2013-10-09 10:02:51 +08:00
test_nec_plugin.py nec plugin: Avoid long transaction in delete_ports 2014-03-02 09:04:13 +00:00
test_ofc_client.py Handle racing condition in OFC port deletion 2014-02-21 08:37:53 +00:00
test_ofc_manager.py Plugins should call __init__ of db_base_plugin for db.configure 2014-02-21 13:30:12 -08:00
test_packet_filter.py Remove plugin_name_v2 and extension_manager in test_config 2014-01-06 20:02:00 +09:00
test_pfc_driver.py Replace mox in unit tests with mock 2013-11-18 22:17:14 +09:00
test_portbindings.py nec plugin: Compare OFS datapath_id as hex int 2014-02-13 10:37:29 +00:00
test_router.py Adds support for L3 routing/NAT as a service plugin 2013-09-11 12:12:10 +02:00
test_security_group.py Merge "Remove uneeded variable AGENT_NAME" 2013-10-25 21:13:13 +00:00
test_trema_driver.py Replace mox in unit tests with mock 2013-11-18 22:17:14 +09:00
test_utils.py nec plugin: Compare OFS datapath_id as hex int 2014-02-13 10:37:29 +00:00