Skip to content

agent: ghost sweep should self-heal 'CNI ADD lost' pods (evict to force re-ADD) #567

Closed

Description

@bpalermo

Companion to the prune circuit-breaker issue (2026-07-19 incident). When the ghost sweep finds a live mesh pod missing from local storage it warns "CNI ADD lost; pod has no listener and must be rolled" (ghostsweep.go reportMissingStorage) — prescribing a fix it cannot perform. Nothing else can heal this state: CNI ADD only fires at sandbox creation; kubelet liveness restarts reuse the sandbox (the prober restart-looped without ever re-registering); the startup taint only gates scheduling at node registration.

Fix: after a pod persists in missing-storage state for M consecutive sweeps, the agent evicts it (Eviction API — PDB-respecting, rate-limited, capped per sweep) so sandbox recreation re-runs CNI ADD. Needs pods/eviction RBAC on the agent. Guard: never evict while the prune circuit breaker has tripped (mass-loss = fix storage cause, not evict the world).

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