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

USHIFT-4518: Add retries on rebasing bootc or ostree systems #3952

Merged
merged 1 commit into from
Sep 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions test/resources/ostree.resource
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,17 @@ Deploy Commit
... that a bootc deployment needs to be performed.
[Arguments] ${ref} ${write_agent_cfg} ${registry_url}

# Retry on rebasing is an attempt to work around the issue described in
# https://github.com/ostreedev/ostree-rs-ext/issues/657
IF "${registry_url}"!="${EMPTY}"
# Allow insecure registry access when pulling the container image to be used
Write Insecure Registry Url ${registry_url}
${deploy_id}= Rebase Bootc System ${registry_url}/${ref}
${deploy_id}= Wait Until Keyword Succeeds 3x 5s
... Rebase Bootc System ${registry_url}/${ref}
Remove Insecure Registry Url
ELSE
${deploy_id}= Rebase System ${ref}
${deploy_id}= Wait Until Keyword Succeeds 3x 5s
... Rebase System ${ref}
END
IF ${write_agent_cfg} TestAgent.Write

Expand Down