Bases: object
Helper class that opens a HTTP connection to download an image.
This class opens a HTTP connection to download an image from a URL and create an iterator so the image can be downloaded in chunks. The MD5 hash of the image being downloaded is calculated on-the-fly.
Bases: ironic_python_agent.extensions.base.BaseAgentExtension
Extension which adds stand-by related functionality to agent.
Asynchronously caches specified image to the local OS device.
Parameters: |
|
---|---|
Raises: | ImageDownloadError if the image download fails for any reason. |
Raises: | ImageChecksumError if the downloaded image’s checksum does not match the one reported in image_info. |
Raises: | ImageWriteError if writing the image fails. |
Asynchronously prepares specified image on local OS install device.
In this case, ‘prepare’ means make local machine completely ready to reboot to the image specified by image_info.
Downloads and writes an image to disk if necessary. Also writes a configdrive to disk if the configdrive parameter is specified.
Parameters: |
|
---|---|
Raises: | ImageDownloadError if the image download encounters an error. |
Raises: | ImageChecksumError if the checksum of the local image does not match the checksum as reported by glance in image_info. |
Raises: | ImageWriteError if writing the image fails. |
Raises: | ConfigDriveTooLargeError if the configdrive contents are too large to store on the given device. |