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

Add retries to auto.ipxe kernel/initrd downloads: #432

Merged
merged 5 commits into from
May 13, 2024

Conversation

jacobweinstock
Copy link
Member

Description

This will help overcome transient network issues.

Why is this needed

Fixes: #333

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

chrisdoherty4
chrisdoherty4 previously approved these changes Apr 23, 2024
@jacobweinstock
Copy link
Member Author

Based on a conversation in today's community meeting with @chrisdoherty4, I'm going to add configurability to the number of retries.

This will help overcome transient network issues.

Signed-off-by: Jacob Weinstock <[email protected]>
This allows for transient network issues to not cause
the iPXE script to fail downloading kernel and
initramfs.

Signed-off-by: Jacob Weinstock <[email protected]>
Signed-off-by: Jacob Weinstock <[email protected]>
This makes the retries count work in iPXE.

Signed-off-by: Jacob Weinstock <[email protected]>
Signed-off-by: Jacob Weinstock <[email protected]>
Copy link

codecov bot commented May 13, 2024

Codecov Report

Attention: Patch coverage is 66.66667% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 69%. Comparing base (b25931a) to head (b2a9e18).

Files Patch % Lines
cmd/smee/main.go 0% 1 Missing ⚠️
Additional details and impacted files
@@         Coverage Diff         @@
##           main   #432   +/-   ##
===================================
- Coverage    69%    69%   -1%     
===================================
  Files        16     16           
  Lines      1386   1389    +3     
===================================
+ Hits        958    960    +2     
- Misses      401    402    +1     
  Partials     27     27           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jacobweinstock jacobweinstock added the ready-to-merge Signal to Mergify to merge the PR. label May 13, 2024
@mergify mergify bot merged commit 1284266 into tinkerbell:main May 13, 2024
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge Signal to Mergify to merge the PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add retries to iPXE script when fetching files
2 participants