Repository navigation
k3s: The drain gets 90 s from logind, not 45 - #40
Merged
Merged
Conversation
In example's NAS suite on a public runner (run 44606619318) logind rebooted 44.5 s after PrepareForShutdown, while k3s-drain was still evicting: the annotate and cordon took 13 s on the busy API and kubectl throttled the evictions of 49 pods. The drain never logged "drained" and the shutdown subtest failed. Green runs needed 31-34 s, against 45. InhibitDelayMaxSec goes to 90 and the drain to `timeout 80 ... --timeout=75s`. A drain that finishes returns as before; one that hangs holds the reboot for up to 90 s. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In nixos-homelab/example's NAS suite on a public runner (run 44606619318, attempt 2) logind rebooted 44.5 s after PrepareForShutdown while
k3s-drainwas still evicting: the annotate and cordon took 13 s on the busy API, and kubectl throttled the evictions of 49 pods. The drain never loggeddrained, so the shutdown subtest failed. Green runs needed 31-34 s from the signal todrained, against the 45 s window.InhibitDelayMaxSecgoes from 45 to 90 and the drain fromtimeout 40 … --timeout=35stotimeout 80 … --timeout=75s. A drain that finishes returns as soon as it's done; one that hangs now holds a reboot for up to 90 s instead of 45.Local:
nix flake checkgreen; the k3s VM test's shutdown subtest drained in 37 s. Reaches example with its next relock of homelab-shared, alongside #39.🤖 Generated with Claude Code