The ironic.common.glance_service.service Module

class ironic.common.glance_service.service.ImageService[source]

Bases: object

Provides storage and retrieval of disk image objects within Glance.

download(image_id, data=None)[source]

Calls out to Glance for data and writes data.

Parameters:
  • image_id – The opaque image identifier.
  • data – (Optional) File object to write data to.
show(image_id)[source]

Returns a dict with image data for the given opaque image id.

Parameters:image_id – The opaque image identifier.
Returns:A dict containing image metadata.
Raises:ImageNotFound