nova/nova/virt/libvirt
Nikola Dipanov cbeb5e5188 libvirt: Fix root disk leak in live mig
This patch makes sure that _create_images_and_backing method of the
libvirt driver (called in several places, but most problematic one is
the call in the pre_live_migration method) creates all the files the
instance needs that are not present.

Prioir to this patch - the method would only attempt to download the
image, and if it did so with the path of the ephemeral drives, it could
expose the image to other users as an ephemeral devices. See the related
bug for more detaiis.

After this patch - we properly distinguish between image, ephemeral and
swap files, and make sure that the imagebackend does the correct thing.

Closes-bug: #1251590

Co-authored-by: Loganathan Parthipan <parthipan@hp.com>

This patch also includes part of commit
65386c9191, not cherry-picked as a whole
due to the fact that it is a trivial change, and to avoud the
proliferation of patches needed to fix this bug.

(cherry picked from commit c69a619668b5f44e94a8fe1a23f3d887ba2834d7)

Conflicts:
	nova/tests/test_libvirt.py
	nova/virt/libvirt/driver.py

Change-Id: I78aa2f4243899db4f4941e77014a7e18e27fc63e
2014-01-27 12:19:47 +01:00
..
__init__.py Fix IBM copyright strings 2013-03-01 14:18:23 -05:00
blockinfo.py Config drive attached as cdrom 2013-07-30 22:21:27 -07:00
config.py Add libvirt XML schema support for resource tuning parameters 2013-02-17 11:57:03 +08:00
designer.py Add inst_type parameter 2013-07-23 21:08:26 -04:00
driver.py libvirt: Fix root disk leak in live mig 2014-01-27 12:19:47 +01:00
firewall.py Refactor nwfilter parameters 2013-02-20 12:46:51 +00:00
imagebackend.py ensure we don't boot oversized images 2013-10-31 17:05:59 +01:00
imagecache.py Clean unused kernels and ramdisks from image cache 2013-02-23 16:18:47 +00:00
utils.py ensure we don't boot oversized images 2013-10-31 17:05:59 +01:00
vif.py Add inst_type parameter 2013-07-23 21:08:26 -04:00
volume.py Detach volume fails when using multipath iscsi 2013-05-16 11:32:40 -07:00
volume_nfs.py Move libvirt NFS volume driver impl into volume.py 2013-02-05 16:03:11 +00:00