ironic.common.glance_service.service module

ironic.common.glance_service.service module

service None

Bases: object

Provides storage and retrieval of disk image objects within Glance.

ImageService.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.
ImageService.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
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.