Repository navigation
🧭 Teach the engine about 330 blind failure scenarios - #619
Merged
Merged
Conversation
…g-reason scenarios
…hronic wording scenario and state the silent node plainly
…d root the API server pod
A custom resource that grows, a garbage collector deleting an object whose owner lives elsewhere, and a controller scaled to zero have no cluster signal that names a cause, like the secret controller scaled down. A brief lookup stall that heals alone follows the brief-errors quiet label, and callers restarting once per replaced pod stay a digest.
…oss, stuck namespace
… keeps its anchors
…pods at once, fix the readiness fixture
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.
What this PR does
Adds about 880 labelled failure scenarios to the alert-quality corpus, then teaches the engine to name the right root cause for them. Each scenario was written from a real Kubernetes failure without reading engine code. The label comes from Kubernetes behaviour, never from kwatch's output.
Where the scenarios come from
Every candidate was checked against the existing scenarios for duplicates, and rounds 6–7 were scored for how common, impactful, distinct and visible each failure is. Sources are Apache-2.0 / CC BY 4.0 or used as ideas only. No text was copied.
Engine rules added so far
Progress by area
Corpus: about 880 labelled scenarios. The replay shows 0 failing and all CI checks pass at d093bf5 (down from about 160). Rounds 1-7 plus 10, 17, 18 and 24 are included.
Labels follow the existing conventions. Where the cluster cannot show the cause, the scenario is labelled honestly as unknown or quiet instead of lowering the bar. Notify latency is 5 minutes or less, with one documented exemption.
Non-test engine lines: about +6,170 / -530.
Engine areas changed
internal/rootcause/explain(about +3,800 / -80): new and merged rules for scheduling verdicts, storage objects, DNS, nodes, kubelet and node agents, zone and node pool groups, RBAC, registries, webhooks and ConfigMapsinternal/notification/compose(about +760 / -380): plain-word wording for the new rows; causes and proof files split under the line limitinternal/detection/detectors(about +830 / -50): digest routing, control-plane service flapping, replica flapping, PDB selecting no pods, drain blocked by a pod without a controllerinternal/incident(about +470 / -15): control-plane failures that open together fold into one incident; lost nodes and late failures join the incident that explains them; a relisted incident stays one announcementinternal/inventory/kube(about +240 / -5): relations used to find DNS and control-plane pods; EndpointSlice addresses count as cluster addressesinternal/detection,internal/detection/reasons,internal/pipeline,internal/rootcause: small supporting changesName matching removed
DNS and control-plane pods are now found by their relations (owner, Service, namespace role), not by matching on names. Rules that compared names were merged or dropped.
Fixture fixes (unrealistic data, not label changes)
Label changes (Kubernetes reason)
Round 1 label changes are listed in the first section of the earlier description (nodeSelector/anti-affinity root at the scheduling constraint, HPA without CPU request to the digest, NoExecute taint with ready replicas stays quiet, NotReady nodes page). Later label changes were made by review before the scenarios were pushed:
unknown.New user-facing wording (designer review pending for the newer lines)
Follow-ups
node.kubernetes.io/poolininternal/inventory/kube/node.gois pre-existing and not a real label; replace it with real provider pool labels.Before merge
make verify, and ratchet.txt and SCORECARD.md regenerated.