Skip to content

soak harness: restart watchdog cannot tell 'no restarts' from a failed kubectl call; restarts are not gradable from metrics #1242

Closed

Description

@bpalermo

Found grading the 8 h soak nightly-1005-surge/2.4.5-c6dacde (T0 2026-10-05T03:25:41Z, talos-main).

The wrapper's restart watchdog writes one line per 10 min listing containers with restartCount>0. A failed kubectl call prints the same blank line as 'none', so the log alone cannot prove 0 restarts. The cluster has no kube-state-metrics or cAdvisor series (kube_* / container_* do not exist in Prometheus), so restarts, last-terminated reasons and the agent's cgroup memory cannot be graded from metrics either; this run's 0-restart verdict came from VictoriaLogs (one starting aether agent line per agent pod, k8s.container.restart_count=0 on every record) and Envoy epoch counts.

Fix: move the watchdog into e2e/soak/ (it lives only in a workstation script today), make it print an explicit ok count=0 / ERROR line, and record last-terminated reasons. Whether to add kube-state-metrics to the platform is a separate GitOps decision.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

Activity

  1. bpalermo commented on Oct 6, 2026

    @bpalermo
    OwnerAuthor

    Both halves done. Harness: e2e/soak/restart-watch.sh (#1265) ran its first soak — 237 ok count=0 samples, 0 ERROR samples. Metrics: kube-state-metrics + cAdvisor (k8s-talos-main #144) graded the 10-06 soak independently: max_over_time(kube_pod_container_status_restarts_total{namespace=~"aether-.*"}[8h]) > 0 and the init-container equivalent returned nothing new in the window (only a pre-existing aether-etcd/etcd = 3, flat), container_oom_events_total max 0, and the agent's working set peaked at 62.2 MiB of 128 Mi. The watchdog's verdict=FAIL new_restarts=5 on that run was the five k6 loaders completing (exit 0) after the graded window, because the wrapper started the watchdog at T0+30 min — tracked separately.

    🤖 Generated with Claude Code

    https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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