mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-24 02:31:18 -08:00
When a node is deleted, control answers its map requests with a 404 and the client keeps retrying in its current state, so watchers like containerboot can't tell a deleted node from a lost connection. This wraps that error in ErrNodeRemoved, and LocalBackend then moves to NeedsLogin and sets a node-removed health warning, both cleared on the next netmap or profile switch. It repurposes #18701 as a stopgap until a broader fix, such as structured errors from control, exists. Updates #18700 Signed-off-by: chaosinthecrd <[email protected]>
31 lines
1.5 KiB
Go
31 lines
1.5 KiB
Go
// Copyright (c) Tailscale Inc & contributors
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
package tsconst
|
|
|
|
const (
|
|
HealthWarnableUpdateAvailable = "update-available"
|
|
HealthWarnableSecurityUpdateAvailable = "security-update-available"
|
|
HealthWarnableIsUsingUnstableVersion = "is-using-unstable-version"
|
|
HealthWarnableNetworkStatus = "network-status"
|
|
HealthWarnableWantRunningFalse = "wantrunning-false"
|
|
HealthWarnableLocalLogConfigError = "local-log-config-error"
|
|
HealthWarnableLoginState = "login-state"
|
|
HealthWarnableNodeRemoved = "node-removed"
|
|
HealthWarnableNotInMapPoll = "not-in-map-poll"
|
|
HealthWarnableNoDERPHome = "no-derp-home"
|
|
HealthWarnableNoDERPConnection = "no-derp-connection"
|
|
HealthWarnableDERPTimedOut = "derp-timed-out"
|
|
HealthWarnableDERPRegionError = "derp-region-error"
|
|
HealthWarnableNoUDP4Bind = "no-udp4-bind"
|
|
HealthWarnableMapResponseTimeout = "mapresponse-timeout"
|
|
HealthWarnableTLSConnectionFailed = "tls-connection-failed"
|
|
HealthWarnableMagicsockReceiveFuncError = "magicsock-receive-func-error"
|
|
HealthWarnableTestWarnable = "test-warnable"
|
|
HealthWarnableApplyDiskConfig = "apply-disk-config"
|
|
HealthWarnableWarmingUp = "warming-up"
|
|
HealthWarnableTLSCertPending = "tls-cert-pending"
|
|
HealthWarnableExitNodeUnavailable = "exit-node-unavailable"
|
|
HealthWarnableExitNodeUnresponsive = "exit-node-unresponsive"
|
|
)
|