-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
linkerd check on host with no internet access gives missleading messages #11349
Comments
@dagri-hub thanks for raising this issue! I've marked this as help wanted. From our perspective, it would make sense to change the level of the message to a |
Hello @mateiidavid, I just learned in the Linkerd Slack Channel that there is already an option for passing the So you are right, when there is no internet connection a warning like "No internet access. Please use linkerd check --expected-version stable-2.14.0" or something like that would be great. |
Yeah, almost forgot to mention you can use |
Would love to have a go at it if it is still up for grabs! 😄 |
@dtaskai As far as I know, nobody's working on this, so feel free to submit a PR! Thanks in advance! :) |
…11377) When the Linkerd CLI is unable to access the internet, it will encounter a DNS error when trying to discover the latest Linkerd releases from linkerd.io. This change handles this DNS resolution error explicitly so that users receive a more informative error message. Fixes #11349 Signed-off-by: Dominik Táskai <dominik.taskai@leannet.eu> Co-authored-by: Dominik Táskai <dominik.taskai@leannet.eu> Co-authored-by: Oliver Gould <ver@buoyant.io>
What is the issue?
linkerd check
fails in the following tests because it cannot get the latest version from https://versioncheck.linkerd.io/version.jsonWhen
linkerd check
fails the test "linkerd-version" due to no internet access it cannot get the recent version and therefore fails more tests (with a warning), but with irritating messages. The messages indicate that my installation does not have the correct versions - although everything is fine.linkerd-check-no-internet.txt
linkerd-check-internet.txt
How can it be reproduced?
I used stable-2.14.0, but it also works with earlier versions.
linkerd check
to get the resultYou can do the same test and enable the internet access and the output of
linkerd check
will be correct.Logs, error output, etc
linkerd-check-no-internet.txt
linkerd-check-internet.txt
output of
linkerd check -o short
linkerd-check-short.txt
Environment
Kubernetes Version: Server Version: version.Info{Major:"1", Minor:"23", GitVersion:"v1.23.8+vmware.3", GitCommit:"53e803785668c31b8fcb41fc3607f3fdc3c87465", GitTreeState:"clean", BuildDate:"2022-11-03T17:16:51Z", GoVersion:"go1.17.11", Compiler:"gc", Platform:"linux/amd64"}
Cluster Environemnt: Tanzu
Host OS: RHEL 8.5
Linkerd Version: stable-2.14.0
Possible solution
It would be great to change the warning messages or to skip the version tests when the latest version is not receivable from the internet or add an option for the cli where I can pass the latest version like
Additional context
https://linkerd.slack.com/archives/C89RTCWJF/p1694093242741459
Would you like to work on fixing this bug?
None
The text was updated successfully, but these errors were encountered: