Repository navigation
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
lzap
force-pushed
the
tftp-preflight-39765
branch
from
November 24, 2026 11:09
e06cc2d to
2ecce07
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why are you introducing these changes? (Problem description, related links)
Extend the Smart Proxy TFTP module to fetch and prepare bootloader files in a bootloader-universe directory. The existing
/tftp/fetch_boot_fileendpoint remains available. The new/tftp/fetch_and_processendpoint accepts direct downloads to exact destinations or an archive plus an extraction map. Downloads and extraction run asynchronously; the supported archive extractors are ISO and TGZ, and the API exposes a readiness check for Foreman PXE setup.HTTP(S) downloads perform a configurable HEAD preflight before the transfer. It is enabled by default and can be disabled with
tftp_http_download_preflightfor sources that do not support HEAD. Each curl transfer attempt is limited bytftp_download_max_time, which defaults to 3600 seconds; transient failures are retried up to three times and the timeout applies per attempt. See the Managed Bootloader Universe discussion.Related issue: Redmine #39765. These settings configure the behavior introduced in Smart Proxy PR #958.
What are the changes introduced in this pull request?
--tftp-http-download-preflight(defaulttrue) and--tftp-download-max-time(default3600) as Foremanctl options.settings.d/tftp.yml.How to test this pull request
Steps to reproduce:
foremanctl deploy-proxy --add-feature tftp --tftp-http-download-preflight false --tftp-download-max-time 7200./etc/foreman-proxy/settings.d/tftp.ymlcontains:tftp_http_download_preflight: falseand:tftp_download_max_time: 7200.The feature test requires a deployed VM and was not run locally.
Checklist