55e2c851f1
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
|
||
---|---|---|
.. | ||
storage | ||
volume | ||
__init__.py | ||
fake_imagebackend.py | ||
fake_libvirt_utils.py | ||
fake_os_brick_connector.py | ||
fakelibvirt.py | ||
test_blockinfo.py | ||
test_compat.py | ||
test_config.py | ||
test_designer.py | ||
test_driver.py | ||
test_fakelibvirt.py | ||
test_firewall.py | ||
test_guest.py | ||
test_host.py | ||
test_imagebackend.py | ||
test_imagecache.py | ||
test_migration.py | ||
test_utils.py | ||
test_vif.py |