nova/nova/tests/unit/virt/libvirt
Lee Yarwood 55e2c851f1 libvirt: Check if domain is persistent before detaching devices
Previously the libvirt driver would always assume that it was only
detaching devices (volumes or virtual interfaces) from a persistent
domain however that is not always the case.

For example when rolling back from a live migration an attempt is made
to detach volumes from the transient destination domain that is being
cleaned up. This attempt would fail with the previous assumption of the
domain being persistent in place.

This change introduces a simple call to has_persistent_configuration
within detach_device_with_retry to confirm the state of the domain
before attempting to detach.

Closes-Bug: #1669857
Closes-Bug: #1696125
Change-Id: I95948721a0119f5f54dbe50d4455fd47d422164b
(cherry picked from commit 563c0927d1)
2017-08-08 11:42:30 -04:00
..
storage Merge "Fix decoding of encryption key passed to dmcrypt" into stable/ocata 2017-05-23 23:31:32 +00:00
volume libvirt: handle missing rbd_secret_uuid from old connection info 2017-06-12 09:16:49 -04:00
__init__.py
fake_imagebackend.py [TrivialFix] Fix comment and function name typo error 2016-12-22 15:20:23 +08:00
fake_libvirt_utils.py libvirt: ephemeral disk support for virtuozzo containers 2017-01-26 14:19:08 +03:00
fake_os_brick_connector.py Switch to using os-brick 2015-07-27 10:47:22 -07:00
fakelibvirt.py Use VIR_DOMAIN_BLOCK_REBASE_COPY_DEV when rebasing 2017-06-08 01:00:05 +00:00
test_blockinfo.py Merge "Fix root_device_name for Xen" 2017-01-31 18:56:46 +00:00
test_compat.py Workaround for race condition in libvirt 2015-03-14 20:17:41 -03:00
test_config.py libvirt: Use the mirror element to detect job completion 2017-01-25 11:35:47 +00:00
test_designer.py libvirt: conditionally set script path for ethernet vif types 2017-03-21 15:09:28 -04:00
test_driver.py libvirt: Check if domain is persistent before detaching devices 2017-08-08 11:42:30 -04:00
test_fakelibvirt.py [py35] Fixes to get rally scenarios working 2017-01-13 15:44:00 +00:00
test_firewall.py Port libvirt.test_firewall to Python 3 2017-01-05 10:26:19 +00:00
test_guest.py libvirt: Check if domain is persistent before detaching devices 2017-08-08 11:42:30 -04:00
test_host.py libvirt: Flatten 'get_domain' function 2016-12-14 18:47:46 +00:00
test_imagebackend.py Merge "Remove mox from unit/virt/libvirt/test_imagebackend.py (5)" 2017-01-28 00:24:10 +00:00
test_imagecache.py conf: Remove config option compute_ manager 2016-12-08 20:05:52 +08:00
test_migration.py Change exponential function to linear 2017-01-26 15:24:20 +00:00
test_utils.py Merge "libvirt: workaround findmnt behaviour change" 2017-02-03 13:37:23 +00:00
test_vif.py libvirt: conditionally set script path for ethernet vif types 2017-03-21 15:09:28 -04:00