-
Notifications
You must be signed in to change notification settings - Fork 107
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
[FEATURE REQUEST] Add Internet connection test to download-requirements.sh #2124
Comments
Network connectivity tests have been added for the following tools:
Tested automatically in the pipelines and locally in Ubuntu and CentOS containers and it works fine if it has internet access. I also performed tests with no internet access in the container.
but when it comes to
Assuming these packages are already installed on the system, then the script fails on adding repositories (importing gpg keys), still not having the connection test executed:
In my opinion, for |
✔️ Fixed in #2560. Added additional test before installing prerequisites. |
Please create backport to 1.0, 1.1 tasks. |
Is your feature request related to a problem? Please describe.
Misleading error messages when download-requirements.sh is run on host without Internet access.
Describe the solution you'd like
Before running commands that require Internet access, test whether external URL is accessible.
Basic solution:
Test external (e.g. GitHub) URL with
curl
orwget
.Comprehensive solution:
Test Internet access for all tools (
apt
,yum
,curl
,wget
,crane
) since behind a proxy they can require dedicated configuration.Describe alternatives you've considered
n/a
Additional context
n/a
DoD checklist
The text was updated successfully, but these errors were encountered: