Skip to content

HTTPRoute status.parents never populated under high watch-event churn (~300+ routes), despite correct data-plane routing #9536

Closed

Description

@chaosbox

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 chart gateway-helm-v1.8.1
  • ~306 HTTPRoute objects attached to a single shared Gateway (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/Gateway objects cluster-wide
  • 3 replicas of the envoy-gateway controller (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: healthy in /clusters.
  • Live HTTP requests through the gateway to the route's hostname succeed (200 on /readyz, /livez; app-level 404 on 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 update on httproutes/status, verified via kubectl 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: False due to NoReadyListeners — 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

  1. chaosbox commented on Jul 21, 2026

    @chaosbox
    Author

    Update: restarting the controller resolves it (workaround)

    Confirmed a full restart of the envoy-gateway control-plane deployment clears the issue completely.

    kubectl rollout restart deployment/envoy-gateway -n envoy-gateway
    

    Before restart: 4 HTTPRoute objects in the affected namespace (all created within the last ~1-2 weeks) had status.parents: [].

    After restart (rollout completed in ~2 min, 3/3 new replicas):

    $ kubectl get httproute example-service -n team-namespace -o jsonpath='{.status}'
    {"parents":[{"conditions":[{"lastTransitionTime":"2026-07-21T09:03:36Z","message":"Route is accepted","observedGeneration":1,"reason":"Accepted","status":"True","type":"Accepted"},{"lastTransitionTime":"2026-07-21T09:03:36Z","message":"Resolved all the Object references for the Route","observedGeneration":1,"reason":"ResolvedRefs","status":"True","type":"ResolvedRefs"}],"controllerName":"gateway.envoyproxy.io/gatewayclass-controller","parentRef":{"group":"gateway.networking.k8s.io","kind":"Gateway","name":"envoy-gateway","namespace":"envoy-gateway"}}]}
    

    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:

    • Zero data-plane impact — the Envoy proxy pods are a separate Deployment from the envoy-gateway controller and kept serving traffic throughout (verified via live /readyz and /livez checks through the gateway before and after).
    • A rolling restart (not a full delete) was used, so there was no gap in control-plane availability either.
    • After the restart, kubectl get httproute -A showed zero routes cluster-wide with an empty status.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.

  2. added
    kind/bug
    and removed on Jul 22, 2026
  3. zhaohuabing commented on Jul 22, 2026

    @zhaohuabing
    Member

    I suspect the cached client.Get in the status updater's apply() (status_updater.go#L96). It uses the cache-backed mgr.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: the NotFound path returns early, and the stale-copy path hits isStatusEqual and bypasses as "unchanged."

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

    kind/bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions