nova/nova/virt
Mohammed Naser 2e03eae67d Revert "Refine waiting for vif plug events during _hard_reboot"
This reverts commit 5a10047f9d.

This gets us back to Ib0cf5d55750f13d0499a570f14024dca551ed4d4
which was meant to address an issue introduced
by Id188d48609f3d22d14e16c7f6114291d547a8986.

So we essentially had three changes:

1. Hard reboot would blow away volumes and vifs and then wait for the
   vifs to be plugged; this caused a problem for some vif types (
   linuxbridge was reported) because the event never came and we
   timed out.

2. To workaround that, a second change was made to simply not wait for
   vif plugging events.

3. Since #2 was a bit heavy-handed for a problem that didn't impact
   openvswitch, another change was made to only wait for non-bridge vif
   types, so we'd wait for OVS.

But it turns out that opendaylight is an OVS vif type and doesn't send
events for plugging the vif, only for binding the port (and we don't
re-bind the port during reboot). There is also a report of this being a
problem for other types of ports, see
If209f77cff2de00f694b01b2507c633ec3882c82.

So rather than try to special-case every possible vif type that could
be impacted by this, we are simply reverting the change so we no longer
wait for vif plugged events during hard reboot.

Note that if we went back to Id188d48609f3d22d14e16c7f6114291d547a8986
and tweaked that to not unplug/plug the vifs we wouldn't have this
problem either, and that change was really meant to deal with an
encrypted volume issue on reboot. But changing that logic is out of the
scope of this change. Alternatively, we could re-bind the port during
reboot but that could have other implications, or neutron could put
something into the port details telling us which vifs will send events
and which won't, but again that's all outside of the scope of this
patch.

Change-Id: Ib3f10706a7191c58909ec1938042ce338df4d499
Closes-Bug: #1755890
2018-03-19 14:10:30 -04:00
..
disk Merge "Don't launch guestfs in a thread pool if guestfs.debug is enabled" 2018-01-31 13:30:44 +00:00
hyperv hyper-v: Logs tips on PortBindingFailed 2018-03-07 17:00:02 +00:00
image libvirt: virtuozzo instance resize support 2016-06-28 22:13:49 +03:00
ironic Add resource_class to fields in ironic node cache 2018-02-20 09:13:21 +00:00
libvirt Revert "Refine waiting for vif plug events during _hard_reboot" 2018-03-19 14:10:30 -04:00
powervm Use correct arguments in task inits 2018-02-13 17:05:21 -05:00
vmwareapi Pass user context to virt driver when detaching volume 2018-03-06 14:23:54 -05:00
xenapi Pass user context to virt driver when detaching volume 2018-03-06 14:23:54 -05:00
__init__.py Declare nova.virt namespace 2016-04-28 15:01:44 +00:00
block_device.py Pass user context to virt driver when detaching volume 2018-03-06 14:23:54 -05:00
configdrive.py Cleanup mount / umount and associated rmdir calls 2017-10-18 17:52:58 +11:00
driver.py Pass user context to virt driver when detaching volume 2018-03-06 14:23:54 -05:00
event.py
fake.py Pass user context to virt driver when detaching volume 2018-03-06 14:23:54 -05:00
firewall.py Merge "Remove translation of log messages" 2017-06-20 21:16:49 +00:00
hardware.py Merge "De-duplicate _numa_get_flavor_XXX_map_list" 2018-02-01 21:38:15 +00:00
imagecache.py Rename ImageCacheManager._list_base_images to _scan_base_images 2016-05-26 14:45:42 +01:00
images.py qemu-img do not use cache=none if no O_DIRECT support 2017-11-29 22:33:39 +00:00
interfaces.template
netutils.py provide interface-scoped nameserver information 2017-07-19 21:08:59 -04:00
osinfo.py Remove translation of log messages 2017-06-13 11:20:28 +07:00
storage_users.py Remove translation of log messages 2017-06-13 11:20:28 +07:00
virtapi.py Remove unused provider firewall rules functionality in nova 2016-02-01 15:50:04 +01:00