8000 k3s: The drain gets 90 s from logind, not 45 by andsens · Pull Request #40 · nixos-homelab/shared · GitHub
[go: up one dir, main page]

Skip to content

k3s: The drain gets 90 s from logind, not 45 - #40

Merged
andsens merged 1 commit into
mainfrom
claude/k3s-drain-window
Nov 19, 2026
Merged

andsens merged 1 commit into
mainfrom
claude/k3s-drain-window

Conversation

@andsens
@andsens andsens commented Nov 19, 2026
Copy link
Copy Markdown
Collaborator

In nixos-homelab/example's NAS suite on a public runner (run 44606619318, attempt 2) 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, so the shutdown subtest failed. Green runs needed 31-34 s from the signal to drained, against the 45 s window.

InhibitDelayMaxSec goes from 45 to 90 and the drain from timeout 40 … --timeout=35s to timeout 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 check green; 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

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>
@andsens
andsens enabled auto-merge (squash) November 19, 2026 22:01
@andsens
andsens merged commit 1f96fe2 into main Nov 19, 2026
2 checks passed
@andsens
andsens deleted the claude/k3s-drain-window branch November 19, 2026 22:22
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.

1 participant

0