diff options
| author | Scott Moser <smoser@ubuntu.com> | 2011-09-19 16:57:44 -0400 |
|---|---|---|
| committer | Scott Moser <smoser@ubuntu.com> | 2011-09-19 16:57:44 -0400 |
| commit | ff9d353b2f4fee469e530fbc8dc231a41f6fed84 (patch) | |
| tree | 403391d86026633729899e9acb7cbcf53007987f /bin | |
| parent | 3da916de6165e1e7012f61a05a6a0d9d06906b48 (diff) | |
| download | nova-ff9d353b2f4fee469e530fbc8dc231a41f6fed84.tar.gz nova-ff9d353b2f4fee469e530fbc8dc231a41f6fed84.tar.xz nova-ff9d353b2f4fee469e530fbc8dc231a41f6fed84.zip | |
convert images that are not 'raw' to 'raw' during caching to node
This uses 'qemu-img' to convert images that are not 'raw' to be 'raw'.
By doing so, it
a.) refuses to run uploaded images that have a backing image reference
(LP: #853330, CVE-2011-3147)
b.) ensures that when FLAGS.use_cow_images is False, and the libvirt
xml written specifies 'driver_type="raw"' that the disk referenced
is also raw format. (LP: #837102)
c.) removes compression that might be present to avoid cpu bottlenecks
(LP: #837100)
It does have the negative side affect of using more space in the case where
the user uploaded a qcow2 (or other advanced image format) that could have
been used directly by the hypervisor. That could, later, be remedied by
another 'qemu-img convert' being done to the "preferred" format of the
hypervisor.
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions
