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 informative error messages when there is no internet connection. #11377

Merged
merged 3 commits into from
Sep 26, 2023
Merged

Add informative error messages when there is no internet connection. #11377

merged 3 commits into from
Sep 26, 2023

Conversation

dtaskai
Copy link
Contributor

@dtaskai dtaskai commented Sep 16, 2023

Added a way to narrow down the errors to a lack of internet connection for the proxy version check and also an additional check when matching the channels and last but not least identifying a DNS error when getting the latest versions.

If this happens to be merged then I'd happily update the docs in the errors' respective places to let the users know that they should check their connections as it is not currently listed as a possible solution to the issues.

Sample output with the submitted solution:
pr-validation-output.txt

Fixes #11349

@dtaskai dtaskai requested a review from a team as a code owner September 16, 2023 15:39
Copy link
Member

@adleong adleong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks for fixing this. I have just a few minor code cleanliness suggestions.

pkg/version/channels.go Outdated Show resolved Hide resolved
pkg/version/channels.go Outdated Show resolved Hide resolved
pkg/healthcheck/healthcheck.go Outdated Show resolved Hide resolved
@dtaskai
Copy link
Contributor Author

dtaskai commented Sep 19, 2023

@adleong Definitely agree with all of them, thank you very much for the insights!

Copy link
Member

@adleong adleong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Thanks for this change!

Copy link
Member

@mateiidavid mateiidavid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. None of my comments are blocking.

pkg/healthcheck/healthcheck.go Outdated Show resolved Hide resolved
pkg/version/channels.go Outdated Show resolved Hide resolved
@olix0r olix0r self-assigned this Sep 26, 2023
@olix0r olix0r merged commit 64b66f9 into linkerd:main Sep 26, 2023
34 checks passed
@olix0r olix0r mentioned this pull request Sep 28, 2023
olix0r added a commit that referenced this pull request Sep 29, 2023
This edge release makes Linkerd even better.

* Added a controlPlaneVersion override to the `linkerd-control-plane` Helm chart
  to support including SHA256 image digests in Linkerd manifests (thanks
  @cromulentbanana!) ([#11406])
* Improved `linkerd viz check` to attempt to validate that the Prometheus scrape
  interval will work well with the CLI and Web query parameters ([#11376])
* Improved CLI error handling to print differentiated error information when
  versioncheck.linkerd.io cannot be resolved (thanks @dtaskai) ([#11377])
* Fixed an issue where the destination controller would not update pod metadata
  for profile resolutions for a pod accessed via the host network (e.g.
  HostPort endpoints) ([#11334]).
* Added a validating webhook config for httproutes.gateway.networking.k8s.io
  resources (thanks @mikutas!) ([#11150])
* Introduced a new `multicluster check --timeout` flag to limit the time
  allowed for Kubernetes API calls (thanks @moki1202) ([#11420])

[#11150]: #11150
[#11334]: #11334
[#11376]: #11376
[#11377]: #11377
[#11406]: #11406
[#11420]: #11420
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.

linkerd check on host with no internet access gives missleading messages
4 participants