nova/nova/tests/unit/virt/libvirt
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
..
storage Move shred to privsep. 2017-10-23 09:36:28 +11:00
volume Fixes multi-registry config in Quobyte driver 2019-10-07 14:00:02 +00:00
__init__.py
fake_imagebackend.py libvirt: update logic to configure device for scsi controller 2017-07-03 03:23:53 -04:00
fake_libvirt_utils.py Change livesnapshot to true by default 2017-09-22 12:37:58 -04:00
fake_os_brick_connector.py Switch to using os-brick 2015-07-27 10:47:22 -07:00
fakelibvirt.py sync_guest_time: use the proper errno 2021-01-21 19:37:13 +00:00
test_blockinfo.py Modify the test case of get_disk_mapping_rescue_with_config 2018-01-12 14:08:51 +08:00
test_compat.py Workaround for race condition in libvirt 2015-03-14 20:17:41 -03:00
test_config.py add mtu to libvirt xml for ethernet and bridge types 2018-07-04 17:33:26 +01:00
test_designer.py add mtu to libvirt xml for ethernet and bridge types 2018-07-04 17:33:26 +01:00
test_driver.py libvirt: Remove reference to transient domain when detaching devices 2021-01-21 19:37:13 +00:00
test_fakelibvirt.py libvirt: Fix getting a wrong guest object 2017-08-23 19:55:12 +09:00
test_firewall.py Replaces uuid.uuid4 with uuidutils.generate_uuid() 2017-07-25 10:45:03 +05:30
test_guest.py libvirt: Remove reference to transient domain when detaching devices 2021-01-21 19:37:13 +00:00
test_host.py Encode libvirt domain XML in UTF-8 2018-02-08 15:45:59 -05:00
test_imagebackend.py Make RBD imagebackend flatten method idempotent 2020-02-19 11:25:37 +00:00
test_imagecache.py Move the dac_admin privsep code to a new location. 2017-09-18 23:14:11 +10:00
test_migration.py libvirt: QEMU native LUKS decryption for encrypted volumes 2018-01-23 10:47:05 +00:00
test_utils.py qemu-img do not use cache=none if no O_DIRECT support 2017-11-29 22:33:39 +00:00
test_vif.py Fix non-existent method of Mock 2019-08-16 10:27:22 +09:00