Skip to content

agent: ghost-sweep prune needs a mass-delete circuit breaker (power-blip incident 2026-07-19) #566

Closed

Description

@bpalermo

During the 2026-07-19 ~18:52Z power blip (containers restarted fleet-wide, no node reboots, sandboxes survived), the rev-172 agent's ghost-sweep prune (#245) deleted EVERY pod registration from persistent storage on all 5 nodes — netns liveness checks failed transiently for all pods at once, so all were classified as ghosts. Result: total mesh egress outage (prober 100% connection errors) with no self-recovery, because container restarts never re-run CNI ADD (evidence: new agents logged found pods in local storage, count: 0; pod sandboxes days old; storage is persistent hostPath /var/lib/aether/registry whose only writer is the agent).

Fix directions (any or all):

  • Circuit breaker: refuse to prune more than N% of stored pods in a single sweep pass; log loudly and skip instead.
  • Require N consecutive failed netns checks (hysteresis) before classifying a pod as a ghost.
  • Confirm pod-gone via the K8s API (the sweep already lists pods) before deleting storage — a pod that is Running per the API with a live IP is not a ghost regardless of a transient netns stat failure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions