nova/nova/tests/unit/virt/libvirt
Alexandre Arents f02899418d libvirt: make cross cell resize spawn from snapshot image
During a cross cell resize, we do an instance snapshot and
then we spawn() instance back on target cell.

Unfortunately, we mistakenly spawn back the instance to its original
image id, instead of using freshly created snapshot_id.

The change proposes to update instance.image_ref with snapshot_id
in order that spawn()->_create_image() uses it and set back
instance.image_ref after.

Note that for qcow2 backend case, we also need to rebase disk image
with its original backing file to avoid mismatch between
instance.image_ref and backing file, as we currently do in unshelve
context.

Change-Id: I0b81282eba8238d8b64a67e38cf9d6392de1f85c
Closes-Bug: #1906428
2020-12-11 13:02:09 +00:00
..
storage rbd: Move rbd_utils out of libvirt driver under nova.storage 2020-08-26 13:12:05 +01:00
volume Remove dead volume driver code 2020-08-07 13:56:28 -05:00
__init__.py
fake_imagebackend.py Merge "Functional tests for NUMA live migration" 2020-04-28 20:46:37 +00:00
fake_libvirt_data.py Also enable iommu for virtio controllers and video in libvirt 2019-12-10 11:01:08 +00:00
fake_os_brick_connector.py Switch to using os-brick 2015-07-27 10:47:22 -07:00
fakelibvirt.py Merge "Update pci stat pools based on PCI device changes" 2020-11-06 05:23:46 +00:00
test_blockinfo.py tests: Remove '_FakeImageService' 2020-09-16 11:31:23 +01:00
test_config.py Handle disabled CPU features to fix live migration failures 2020-10-16 11:25:14 +01:00
test_designer.py Fix virsh domifstat to get vhostuser vif statistics 2020-10-13 07:17:51 +00:00
test_driver.py libvirt: make cross cell resize spawn from snapshot image 2020-12-11 13:02:09 +00:00
test_fakelibvirt.py fakelibvirt: Remove nova-network remnants 2020-08-10 15:55:41 +01:00
test_guest.py Log stack trace when fails launching a defined domain 2020-09-23 12:18:12 +00:00
test_host.py libvirt: check for AMD SEV only on x86-64 2020-12-01 15:32:36 +00:00
test_imagebackend.py rbd: Move rbd_utils out of libvirt driver under nova.storage 2020-08-26 13:12:05 +01:00
test_imagecache.py Remove six.moves 2020-11-07 03:25:02 +00:00
test_migration.py libvirt: Remove MIN_LIBVIRT_FILE_BACKED_DISCARD_VERSION 2020-09-22 10:29:37 +01:00
test_utils.py Remove six.moves 2020-11-07 03:25:02 +00:00
test_vif.py Fix virsh domifstat to get vhostuser vif statistics 2020-10-13 07:17:51 +00:00