Previous topic

The cinder.image.glance Module

Next topic

The cinder.manager Module

This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Cinder 2011.2 docs or all OpenStack docs too.

The cinder.image.image_utils Module

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)