neutron/neutron
Kevin Benton fc563eaabe deepcopy binding and binding levels avoid expiration
Perform a deepcopy on the sqla objects passed into the PortContext
so we get detached versions of them safe to reference forever.
This is necessary because the PortContexts outlive the
transaction context managers they are creating in which means an
object can be expired and result in a query after a commit
(e.g. in bind_port_if_needed) that will fail and result in an
exception.

This required a few additional explicit session.merge calls to deal
with cases where touching the mech context was implicitly expected
to modify the DB state on the next commit.

Closes-Bug: #1669528
Change-Id: Ib5ba2daa80acba53c082bade1f61a3ee44ca41fc
2017-04-02 04:09:52 -07:00
..
agent Merge "Write vrrp_script before (re)starting keepalived" 2017-04-02 03:57:17 +00:00
api Merge "use neutron_lib's portbindings api-def" 2017-04-02 03:25:51 +00:00
callbacks Downgrade callback abortable event log to debug 2017-03-16 13:35:39 -07:00
cmd Agent common config 2017-03-15 09:52:18 -06:00
common Merge "Throttle SIGHUPs to keepalived" 2017-03-28 23:28:50 +00:00
conf Merge "Bump default quotas for ports, subnets, and networks" 2017-03-23 11:19:26 +00:00
core_extensions Adopt neutron-lib plugin directory 2016-11-23 04:45:33 -07:00
db Merge "use neutron_lib's portbindings api-def" 2017-04-02 03:25:51 +00:00
debug use neutron_lib's portbindings api-def 2017-03-31 09:16:22 -06:00
extensions Merge "use neutron_lib's portbindings api-def" 2017-04-02 03:25:51 +00:00
hacking Fix copy-paste error in hacking checks 2017-03-17 16:01:04 -07:00
ipam New enginefacade for networks, subnets. 2017-03-30 01:26:45 -07:00
locale Imported Translations from Zanata 2016-08-19 07:27:43 +00:00
notifiers Merge "Use registry.receives decorator in neutron.notifiers.nova" 2017-03-15 06:27:04 +00:00
objects Merge "Apply QoS policy on network:router_gateway" 2017-04-01 12:57:08 +00:00
pecan_wsgi Use new enginefacade for quota and provisioning blocks 2017-03-29 14:31:03 +00:00
plugins deepcopy binding and binding levels avoid expiration 2017-04-02 04:09:52 -07:00
privileged Do not raise an error deleting neighbour entry 2017-01-26 16:22:20 -05:00
quota Use new enginefacade for quota and provisioning blocks 2017-03-29 14:31:03 +00:00
scheduler Refactor L3 scheduler (unify code paths) 2017-01-26 23:05:06 +00:00
server Pecan: Get loaded by paste deploy 2017-02-17 14:54:27 -06:00
services Merge "Update metering agent to use stevedore alias for driver" 2017-04-02 03:50:09 +00:00
tests deepcopy binding and binding levels avoid expiration 2017-04-02 04:09:52 -07:00
__init__.py Hacking rule to check i18n usage 2016-03-30 21:28:37 -04:00
_i18n.py Move i18n to _i18n, as per oslo_i18n guidelines 2015-12-01 19:29:10 -07:00
auth.py Spin off context module 2017-03-06 16:25:29 +00:00
manager.py Use is_loaded in manager.init 2017-03-30 14:53:20 +00:00
neutron_plugin_base_v2.py Revert "Revert "Remove threading before process forking"" 2016-06-02 21:26:08 +00:00
opts.py Agent common config 2017-03-15 09:52:18 -06:00
policy.py Spin off context module 2017-03-06 16:25:29 +00:00
service.py Spin off context module 2017-03-06 16:25:29 +00:00
version.py
worker.py Move AgentStatusCheckWorker to PeriodicWorker 2016-11-17 15:31:19 -08:00
wsgi.py Fix some reST field lists in docstrings 2017-03-23 08:50:01 +08:00