Repository navigation
chore: post-rev219 follow-ups — rotated wording, a line per served CNI DEL, quiet leader-election shutdown, 036 outcome (#799) - #810
Merged
Conversation
…I DEL, quiet leader-election shutdown, 036 outcome (#799) - docs(runbook, soak README): `svid_updates{update="rotated"}` means the certificate changed, not that the TTL ran down. A restarted SPIRE agent re-mints every SVID on its node, so a spire-agent restart moves `rotated` by the node's pod count and leaves `unchanged` at zero (measured on rev219: 0 -> 7 pods, 0 -> 1 node). The text added in #806 said otherwise. Rotation cadence has to exclude the minutes in which that node's spire-agent restarted. - agent: RemovePod logs `pod removed: CNI DEL served` (pod, namespace, netns, containerID) at INFO. A successful DEL used to leave only two anonymous "setting snapshot" DEBUG lines, so "a late DEL cleaned this pod up" could not be told from "the ghost sweep pruned it" without reading snapshot timestamps. - common/manager: controller-runtime's "error received after stop sequence was engaged" carrying "leader election lost" is demoted to INFO ("leader election released on shutdown"). Every leader-elected component logs it on a clean SIGTERM — the manager cancels the election context itself — and it was the last ERROR line on a healthy roll after #807. Exactly that record only: any other error after the stop sequence, and a lost lease outside shutdown, stay ERROR. - docs(proposals/036): status and a second Outcome section — the 8-hour soak (4 rotation cycles, a signing-CA rotation, zero identity errors), phase 2 done, #804/#805, #806, #807, what is still open (phase 3, the selector gain). Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
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.
Items 3–6 of the pending ranking; part of #799.
svid_updates{update="rotated"}means thecertificate changed, not that the TTL ran down. A restarted SPIRE agent re-mints
every SVID on its node, so a spire-agent restart moves
rotatedby the node'spod count and leaves
unchangedat zero (measured on rev219: 0 -> 7 pods, 0 -> 1node). The text added in feat(agent): count healthy SVID and trust-bundle updates; seed the sweep counters (#799) #806 said otherwise. Rotation cadence has to exclude
the minutes in which that node's spire-agent restarted.
pod removed: CNI DEL served(pod, namespace, netns,containerID) at INFO. A successful DEL used to leave only two anonymous
"setting snapshot" DEBUG lines, so "a late DEL cleaned this pod up" could not be
told from "the ghost sweep pruned it" without reading snapshot timestamps.
engaged" carrying "leader election lost" is demoted to INFO ("leader election
released on shutdown"). Every leader-elected component logs it on a clean
SIGTERM — the manager cancels the election context itself — and it was the last
ERROR line on a healthy roll after fix(agent,edge): designed startup retries log at WARN, and name who owns the recovery (#766) #807. Exactly that record only: any other
error after the stop sequence, and a lost lease outside shutdown, stay ERROR.
(4 rotation cycles, a signing-CA rotation, zero identity errors), phase 2 done,
agent: ghost-sweep prune leaks the pod's SVID subscription (reference_not_found retries forever) #804/fix(agent): ghost-sweep prune ends the pruned pod's SVID subscription (#804) #805, feat(agent): count healthy SVID and trust-bundle updates; seed the sweep counters (#799) #806, fix(agent,edge): designed startup retries log at WARN, and name who owns the recovery (#766) #807, what is still open (phase 3, the selector gain).
Tests:
//common/manager:all(newTestLeaderElectionLostOnShutdownIsNotAnError, driven through logr's slog bridge like controller-runtime does),//agent/internal/cni/server:all, strict//website:all; lint config clean. No chart change.🤖 Generated with Claude Code
https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr