nova/nova/tests/unit/virt/libvirt
Lee Yarwood 022ea28194 libvirt: Ignore volume exceptions during post_live_migration
Previously errors while disconnecting volumes from the source host
during post_live_migration within LibvirtDriver would result in the
overall failure of the migration. This would also mean that while the
instance would be running on the destination it would still be listed as
running on the source within the db.

This change simply ignores any exceptions raised while attempting to
disconnect volumes on the source. These errors can be safely ignored as
they will have no impact on the running instance on the destination.

In the future Nova could wire up the force and ignore_errors kwargs when
calling down into the associated os-brick connectors to help avoid this.

NOTE(mriedem): The driver.py change is slightly different from Train
because pep F841 was not enforced starting in Train but is in Stein.

Closes-Bug: #1843639
Change-Id: Ieff5243854321ec40f642845e87a0faecaca8721
(cherry picked from commit ac68cffd43)
(cherry picked from commit ff36b6d97f)
2019-10-25 20:47:27 +00:00
..
storage Fix python3 compatibility of rbd get_fsid 2019-06-18 12:33:08 +01:00
volume Fixes multi-registry config in Quobyte driver 2019-05-24 16:03:52 +02:00
__init__.py
fake_imagebackend.py Pass disk_info dict to libvirt_info 2018-11-02 13:54:13 +00:00
fake_libvirt_utils.py libvirt: Use SATA bus for cdrom devices when using Q35 machine type 2019-06-13 15:56:58 +00:00
fake_os_brick_connector.py Switch to using os-brick 2015-07-27 10:47:22 -07:00
fakelibvirt.py libvirt: stub logging of host capabilities 2019-09-14 09:39:37 -04:00
test_blockinfo.py libvirt: Use SATA bus for cdrom devices when using Q35 machine type 2019-06-13 15:56:58 +00:00
test_compat.py Workaround for race condition in libvirt 2015-03-14 20:17:41 -03:00
test_config.py Use assertXmlEqual() helper for all XML comparison tests 2019-03-08 11:40:41 +00:00
test_designer.py add mtu to libvirt xml for ethernet and bridge types 2018-06-06 09:39:40 -04:00
test_driver.py libvirt: Ignore volume exceptions during post_live_migration 2019-10-25 20:47:27 +00:00
test_fakelibvirt.py Use assertXmlEqual() helper for all XML comparison tests 2019-03-08 11:40:41 +00:00
test_firewall.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_guest.py Avoid logging traceback when detach device not found 2019-07-25 22:15:50 +00:00
test_host.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_imagebackend.py libvirt: flatten rbd images when unshelving an instance 2019-06-28 10:07:34 +01:00
test_imagecache.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_migration.py Use assertXmlEqual() helper for all XML comparison tests 2019-03-08 11:40:41 +00:00
test_utils.py Move libvirt calculation of machine type to utils.py 2019-03-19 22:28:33 +00:00
test_vif.py Ignore hw_vif_type for direct, direct-physical vNIC types 2019-07-02 14:10:53 +00:00