ironic.common.glance_service.service module
updated: 2023-02-16 18:05
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 |
updated: 2023-02-16 18:05