Skip to content

Commit

Permalink
Merge pull request #56 from Cray-HPE/CASMHMS-5821-part2
Browse files Browse the repository at this point in the history
Add retry when getting a bootscript
  • Loading branch information
schooler-hpe authored Jul 10, 2023
2 parents b2ae317 + 13eb058 commit 1847f88
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.25.1
1.26.0
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,22 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.26.0] - 2023-07-06

### Added

- Added retries to destructive bootscript CT tests for hms-nightly-integration runs.

## [1.25.1] - 2023-05-30

### Changed

- CASMCMS-8651: Update example fields in API spec to be links to S3 instead of dear departed ARS.

## [1.25.0] - 2023-05-22

### Added

- CASMHMS-6018: Add support for creating pre-signed URLs for `root=live:` parameters, enabling native dmsquash-live dracut usage.

## [1.24.0] - 2023-03-28
Expand Down
26 changes: 25 additions & 1 deletion test/ct/api/3-destructive/test_bootscript.tavern.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MIT License
#
# (C) Copyright [2022] Hewlett Packard Enterprise Development LP
# (C) Copyright [2022-2023] Hewlett Packard Enterprise Development LP
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
Expand Down Expand Up @@ -66,6 +66,14 @@ stages:
status_code: 200

- name: Query bootscript by xname
# Sometimes BSS returns a bootscript to re-attempt getting a bootscript, and this normally
# happens when BSS is syncing with HSM. Add retries to account for this.
# Example:
# #!ipxe
# sleep 10
# chain https://api-gw-service-nmn.local/apis/bss/boot/v1/bootscript?mac=00:40:a6:42:3a:58&retry=1
max_retries: 15
delay_after: 2
request:
url: "{bss_base_url}/boot/v1/bootscript"
method: GET
Expand Down Expand Up @@ -111,6 +119,14 @@ stages:
expression: 'kernel --name .+bss_referral_token='

- name: Query bootscript by MAC address
# Sometimes BSS returns a bootscript to re-attempt getting a bootscript, and this normally
# happens when BSS is syncing with HSM. Add retries to account for this.
# Example:
# #!ipxe
# sleep 10
# chain https://api-gw-service-nmn.local/apis/bss/boot/v1/bootscript?mac=00:40:a6:42:3a:58&retry=1
max_retries: 15
delay_after: 2
request:
url: "{bss_base_url}/boot/v1/bootscript"
method: GET
Expand All @@ -123,6 +139,14 @@ stages:
content-type: text/plain; charset=UTF-8

- name: Query bootscript by NID
# Sometimes BSS returns a bootscript to re-attempt getting a bootscript, and this normally
# happens when BSS is syncing with HSM. Add retries to account for this.
# Example:
# #!ipxe
# sleep 10
# chain https://api-gw-service-nmn.local/apis/bss/boot/v1/bootscript?mac=00:40:a6:42:3a:58&retry=1
max_retries: 15
delay_after: 2
request:
url: "{bss_base_url}/boot/v1/bootscript"
method: GET
Expand Down

0 comments on commit 1847f88

Please sign in to comment.