neutron/neutron
venkata anil 20b9b89343 Fix DetachedInstanceError on subnet delete
While trying to delete subnets, some failed with DetachedInstanceError,
because 'port' is not part of 'IPAllocation' object when accessed
outside the DB session(in which 'IPAllocation' object was created).

To avoid this error, we call get_port explicitly before using the port.
This issue is not seen on master branch as recent code refactor[1] is
also calling get_port there.

[1] https://review.openstack.org/#/c/428774/

Closes-bug: #1672701
Change-Id: I924fa7e36ea9e45bf0ef3480972341a851bda86c
(cherry picked from commit b9242c348c)
2017-03-27 13:20:13 +00:00
..
agent Merge "Fix iptables rules for Prefix Delegated subnets" into stable/newton 2017-03-18 22:01:02 +00:00
api Skip native DHCP notifications on status change 2017-02-18 13:24:25 +00:00
callbacks openvswitch agent: add OVS_RESTARTED event 2017-03-10 15:43:16 +01:00
cmd Disable process monitor for keepalived test 2017-03-09 15:55:18 +00:00
common Remove recursion from import_modules_recursively 2016-10-22 15:08:24 +00:00
conf DHCP: remove deprecated config dhcp_lease_time 2016-09-08 04:18:09 -07:00
core_extensions Respond negatively to tenant detachment of enforced QoS policies 2016-05-16 21:54:15 +00:00
db Merge "l3scheduler: create ha_vr_id more robustly" into stable/newton 2017-03-21 12:22:25 +00:00
debug Replace device owners hard coded strings to neutron_lib constants 2016-07-12 04:11:35 -04:00
extensions Disallow specifying too long name and description for qos 2017-01-24 10:12:21 +00:00
hacking Forbid importing neutron.tests.* from outside tests subtree 2016-09-20 01:43:19 +00:00
ipam Merge "Catch DBReferenceError in IPAM and convert to SubnetNotFound" 2016-09-16 07:09:25 +00:00
locale Imported Translations from Zanata 2017-02-06 08:23:32 +00:00
notifiers Use singleton for Nova notifier 2016-09-09 05:12:03 -07:00
objects Extend project_id in object dicts (Newton only) 2016-10-12 02:13:42 +00:00
pecan_wsgi Merge "Make DHCP notifier use core resource events" 2016-09-14 21:11:53 +00:00
plugins Fix DetachedInstanceError on subnet delete 2017-03-27 13:20:13 +00:00
quota Merge "Mark quota operations as retriable" 2016-09-13 20:34:31 +00:00
scheduler l3scheduler: create ha_vr_id more robustly 2017-03-10 17:16:59 +01:00
server Revert "Revert "Remove threading before process forking"" 2016-06-02 21:26:08 +00:00
services LB Trunk: Stop matching MAC of subport to port model 2017-03-04 01:35:39 +00:00
tests Fix DetachedInstanceError on subnet delete 2017-03-27 13:20:13 +00: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 Consume ConfigurableMiddleware from oslo_middleware 2015-10-08 17:59:43 +00:00
context.py Use context from_environ to load contexts 2016-07-12 13:49:41 +10:00
manager.py Pecan: bind attribute map to controllers 2016-05-26 06:13:53 +00:00
neutron_plugin_base_v2.py Revert "Revert "Remove threading before process forking"" 2016-06-02 21:26:08 +00:00
opts.py Include [agent] extensions option into ovs/linuxbridge agent files 2016-08-24 16:41:03 +00:00
policy.py Prevent use filter(lambda obj: test(obj), data) 2016-09-14 16:23:32 +07:00
service.py Merge "Use dispose_pool() from oslo.db" 2016-08-26 22:03:41 +00:00
version.py
worker.py Remove notification for process event 2016-06-28 11:49:31 -07:00
wsgi.py Merge "Use dispose_pool() from oslo.db" 2016-08-26 22:03:41 +00:00