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 pushing this up to Oslo

class QemuImgInfo(cmd_output)

Bases: object

BACKING_FILE_RE = <_sre.SRE_Pattern object at 0x1f1e8b0>
SIZE_RE = <_sre.SRE_Pattern object at 0x29fd0a0>
TOP_LEVEL_RE = <_sre.SRE_Pattern object at 0x29383e0>
coalesce_chain(vhd_chain)
coalesce_vhd(vhd_path)
convert_image(source, dest, out_format)

Convert image to other format

create_temporary_file()
discover_vhd_chain(directory)
extract_targz(archive_name, target)
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)
fetch_to_vhd(context, image_service, image_id, dest, user_id=None, project_id=None)
fetch_to_volume_format(context, image_service, image_id, dest, volume_format, user_id=None, project_id=None)
fetch_verify_image(context, image_service, image_id, dest, user_id=None, project_id=None)
file_exist(fpath)
fix_vhd_chain(vhd_chain)
get_vhd_size(vhd_path)
is_xenserver_format(image_meta)
is_xenserver_image(context, image_service, image_id)
qemu_img_info(path)

Return a object containing the parsed output from qemu-img info.

rename_file(src, dst)
replace_xenserver_image_with_coalesced_vhd(image_file)
resize_image(source, size)

Changes the virtual size of the image.

resize_vhd(vhd_path, size, journal)
set_vhd_parent(vhd_path, parentpath)
temporary_dir()
temporary_file(*args, **kwds)
upload_volume(context, image_service, image_meta, volume_path, volume_format='raw')

Previous topic

The cinder.image.glance Module

Next topic

The cinder.keymgr.conf_key_mgr Module

This Page