nova/nova/tests/unit/virt
Matthew Booth ea9bf5216b libvirt: Don't VIR_MIGRATE_NON_SHARED_INC without migrate_disks
If we specify block migration, but there are no disks which actually
require block migration we call libvirt's migrateToURI3() with
VIR_MIGRATE_NON_SHARED_INC in flags and an empty migrate_disks in
params. Libvirt interprets this to be the default block migration
behaviour of "block migrate all writeable disks". However,
migrate_disks may only be empty because we filtered attached volumes
out of it, in which case libvirt will block migrate attached volumes.
This is a data corruptor.

This change addresses the issue at the point we call migrateToURI3().
As we never want the default block migration behaviour, we can safely
remove the flag if the list of disks to migrate is empty.

Change-Id: I9b545ca8aa6dd7b41ddea2d333190c9fbed19bc1
Resolves-bug: #1719362
2017-11-03 09:36:11 +00:00
..
disk Move blkid calls to privsep. 2017-10-26 07:16:09 +11:00
hyperv Merge "hyperv: report disk_available_least field" 2017-10-24 06:19:45 +00:00
image Use assert(Not)Equal instead of assertTrue(A == X) 2016-06-03 16:53:15 +01:00
ironic Merge "Pick ironic nodes without VCPU set" 2017-10-19 20:08:06 +00:00
libvirt libvirt: Don't VIR_MIGRATE_NON_SHARED_INC without migrate_disks 2017-11-03 09:36:11 +00:00
powervm Send Allocations to spawn 2017-10-18 06:43:57 -05:00
vmwareapi Send Allocations to spawn 2017-10-18 06:43:57 -05:00
xenapi rt: Implement XenAPI get_inventory() method 2017-10-27 14:26:18 +00:00
__init__.py
fakelibosinfo.py Fix misuse of assertTrue in console and virt tests 2016-02-22 16:09:21 +09:00
test_block_device.py Add attachment_get to refresh_connection_info 2017-10-18 23:10:38 -04: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 Trim the fat from InstanceInfo 2017-07-25 10:27:23 -05:00
test_imagecache.py Remove mox from tests/unit/virt/test_imagecache.py 2016-06-16 23:40:01 +00:00
test_images.py Bump prlimit cpu time for qemu from 2 to 8 2016-12-08 10:41:31 -05:00
test_netutils.py Remove unnecessary code 2017-07-28 06:01:21 +00:00
test_osinfo.py Do not attempt to load osinfo if we do not have os_distro 2017-03-23 22:07:03 -04:00
test_virt.py Move kpartx calls to privsep. 2017-10-24 12:24:16 +00:00
test_virt_drivers.py Send Allocations to spawn 2017-10-18 06:43:57 -05:00