Image helper functions

Registered by Zhongyue Luo

Modules nova/virt/images.py and cinder/image/image_utils.py contain duplicate classes and functions.

Classes:
    QemuImgInfo

Functions:
    qemu_img_info()
    convert_image()

The QemuImgInfo can be used without changes but the functions need a root_helper argument passed.

def qemu_img_info(path, run_as_root=True, root_helper=None)
def convert_image(source, dest, out_format, run_as_root=False, root_helper=None)

Blueprint information

Status:
Not started
Approver:
None
Priority:
Undefined
Drafter:
Zhongyue Luo
Direction:
Needs approval
Assignee:
Zhongyue Luo
Definition:
New
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:imageutils,n,z

Addressed by: https://review.openstack.org/41363
    Adds common image utils

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.