The ironic.common.glance_service.service Module

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.

  • image_id – The opaque image identifier.
  • data – (Optional) File object to write data to.

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.
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.