Helper methods to deal with images.
This is essentially a copy from nova.virt.images.py
Some slight modifications, but at some point
we should look at maybe pushign this up to OSLO
-
class QemuImgInfo(cmd_output)
Bases: object
-
BACKING_FILE_RE = <_sre.SRE_Pattern object at 0x5b38e30>
-
SIZE_RE = <_sre.SRE_Pattern object at 0x7899980>
-
TOP_LEVEL_RE = <_sre.SRE_Pattern object at 0x7015520>
-
convert_image(source, dest, out_format)
Convert image to other format
-
fetch(context, image_service, image_id, path, _user_id, _project_id)
-
fetch_to_raw(context, image_service, image_id, dest, user_id=None, project_id=None)
-
qemu_img_info(path)
Return a object containing the parsed output from qemu-img info.
-
upload_volume(context, image_service, image_meta, volume_path)