vmware-nsx/neutron/db
Akihiro Motoki e9e4683024 Avoid long transaction in plugin.delete_ports()
db_plugin.delete_ports() called plugin.delete_port() under
a transaction. It leads to long transaction if plugin.delete_port
talks with external systems. This commit changes each delete_port
outside of a transaction to avoid longer transaction.

plugin.delete_ports is now called by release_dhcp_ports and
dhcp-agent ports can be deleted separately, so this changes
does not break the existing behavior.

delete_ports is renamed to delete_ports_by_device_id
to clarify the usage of this method.

NEC plugin already has this change and it is no longer needed.

_do_side_effect helper method in test_db_plugin is renamed
to more self-descriptive name.

Change-Id: Ied5883a57c7774c3b0778453d84c717b337f88c0
Closes-Bug: #1282925
Related-Bug: #1283522
2014-03-16 00:19:51 +09:00
..
firewall FWaaS - fix reordering of rules in policy 2013-09-17 23:46:56 -07:00
loadbalancer replace rest of q_exc to n_exc in code base 2014-03-03 17:42:20 -08:00
metering Fix MeteringLabel model to not clear router's tenant id on deletion 2013-11-12 19:09:29 +04:00
migration Merge "Add extraroute_db support for Cisco N1kv Plugin" 2014-03-15 01:22:57 +00:00
vpn VPNaaS Service Driver for Cisco CSR 2014-03-05 15:08:39 -05:00
__init__.py Update License Headers to replace Nicira with VMware 2014-02-27 08:11:15 +00:00
agents_db.py Use save_and_reraise_exception when reraise exception 2014-02-14 00:15:37 +09:00
agentschedulers_db.py Remove the warning for Scheduling Network 2013-11-12 15:56:30 +08:00
allowedaddresspairs_db.py Openvswitch update_port should return updated port info 2014-02-28 12:44:36 -06:00
api.py Update License Headers to replace Nicira with VMware 2014-02-27 08:11:15 +00:00
db_base_plugin_v2.py Avoid long transaction in plugin.delete_ports() 2014-03-16 00:19:51 +09:00
dhcp_rpc_base.py Avoid long transaction in plugin.delete_ports() 2014-03-16 00:19:51 +09:00
external_net_db.py replace rest of q_exc to n_exc in code base 2014-03-03 17:42:20 -08:00
extradhcpopt_db.py Adds delete of a extra_dhcp_opt on a port 2013-11-14 14:36:01 -07:00
extraroute_db.py ExtraRoute: fix _get_extra_routes_by_router_id() 2013-11-08 10:16:19 +04:00
l3_agentschedulers_db.py Add LeastRouters Scheduler to Neutron L3 Agent 2013-12-09 13:25:59 +01:00
l3_db.py Optimize floating IP status update 2014-03-11 17:10:37 -07:00
l3_gwmode_db.py Update License Headers to replace Nicira with VMware 2014-02-27 08:11:15 +00:00
l3_rpc_base.py Fix race condition in update_floatingip_statuses 2014-03-04 20:28:01 -08:00
model_base.py Apply Oslo ModelBase to NeutronBase 2013-07-08 10:14:26 +08:00
models_v2.py Notify nova when ports are ready 2014-03-13 17:19:21 -07:00
portbindings_base.py refactor port binding codes 2013-07-26 23:04:51 +08:00
portbindings_db.py Add support to request vnic type on port 2014-02-20 07:29:38 +02:00
portsecurity_db.py Update License Headers to replace Nicira with VMware 2014-02-27 08:11:15 +00:00
quota_db.py Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
routedserviceinsertion_db.py Support for NVP advanced FwaaS service 2013-09-17 10:18:22 -07:00
routerservicetype_db.py Service Type Framework refactoring 2013-07-25 21:47:30 +04:00
securitygroups_db.py Update License Headers to replace Nicira with VMware 2014-02-27 08:11:15 +00:00
securitygroups_rpc_base.py Merge "Rebind security groups only when they're updated" 2013-11-27 19:32:14 +00:00
servicetype_db.py LBaaS integration with service type framework 2013-09-03 23:05:33 +04:00
sqlalchemyutils.py replace rest of q_exc to n_exc in code base 2014-03-03 17:42:20 -08:00