ironic_python_agent.qemu_img module

ironic_python_agent.qemu_img.convert_image(source, dest, out_format, cache=None, out_of_order=False, sparse_size=None, source_format=None)[source]

Convert image to other format.

This method is only to be run against images who have passed format_inspector’s safety check, and with the format reported by it passed in. Any other usage is a major security risk.

ironic_python_agent.qemu_img.image_info(path, source_format=None)[source]

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

This must only be called on images already validated as safe by the format inspector.

Parameters:
  • path – The path to an image you need information on

  • source_format – The format of the source image. If this is omitted when deep inspection is enabled, this will raise InvalidImage.