nova/nova/tests/unit/virt
Lee Yarwood be83c7ecc0 libvirt: Remove reference to transient domain when detaching devices
When detaching a device from a domain we first attempt to remove the
device from both the persistent and live configs before looping to
ensure the device has really been detached from the running live config.

Previously when this failed we logged an error message that suggested
that this was due to issues detaching the device from a transient
domain, however this is not the case as the domain is persistent.

This change simply updates the error and associated comments to only
reference the live config of the domain.

Additionally a DEBUG line claiming that a device has been successfully
detached is now only logged once the device is removed from the live
config, hopefully avoiding any confusion from this line been logged
each time an attempt is made to detach the device.

Change-Id: If869470216600c303d47cf79f12c4fc88abcf813
(cherry picked from commit 636c7461de)
2021-01-21 19:37:13 +00:00
..
disk lxc: make use of filter python3 compatible 2019-10-02 13:41:45 +00:00
hyperv Fix 'has_calls' method calls in unit tests 2019-08-20 12:38:25 +09:00
image Use assert(Not)Equal instead of assertTrue(A == X) 2016-06-03 16:53:15 +01:00
ironic ironic: add instance_uuid before any other spawn activity 2020-07-28 10:40:05 +01:00
libvirt libvirt: Remove reference to transient domain when detaching devices 2021-01-21 19:37:13 +00:00
powervm Use correct arguments in task inits 2018-02-13 17:05:21 -05:00
vmwareapi Fix wrong assertions in unit tests 2019-08-20 14:11:51 +09:00
xenapi xenapi/agent: Change openssl error handling 2019-04-30 09:07:53 -04:00
__init__.py
fakelibosinfo.py Stop sending bad values from libosinfo to libvirt 2019-10-11 09:34:10 +01:00
test_block_device.py block_device: Rollback volumes to in-use on DeviceDetachFailed 2018-08-10 16:38:18 +01:00
test_configdrive.py
test_driver.py Remove usage of parameter enforce_type 2017-04-17 20:23:19 +08:00
test_events.py
test_fake.py
test_firewall.py remove get_nw_info_for_instance from compute.utils 2017-06-13 13:30:06 +02:00
test_hardware.py [Stable Only] hardware: Handle races during pinning 2019-03-27 12:29:05 +00:00
test_imagecache.py Remove mox from tests/unit/virt/test_imagecache.py 2016-06-16 23:40:01 +00:00
test_images.py mock utils.execute() in qemu-img unit test 2018-06-11 13:31:44 +00:00
test_netutils.py Remove unnecessary code 2017-07-28 06:01:21 +00:00
test_osinfo.py Stop sending bad values from libosinfo to libvirt 2019-10-11 09:34:10 +01:00
test_virt.py Rename block_device_info_get_root 2018-01-11 20:46:13 +00:00
test_virt_drivers.py libvirt: move checking CONF.my_ip to init_host() 2019-07-22 16:30:12 -04:00