nova/nova/tests/unit/virt/libvirt
Matthew Booth 915fdbbfb8 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

Change-Id: I11485f077d28f4e97529a691e55e3e3c0bea8872
2016-01-14 11:41:56 +00:00
..
storage Remove unused logging import and LOG global var 2015-12-25 18:01:12 +08:00
volume libvirt: add discard support for attached volumes 2016-01-08 13:07:36 -08:00
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
fake_imagebackend.py libvirt: Split out resize_image logic from create_image 2015-09-14 18:05:28 -07:00
fake_libvirt_utils.py Fix backing file detection in libvirt live snapshot 2016-01-14 11:41:56 +00:00
fake_os_brick_connector.py Switch to using os-brick 2015-07-27 10:47:22 -07:00
fakelibvirt.py libvirt: update to min required version to 0.10.2 2016-01-07 19:29:01 -08:00
test_blockinfo.py Convert nova.tests.unit.image.fake.stub_out_image_service to use stub_out 2016-01-06 16:42:20 -08:00
test_compat.py Workaround for race condition in libvirt 2015-03-14 20:17:41 -03:00
test_config.py libvirt: add cpu schedular priority config 2015-11-03 00:42:28 -05:00
test_designer.py libvirt: add unit tests for the designer utility methods 2015-09-21 11:25:53 -07:00
test_driver.py Fix backing file detection in libvirt live snapshot 2016-01-14 11:41:56 +00:00
test_fakelibvirt.py Replaces longs with ints 2015-12-07 03:36:18 +02:00
test_firewall.py Reduce the number of db/rpc calls to get instance rules 2015-12-23 19:17:40 +01:00
test_guest.py Merge "Add retry logic for detaching device using LibVirt" 2015-12-19 00:39:42 +00:00
test_host.py Fix unit tests on Mac OS X 2016-01-08 19:37:57 -05:00
test_imagebackend.py Replaces contextlib.nested with test.nested 2015-10-08 23:13:30 +03:00
test_imagecache.py Change test function name to make more sense 2015-11-18 00:46:44 +08:00
test_utils.py Fix format conversion in libvirt snapshot 2016-01-07 09:50:54 +00:00
test_vif.py Implements proper UUID format for the ComputeAPITestCase 2015-12-08 08:59:38 +01:00