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.
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
Gets Swift temporary URL
parsed_url – Parsed URL from URL in format swift://container/[sub-folder/]file
Swift temporary URL
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.
Validate update
step input argument
settings – args to validate.
InvalidParameterValue When argument is not valid
Validate update_firmware
step input argument
firmware_images – args to validate.
InvalidParameterValue When argument is not valid
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.