Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CASMCMS-9146: Add BOS option ims_images_must_exist #377

Merged
merged 2 commits into from
Oct 7, 2024

Conversation

mharding-hpe
Copy link
Contributor

@mharding-hpe mharding-hpe commented Oct 3, 2024

This adds a new BOS v2 option -- ims_images_must_exist. It governs what happens when validating boot sets whose images appear to be from IMS (based on their S3 paths). Specifically, it governs what happens when these images do not actually exist in IMS.

If the option is false (the default), then a warning is logged, but the validation is not failed on this basis.
If the option is true, then the validation is failed in this case.

If this option is true, then if the image appears to be from IMS and IMS is unreachable, then ...
BOS needs to get image arch data from IMS, and there is an error getting it (other than the image not being in IMS). Currently, in that situation, an error is logged, but the architecture validation is skipped. If this new option is false (as it will be by default), then the current behavior will continue.

If this new option is true, then IMS errors will be considered fatal. If a boot set is being validated and one of these errors comes up, then the boot set validation will fail.

I tested this on mug, verifying that I got the correct behavior for both settings of the option, with IMS both up and down.

@mharding-hpe mharding-hpe force-pushed the casmcms-9146 branch 5 times, most recently from 3a09bfd to 2c6e8b0 Compare October 4, 2024 19:00
@mharding-hpe mharding-hpe force-pushed the casmcms-9146 branch 2 times, most recently from ff0a4c6 to be71e2d Compare October 7, 2024 15:58
@mharding-hpe mharding-hpe marked this pull request as ready for review October 7, 2024 16:08
@mharding-hpe mharding-hpe requested a review from a team as a code owner October 7, 2024 16:08
@mharding-hpe mharding-hpe merged commit 69ce67e into develop Oct 7, 2024
5 of 6 checks passed
@mharding-hpe mharding-hpe deleted the casmcms-9146 branch October 7, 2024 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant