nova/nova/tests/unit/virt
Mohammed Naser 7b5cdd7ac0 Revert "Refine waiting for vif plug events during _hard_reboot"
This reverts commit e06ad602f3.

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 18:31:00 +00:00
..
disk Stop using mox in unit/virt/disk/test_api.py 2017-03-09 20:17:52 +07:00
hyperv propagate OSError to MigrationPreCheckError 2017-10-26 09:16:55 +00:00
image Use assert(Not)Equal instead of assertTrue(A == X) 2016-06-03 16:53:15 +01:00
ironic Pick ironic nodes without VCPU set 2017-10-20 09:25:46 +00:00
libvirt Revert "Refine waiting for vif plug events during _hard_reboot" 2018-03-19 18:31:00 +00:00
powervm hypervisor_hostname must match get_available_nodes 2017-06-20 16:34:38 -05:00
vmwareapi remove mox from unit/virt/vmwareapi/test_driver_api.py 2017-06-14 02:48:42 +00:00
xenapi XenAPI: Fix ValueError in test_slave_asks_master_to_add_slave_to_pool 2017-07-16 09:30:33 -04:00
__init__.py
fakelibosinfo.py Fix misuse of assertTrue in console and virt tests 2016-02-22 16:09:21 +09:00
test_block_device.py encryptors: Switch to os-brick encryptor classes 2017-04-25 13:51:41 +00:00
test_configdrive.py force_config_drive: StrOpt -> BoolOpt 2015-11-11 19:59:22 +00:00
test_driver.py Remove usage of parameter enforce_type 2017-04-17 20:23:19 +08:00
test_events.py
test_fake.py fake: fix public API signatures to match virt driver 2015-02-19 11:44:00 +00:00
test_firewall.py remove get_nw_info_for_instance from compute.utils 2017-06-13 13:30:06 +02:00
test_hardware.py Prefer non-PCI host nodes for non-PCI instances 2017-06-08 09:44:59 +01:00
test_imagecache.py Remove mox from tests/unit/virt/test_imagecache.py 2016-06-16 23:40:01 +00:00
test_images.py Bump prlimit cpu time for qemu from 2 to 8 2016-12-08 10:41:31 -05:00
test_netutils.py Remove unnecessary code 2017-07-28 06:01:21 +00:00
test_osinfo.py Do not attempt to load osinfo if we do not have os_distro 2017-03-23 22:07:03 -04:00
test_virt.py Remove mox from nova/tests/unit/virt/test_virt.py 2016-11-28 08:49:51 +00:00
test_virt_drivers.py libvirt: Check if domain is persistent before detaching devices 2017-06-07 06:25:37 -04:00
test_volumeutils.py Switch to using os-brick 2015-07-27 10:47:22 -07:00