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

ipn/ipnlocal, control/controlclient: keep map poll alive on NoLogsNoSupport + flow logs #11825

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bradfitz
Copy link
Member

Fixes #11793

…upport + flow logs

Fixes #11793

Change-Id: I77eab157b6be24799805ece905855b6fecfa91c9
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
@bradfitz bradfitz requested a review from dsnet April 20, 2024 18:34
Copy link
Member

@dsnet dsnet left a comment

Choose a reason for hiding this comment

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

I suspect we'll have other cases where the local settings conflict with some tailnet-wide settings where we want a more robust mechanism to report such problems to the admin panel UI (if such a thing doesn't already exist).

@@ -1216,20 +1218,11 @@ func (b *LocalBackend) SetControlClientStatus(c controlclient.Client, st control

if st.NetMap != nil {
if envknob.NoLogsNoSupport() && st.NetMap.HasCap(tailcfg.CapabilityDataPlaneAuditLogs) {
msg := "tailnet requires logging to be enabled. Remove --no-logs-no-support from tailscaled command line."
msg := "tailnet requires logging to be enabled. Remove --no-logs-no-support from the tailscaled command line."
Copy link
Member

Choose a reason for hiding this comment

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

Does this message get surfaced in the admin panel UI?

Copy link
Member Author

Choose a reason for hiding this comment

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

Well, in theory. That's what the following line should be doing indirectly. It sets health as unhappy on the device and nodes should be telling control about their health state. But we don't do much with that server-side yet.

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.

FR: NoLogsNoSupport and CapabilityDataPlaneAuditLogs should not set WantRunning = false
2 participants