nova/nova/tests/unit/virt/libvirt
Matthew Booth c9c0b1b4b5 Fix backing file detection in libvirt live snapshot
When doing a live snapshot, the libvirt driver creates an intermediate
qcow2 file with the same backing file as the original disk. However,
it calls qemu-img info without specifying the input format explicitly.
An authenticated user can write data to a raw disk which will cause
this code to misinterpret the disk as a qcow2 file with a
user-specified backing file on the host, and return an arbitrary host
file as the backing file.

This bug does not appear to result in a data leak in this case, but
this is hard to verify. It certainly results in corrupt output.

Closes-Bug: #1524274

(cherry picked from commit 915fdbbfb8)

Conflicts:
    nova/virt/images.py

Liberty does not catch processutils.ProcessExecutionError in
qemu_img_info.

Change-Id: I11485f077d28f4e97529a691e55e3e3c0bea8872
2016-01-14 11:57:31 +00:00
..
storage Fix attibute error when cloning raw images in Ceph 2015-11-09 08:36:08 +00:00
volume Merge "libvirt:Rsync compression removed" 2015-09-10 17:50:22 +00:00
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
fake_imagebackend.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
fake_libvirt_utils.py Fix backing file detection in libvirt live snapshot 2016-01-14 11:57:31 +00:00
fake_os_brick_connector.py Switch to using os-brick 2015-07-27 10:47:22 -07:00
fakelibvirt.py Limit parallel live migrations in progress 2015-08-13 07:06:56 -07:00
test_blockinfo.py libvirt: check if ImageMeta.disk_format is set before accessing it 2015-10-02 14:47:46 -07:00
test_compat.py Workaround for race condition in libvirt 2015-03-14 20:17:41 -03:00
test_config.py Merge "libvirt-vif: Allow to configure a script on bridge interface" 2015-09-16 00:04:37 +00:00
test_designer.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
test_driver.py Fix backing file detection in libvirt live snapshot 2016-01-14 11:57:31 +00:00
test_fakelibvirt.py Removed unused variables 2015-05-20 14:31:33 +03:00
test_firewall.py libvirt: retry to undefine network filters during _post_live_migration 2015-04-29 10:48:23 -07:00
test_guest.py libvirt:update live_migration_monitor to use Guest 2015-09-15 10:09:53 +02:00
test_host.py libvirt: introduce method get_guest to Host object 2015-06-04 07:04:38 -04:00
test_imagebackend.py compute: improve exceptions related to disk size checks 2015-08-19 12:54:56 -07:00
test_imagecache.py Get py34 subunit.run test discovery to work 2015-07-28 10:40:56 +00:00
test_utils.py Fix format conversion in libvirt snapshot 2016-01-12 15:13:48 +00:00
test_vif.py libvirt: convert driver to use nova.objects.ImageMeta 2015-08-24 12:37:29 +01:00