neutron/neutron/db
Kevin Benton b25f6448d5 Ensure ML2's create/update_port methods not in transaction
This adds a check to the ML2 create and update port methods which
are called by other services to manipulate ports. This check prevents
them from passing in a context that is already part of an ongoing DB
session because we do not want DB rollbacks to be allowed after the
ML2 plugin calls postcommit methods on drivers.

This also adds a temporary hack to set an attribute on the context
to skip this check to accomadate two L3 code-paths and a subnet
code-path that have port manipulations entangled in transactions.
This attribute will ultimately be removed once these paths are
refactored.

Closes-Bug: #1540844
Change-Id: I5aa099c2264636336ab0b76c0826b506e2dc44b6
2016-08-10 04:03:27 +00:00
..
allowed_address_pairs Integrate the port allowed address pairs VersionedObject in Neutron 2016-05-20 15:18:22 +02:00
availability_zone Trival: Remove unused logging import 2015-12-26 12:49:56 +08:00
extra_dhcp_opt Integrate the Extra Dhcp Opt VersionedObject in Neutron 2016-04-07 16:44:33 +01:00
metering Rename DB columns: tenant -> project 2016-08-03 14:34:37 +00:00
migration Merge "Add a unique key to port_id in routerports table" 2016-08-09 23:19:16 +00:00
models Add devref for Relocating DB models 2016-08-09 15:55:18 +02:00
network_dhcp_agent_binding Make pep8 job great again 2016-06-21 16:23:51 +00:00
port_security objects: introduce NetworkPortSecurity object 2016-06-27 18:35:47 +02:00
qos Rename DB columns: tenant -> project 2016-08-03 14:34:37 +00:00
quota Rename DB columns: tenant -> project 2016-08-03 14:34:37 +00:00
__init__.py Update License Headers to replace Nicira with VMware 2014-02-27 08:11:15 +00:00
address_scope_db.py Rename DB columns: tenant -> project 2016-08-03 14:34:37 +00:00
agents_db.py Merge "Refactor the rpc callback version discovery mechanism" 2016-06-09 12:40:20 +00:00
agentschedulers_db.py Suppresses a warning when no agents are configured 2016-08-01 18:12:57 -04:00
allowedaddresspairs_db.py Integrate the port allowed address pairs VersionedObject in Neutron 2016-05-20 15:18:22 +02:00
api.py Merge "Log full exception before retry in decorator" 2016-08-09 21:40:56 +00:00
common_db_mixin.py Use paginate_query from oslo_db 2016-04-27 03:12:24 +00:00
db_base_plugin_common.py Refactor DNS integration out of DB core plugin 2016-07-26 07:33:50 +00:00
db_base_plugin_v2.py Ensure ML2's create/update_port methods not in transaction 2016-08-10 04:03:27 +00:00
dns_db.py Refactor DNS integration out of DB core plugin 2016-07-26 07:33:50 +00:00
dvr_mac_db.py Obsolete mac_generation_retries and deprecate the option 2016-06-20 12:31:30 -06:00
external_net_db.py Fix update target tenant RBAC external path 2016-04-29 23:27:12 -07:00
extradhcpopt_db.py Integrate the Extra Dhcp Opt VersionedObject in Neutron 2016-04-07 16:44:33 +01:00
extraroute_db.py Fix the context passed to get_subnets in _validate_routes 2016-03-11 00:39:32 +00:00
flavors_db.py Remove references to model_base through models_v2 2016-01-06 16:12:29 -07:00
ipam_backend_mixin.py Merge "Prevent port update from binding a host where IPs won't work" 2016-07-26 22:25:48 +00:00
ipam_non_pluggable_backend.py Remove IP availability range recalculation logic 2016-06-22 09:21:42 -07:00
ipam_pluggable_backend.py Merge "Do not rewrite original exception for IPAM part 2" 2016-06-22 19:08:26 +00:00
l3_agentschedulers_db.py Neutron-lib: use the L3_AGENT* definitions from neutron-lib 2016-08-01 06:50:11 -07:00
l3_attrs_db.py Ensure agent binding modules are loaded 2016-01-10 14:09:38 +00:00
l3_db.py Ensure ML2's create/update_port methods not in transaction 2016-08-10 04:03:27 +00:00
l3_dvr_db.py Ensure ML2's create/update_port methods not in transaction 2016-08-10 04:03:27 +00:00
l3_dvr_ha_scheduler_db.py Remove unused LOG 2016-07-05 15:22:13 +08:00
l3_dvrscheduler_db.py Neutron-lib: use the L3_AGENT* definitions from neutron-lib 2016-08-01 06:50:11 -07:00
l3_gwmode_db.py Trival: Remove unused logging import 2015-12-26 12:49:56 +08:00
l3_hamode_db.py Delete HA network if last HA router is migrated 2016-08-07 11:34:49 +00:00
l3_hascheduler_db.py Add availability_zone support for router 2015-12-04 12:32:42 +09:00
model_base.py Rename DB columns: tenant -> project 2016-08-03 14:34:37 +00:00
models_v2.py Increment revision numbers on object changes 2016-07-27 12:01:55 -07:00
netmtu_db.py Calculate MTU on every network fetch instead of on create 2016-07-20 13:26:50 +02:00
network_ip_availability_db.py IP Availability: remove unused imports 2016-03-01 07:06:10 -08:00
portbindings_base.py Remove @author(s) from copyright statements 2014-09-15 21:40:09 +09:00
portbindings_db.py Use converters and validators from neutron-lib 2016-04-24 19:13:10 -04:00
portsecurity_db.py Use converters and validators from neutron-lib 2016-04-24 19:13:10 -04:00
portsecurity_db_common.py objects: introduce NetworkPortSecurity object 2016-06-27 18:35:47 +02:00
provisioning_blocks.py Check for provisioning blocks before updating port up 2016-07-09 18:00:18 +00:00
quota_db.py Create packages for quota modules 2015-07-28 11:55:01 -07:00
rbac_db_mixin.py Use exceptions from neutron-lib 2016-04-21 21:29:44 -04:00
rbac_db_models.py Rename DB columns: tenant -> project 2016-08-03 14:34:37 +00:00
securitygroups_db.py Rename DB columns: tenant -> project 2016-08-03 14:34:37 +00:00
securitygroups_rpc_base.py Use IPv6_LLA_PREFIX from neutron-lib 2016-05-29 08:29:43 -07:00
segments_db.py Create segment_host mapping after new network 2016-06-30 18:08:16 -06:00
servicetype_db.py Add method to get service provider names by resources 2016-05-12 07:40:45 -07:00
sqlalchemytypes.py Hacking rule to check i18n usage 2016-03-30 21:28:37 -04:00
sqlalchemyutils.py Use paginate_query from oslo_db 2016-04-27 03:12:24 +00:00
standardattrdescription_db.py Add a description field to all standard resources 2016-03-05 02:29:35 +00:00
tag_db.py Add filter for resource tag 2016-03-01 20:47:12 +00:00
vlantransparent_db.py Moving VLAN Transparency support from core to extension 2015-04-08 08:35:13 -07:00