You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ax local start can't recover when the atenet-router envoy sidecar is stuck unready #697
Sometimes ax local start fails during the Substrate step because the existing atenet-router pod on the local cluster is unhealthy. Once that happens, the cluster can't recover on its own. Every later ax local start (and so make build-local-cluster and make test-local-install) fails the same way until someone restarts the pod by hand.
What we saw
atenet-router is 1/2 ready. Its envoy container had been failing its readiness probe with HTTP 503 for 16 hours (6,978 failures).
Likely trigger: the pod's atenet-router container drained and restarted at 06:35 UTC, and the envoy sidecar has reported unready ever since. Its last successful traffic was hero-demo-custom-task at 06:13.
The run that hit this was make build-local-cluster. It rebuilt the images and pushed them to the local registry, then ax local start gave up in the Substrate step. The new ax-server was not rolled out and no tasks were created, so the change under test was never exercised.
The cluster problem existed before the run. Nothing in the change caused it.
Why ax local start doesn't recover
alreadyHealthy (internal/install/substrate/bootstrap.go:747) waits up to 90s for pods labeled app=atenet-router to be Ready. The envoy sidecar never becomes ready, so the check fails.
Bootstrap then re-applies the Substrate manifests. They haven't changed, so the Deployment's pod template is the same and no new pod is created.
rolloutStatus(..., "deployment/atenet-router", ...) (bootstrap.go:289-296) waits for the same stuck pod to become available, and times out.
The result is a timeout that tells the user nothing about the cause or the fix.
When ax local start finds an existing Substrate workload whose pods are stuck unready (for example, a container that has failed its readiness probe for longer than the rollout timeout), run rollout restart on it once before waiting on it again.
If that doesn't help, fail with an error that names the unready pod and container and prints the kubectl rollout restart command, instead of a bare rollout timeout.
Separately, find out why envoy stays unready after the atenet-router container restarts. If the cause is in Substrate, file it upstream.
Activity
install: add a liveness probe to the Envoy sidecars of Substrate
install: add a liveness probe to the Envoy sidecars of Substrate (goo…