ironic.drivers.modules.redfish.firmware_utils.
cleanup
(node)[source]¶Clean up staged files
node – Node for which to clean up. Should contain ‘firmware_cleanup’ entry in driver_internal_info to indicate source(s) to be cleaned up.
ironic.drivers.modules.redfish.firmware_utils.
download_to_temp
(node, url)[source]¶Downloads to temporary location from given URL
node – Node for which to download to temporary location
url – URL to download from
File path of temporary location file is downloaded to
ironic.drivers.modules.redfish.firmware_utils.
get_swift_temp_url
(parsed_url)[source]¶Gets Swift temporary URL
parsed_url – Parsed URL from URL in format swift://container/[sub-folder/]file
Swift temporary URL
ironic.drivers.modules.redfish.firmware_utils.
stage
(node, source, temp_file)[source]¶Stage temporary file to configured location
node – Node for which to stage the file
source – Where to stage the file. Corresponds to CONF.redfish.firmware_source.
temp_file – File path of temporary file to stage
Tuple of staged URL and source (http or swift) that needs cleanup of staged files afterwards.
RedfishError – If staging to HTTP server has failed.
ironic.drivers.modules.redfish.firmware_utils.
validate_update_firmware_args
(firmware_images)[source]¶Validate update_firmware
step input argument
firmware_images – args to validate.
InvalidParameterValue When argument is not valid
ironic.drivers.modules.redfish.firmware_utils.
verify_checksum
(node, checksum, file_path)[source]¶Verify checksum.
node – Node for which file to verify checksum
checksum – Expected checksum value
file_path – File path for which to verify checksum
RedfishError – When checksum does not match
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.