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

Update image2disk #139

Merged
merged 3 commits into from
Aug 23, 2024
Merged

Conversation

jacobweinstock
Copy link
Member

@jacobweinstock jacobweinstock commented Aug 20, 2024

Description

This updates image2disk to improve EOF handling. This also adds retry logic to the whole image2disk process.

Why is this needed

Fixes: #

How Has This Been Tested?

How are existing users impacted? What migration steps/scripts do we need?

Checklist:

I have:

  • updated the documentation and/or roadmap (if required)
  • added unit or e2e tests
  • provided instructions on how to upgrade

@jacobweinstock jacobweinstock marked this pull request as ready for review August 23, 2024 18:29
It was reported that EOF errors were causing
image2disk to fail. This improves the EOF handling
so that streaming doesn't fail.

Retry logic is added to mitigate misbehaving network
stacks and file servers.

Signed-off-by: Jacob Weinstock <[email protected]>
Update the Go dependencies as much as possible.
github.com/containerd/containerd and github.com/deislabs/oras
were not updated as oras depends on containerd and the latest
oras lib is very different and would be significant work
to refactor oci2disk.

Signed-off-by: Jacob Weinstock <[email protected]>
The following envs were added as opt in:
RETRY_ENABLED
RETRY_DURATION_MINUTES
PROGRESS_INTERVAL_SECONDS
TEXT_LOGGING

Signed-off-by: Jacob Weinstock <[email protected]>
@jacobweinstock jacobweinstock merged commit 12cf23f into tinkerbell:main Aug 23, 2024
13 checks passed
@jacobweinstock jacobweinstock deleted the image2disk-update branch August 23, 2024 19:53
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