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

Let telepresence connect despite DNS failure. #3154

Merged
merged 6 commits into from
May 1, 2023

Conversation

thallgren
Copy link
Member

Description

This PR addresses the functionality requested in ticket #3152.

  • A telepresence connect will succeed even if the DNS isn't functional.
  • On Windows, if setting the global DNS search path using powershell fails, fallback to setting the value directly in the registry. This behavior can also be controlled using a new config network.globalDNSSearchConfigStrategy which can be set to auto (the default), powershell, or registry.

Checklist

  • I made sure to update ./CHANGELOG.md.
  • I made sure to add any docs changes required for my change (including release notes).
  • My change is adequately tested.
  • I updated DEVELOPING.md with any any special dev tricks I had to use to work on this code efficiently.
  • I updated TELEMETRY.md if I added, changed, or removed a metric name.
  • Once my PR is ready to have integration tests ran, I posted the PR in #telepresence-dev in the datawire-oss slack so that the "ok to test" label can be applied.

Some users benefit from having the routing up and running even though
DNS isn't working. This commit ensures that `telepresence connect`
succeeds even though the DNS server configuration was unsuccessful but
a warning is printed on stderr, informing the user that the DNS isn't
functional.

A call to `telepresence status` will also show the DNS error.

Signed-off-by: Thomas Hallgren <[email protected]>
The global DNS search path can be set, either by using Powershell or
directly, by setting a registry value. Using Powershell will sometimes
fail due to group policies and setting the registry value doesn't seem
to work on all Windows platforms.

This commit introduces a strategy setting that can be set to "auto",
"powershell", or "registry" where "auto" means that "powershell" is
tried first, and if it fails, fallback to "registry". The default
setting is "auto".

Signed-off-by: Thomas Hallgren <[email protected]>
@thallgren thallgren added the ok to test Applied by maintainers when a PR is ready to have tests run on it label Apr 29, 2023
@github-actions github-actions bot removed the ok to test Applied by maintainers when a PR is ready to have tests run on it label Apr 29, 2023
@thallgren thallgren changed the title Thallgren/allow dns failure Let telepresence connect despite DNS failure. Apr 29, 2023
@thallgren thallgren requested review from a team and josecv and removed request for a team April 29, 2023 15:27
Signed-off-by: Thomas Hallgren <[email protected]>
@thallgren thallgren added the ok to test Applied by maintainers when a PR is ready to have tests run on it label Apr 29, 2023
@github-actions github-actions bot removed the ok to test Applied by maintainers when a PR is ready to have tests run on it label Apr 29, 2023
@thallgren thallgren added the ok to test Applied by maintainers when a PR is ready to have tests run on it label Apr 30, 2023
@github-actions github-actions bot removed the ok to test Applied by maintainers when a PR is ready to have tests run on it label Apr 30, 2023
@thallgren thallgren added the ok to test Applied by maintainers when a PR is ready to have tests run on it label Apr 30, 2023
@github-actions github-actions bot removed the ok to test Applied by maintainers when a PR is ready to have tests run on it label Apr 30, 2023
@thallgren thallgren merged commit 8aee841 into release/v2 May 1, 2023
@thallgren thallgren deleted the thallgren/allow-dns-failure branch May 1, 2023 20:07
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.

Telepresence change in 2.13.0 GPO setGlobalSearchList fallback handling The DNS isn't working properly
2 participants