Bases: object
Provides retrieval of disk images.
Downloads image to specified location.
image_href – Image reference.
image_file – File object to write data to.
exception.ImageRefValidationFailed.
exception.ImageDownloadFailed.
Get dictionary of image properties.
image_href – Image reference.
exception.ImageRefValidationFailed.
dictionary of image properties. It has three of them: ‘size’, ‘updated_at’ and ‘properties’. ‘updated_at’ attribute is a naive UTC datetime object.
Bases: ironic.common.image_service.BaseImageService
Provides retrieval of disk images available locally on the conductor.
Downloads image to specified location.
image_href – Image reference.
image_file – File object to write data to.
exception.ImageRefValidationFailed if source image file doesn’t exist.
exception.ImageDownloadFailed if exceptions were raised while writing to file or creating hard link.
Get dictionary of image properties.
image_href – Image reference.
exception.ImageRefValidationFailed if image file specified doesn’t exist.
dictionary of image properties. It has three of them: ‘size’, ‘updated_at’ and ‘properties’. ‘updated_at’ attribute is a naive UTC datetime object.
Bases: ironic.common.image_service.BaseImageService
Provides retrieval of disk images using HTTP.
Downloads image to specified location.
image_href – Image reference.
image_file – File object to write data to.
exception.ImageRefValidationFailed if GET request returned response code not equal to 200.
exception.ImageDownloadFailed if: * IOError happened during file write; * GET request failed.
Get dictionary of image properties.
image_href – Image reference.
exception.ImageRefValidationFailed if: * HEAD request failed; * HEAD request returned response code not equal to 200; * Content-Length header not found in response to HEAD request.
dictionary of image properties. It has three of them: ‘size’, ‘updated_at’ and ‘properties’. ‘updated_at’ attribute is a naive UTC datetime object.
Validate HTTP image reference.
image_href – Image reference.
secret – Specify if image_href being validated should not be shown in exception message.
exception.ImageRefValidationFailed if HEAD request failed or returned response code not equal to 200.
exception.ImageRefIsARedirect if the supplied URL is a redirect to a different URL. The caller may be able to handle this.
Response to HEAD request.
Get image service instance to download the image.
image_href – String containing href to get image service for.
client – Glance client to be used for download, used only if image_href is Glance href.
context – request context, used only if image_href is Glance href.
exception.ImageRefValidationFailed if no image service can handle specified href.
Instance of an image service class that is able to download specified image.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.