Repository navigation
Description
Description
HTTPRoute (and possibly other Gateway API resource) status.parents is never populated for a subset of routes in a cluster with a large number (~300+) of HTTPRoute objects attached to a single Gateway, even though the route is correctly and fully functional in the data plane.
This is not a case of an incorrect condition being written (e.g. Accepted: False) — status.parents is a genuinely empty array ([]), as if the status writer never ran for that object at all.
Repro / Environment
- Envoy Gateway version:
v1.8.1(control plane + data plane), Helm chartgateway-helm-v1.8.1 - ~306
HTTPRouteobjects attached to a single sharedGateway(envoy-gateway/envoy-gateway), across ~30 namespaces - Resources are managed via ArgoCD (many separate Applications, auto-sync + self-heal enabled), so there is a high rate of watch events against
HTTPRoute/Service/EndpointSlice/Gatewayobjects cluster-wide - 3 replicas of the
envoy-gatewaycontroller (leader election via Lease), 3 replicas of the Envoy proxy data plane
Observed behavior
For a specific HTTPRoute (team-namespace/example-service):
$ kubectl get httproute example-service -n team-namespace -o jsonpath='{.status}'
{"parents":[]}
This was true even for a brand new object (fresh UID, deleted and recreated by ArgoCD), confirming it's not tied to any particular object's history — status simply never gets written back.
Meanwhile, the data plane is fully correct:
- The route is present in Envoy's dynamic route config (
config_dump?resource=dynamic_route_configs), pointing at the correct cluster. - The backend cluster's only endpoint shows
health_flags: healthyin/clusters. - Live HTTP requests through the gateway to the route's hostname succeed (
200on/readyz,/livez; app-level404on undefined paths — proving traffic reaches the pod).
Checking every HTTPRoute in the same namespace, the pattern splits cleanly by creation date: every route created within roughly the last 1–2 weeks has an empty status.parents, while every older route has a normally-populated status (1–3 parent conditions). The controller pods have been running continuously (no restarts) for ~5 weeks, well before this started.
Logs
The controller's status_updater does receive update events for the affected object — repeatedly:
kubernetes/status_updater.go:142 info received a status update {"namespace":"team-namespace","name":"example-service","kind":"HTTPRoute"}
This line recurs multiple times within a couple of minutes for the exact same object, always followed shortly after by another full reconciling gateways / processing HTTPRoute cycle that reprocesses the entire ~300-route resource tree (not just the changed object). No error is ever logged for the status write — it simply never lands.
Cadence observed (approximate, from controller logs):
t+0s reconciling gateways / processing HTTPRoute (example-service)
t+0.3s received a status update (example-service)
t+0.3s full xDS resource re-list sent to data plane
t+6s reconciling gateways / processing HTTPRoute (example-service) <- again
t+6s processing Backend / EndpointSlice (example-service) <- again
...
Hypothesis
We suspect this is a livelock in the status-update path: each full reconcile cycle (triggered roughly every ~6s due to the volume of watch events across ~300+ routes/services/endpointslices, likely amplified by ArgoCD's auto-sync/self-heal touching many of these objects independently) re-enqueues a status update for every route including ones with pending, not-yet-flushed writes. If the status updater coalesces/batches by object key without protecting an in-flight write from being superseded by a newer enqueue, the actual client.Status().Update() call for high-churn periods may never fire before being preempted — resulting in a permanent gap for objects that landed in an unlucky window, without ever surfacing an error.
This is not a data-plane routing bug — Envoy Gateway continues to correctly translate and program these routes. It's purely a status-reporting gap, but it causes GitOps tools like ArgoCD to permanently show these resources as Progressing/out-of-sync since they never see the expected Accepted/ResolvedRefs conditions.
What we ruled out
- Not an RBAC issue — the controller's ClusterRole includes
updateonhttproutes/status, verified viakubectl auth can-i --list. - Not a stale/incorrect condition (unlike fix(status): separate listener programmed state from HTTPRoute Accepted condition #9129 / commit 5b7a61f, which is about routes stuck at
Accepted: Falsedue toNoReadyListeners— our routes have no conditions at all, not an incorrect one). - Not fixed by restarting/recreating the object — a freshly created
HTTPRoute(new UID) still lands in the same empty-status state within its first ~90 seconds of life, while functioning correctly in the data plane throughout. - Checked v1.8.2 release notes/cherry-picks — none appear to address this specific status-updater behavior.
Ask
- Is this a known scalability limit of the status updater under high watch-event churn?
- Is there a metric/flag to inspect the status-updater's internal queue/coalescing behavior for debugging (e.g. pending vs. flushed counts)?
- Would increasing
--status-update-batch-period(if such exists) or reducing reconcile-triggering churn (e.g., predicate filtering on truly-changed fields) mitigate this?
Happy to provide additional debug/log capture if there's a specific flag or endpoint to enable.
Activity
chaosbox commentedon Jul 21, 2026
Update: restarting the controller resolves it (workaround)
Confirmed a full restart of the
envoy-gatewaycontrol-plane deployment clears the issue completely.Before restart: 4
HTTPRouteobjects in the affected namespace (all created within the last ~1-2 weeks) hadstatus.parents: [].After restart (rollout completed in ~2 min, 3/3 new replicas):
All previously-empty routes in the cluster got their status written at the exact same timestamp, right after the new leader took over — consistent with our livelock hypothesis (a fresh reconcile cache + leader election lets the status writer flush cleanly, whereas the old leader's queue appears to have been permanently stuck under continuous churn).
Notes on the restart itself:
envoy-gatewaycontroller and kept serving traffic throughout (verified via live/readyzand/livezchecks through the gateway before and after).kubectl get httproute -Ashowed zero routes cluster-wide with an emptystatus.parents, confirming the backlog was fully drained, not just for the one route we were investigating.This is a viable operational workaround for anyone hitting the same symptom, but doesn't address the underlying cause — the status-write backlog will presumably reoccur under sustained churn given enough time/route count. Still interested in whether there's a config knob (e.g. status-update batch period, or event-churn dampening) that would prevent this from recurring rather than just needing periodic restarts.
zhaohuabing commentedon Jul 22, 2026
I suspect the cached
client.Getin the status updater'sapply()(status_updater.go#L96). It uses the cache-backedmgr.GetClient(), so under heavy watch churn the informer lags and the Get returns a stale result — either a NotFound for a just-created route not yet cached, or a stale copy of a deleted+recreated one (e.g. ArgoCD self-heal). Either way the write is skipped silently: theNotFoundpath returns early, and the stale-copy path hitsisStatusEqualand bypasses as "unchanged."fix: confirm NotFound against the API server before dropping status w…
docs: add release note for envoyproxy#9566
fix: confirm NotFound against the API server before dropping status w…
fix: confirm NotFound against the API server before dropping status w…
[release-1.8] Cherry pick for v1.8.4 (#9877)