neutron/neutron
Kevin Benton fe3a2139a8 Macvtap: Check for no original port in is_live_migration
Change 6865f4d9f2 mistakenly
assumed that None would not be present for the 'original'
property on a PortContext. However, this is the default value
for the original field in PortContext, which is what is used
in the construction as part of the _create_port_db process
in ML2.

This resulted in binding failures for the macvtap mech drivers
due to an attribute error in cases like brand new ports.

This patch simply checks for None before trying to determine
if it's a live migration (which it isn't in the case of port creation).

Part of the issue is likely that the FakePortContext in the unit tests
was defaulting to an empty dict which is the not the same behavior as
the real PortContext.

Change-Id: I6659235a70aa4528fd21911c04e651194591e449
Closes-Bug: #1658802
(cherry picked from commit 3dddfa56db)
2017-06-02 09:16:03 +00:00
..
agent Fixed Attribute error in fullstack l3 tests 2017-05-31 11:00:49 -07: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 IP Conntrack Manager changes for FWaaS v2 2017-04-28 11:59:55 +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 "Add IPAllocations to the port fixed_ips" into stable/newton 2017-05-27 05:12:03 +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 Macvtap: Check for no original port in is_live_migration 2017-06-02 09:16:03 +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 Use correct retry mechanism in tags 2017-04-28 12:16:38 +00:00
tests Macvtap: Check for no original port in is_live_migration 2017-06-02 09:16:03 +00:00
__init__.py Hacking rule to check i18n usage 2016-03-30 21:28:37 -04:00
_i18n.py
auth.py
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