neutron/neutron/tests
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
..
common Throttle SIGHUPs to keepalived 2017-03-28 03:37:09 +00:00
contrib Merge "Switched gate to new neutron-* service names" 2017-04-02 03:49:55 +00:00
etc Pecan: Get loaded by paste deploy 2017-02-17 14:54:27 -06:00
fullstack use neutron_lib's portbindings api-def 2017-03-31 09:16:22 -06:00
functional use neutron_lib's portbindings api-def 2017-03-31 09:16:22 -06:00
retargetable Spin off context module 2017-03-06 16:25:29 +00:00
tempest Merge "Log instance interface addrs in subport test" 2017-04-02 03:05:49 +00:00
unit deepcopy binding and binding levels avoid expiration 2017-04-02 04:09:52 -07:00
var
__init__.py Avoid eventlet monkey patching for the tempest plugin 2016-04-29 22:47:24 -05:00
base.py Fix some reST field lists in docstrings 2017-03-23 08:50:01 +08:00
fake_notifier.py Pass serializer to oslo.messaging Notifier 2014-06-20 14:58:28 +02:00
post_mortem_debug.py Cleanup recent generalization in post mortem debugger 2014-12-04 15:28:11 +01:00
tools.py Decouple hook and func registration from CommonDbMixin 2017-03-11 18:04:11 -05:00