Merge lp:~smoser/nova/lp853330 into lp:~hudson-openstack/nova/trunk
Status: | Merged | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Approved by: | Soren Hansen | ||||||||||||
Approved revision: | 1601 | ||||||||||||
Merged at revision: | 1604 | ||||||||||||
Proposed branch: | lp:~smoser/nova/lp853330 | ||||||||||||
Merge into: | lp:~hudson-openstack/nova/trunk | ||||||||||||
Diff against target: |
85 lines (+60/-1) 2 files modified
nova/virt/images.py (+59/-0) nova/virt/libvirt/connection.py (+1/-1) |
||||||||||||
To merge this branch: | bzr merge lp:~smoser/nova/lp853330 | ||||||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Soren Hansen (community) | Approve | ||
Vish Ishaya (community) | Approve | ||
Review via email: mp+76164@code.launchpad.net |
Commit message
convert images that are not 'raw' to 'raw' during caching to node
Description of the change
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_
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.
lgtm