Skip to content

Nightly e2e (waypoint + replicator) red since the mesh-DNS decoupling — harnesses never wait for aether-mesh-dns #589

Closed

Description

@bpalermo

Symptom

The scheduled e2e workflow has failed three nights running (07-23, 07-24, 07-25). Last green: 07-22.

Two jobs fail, both with curl 000 (no connection at all):

waypoint    ✗ cross-cluster call returned 000000 (expected 200) — inspect a's EDS for echo ...
replicator  ✗ cross-region call returned 000 (expected 200)

Cause

The commits between the last green and first red are exactly the mesh-DNS decoupling — nothing else:

6e72f36 07-22 07:46  fix(mesh-dns): readiness probe timeout+CPU headroom (#581)
8a69756 07-22 07:25  feat(mesh-dns): readiness gate so surge rolls are hitless (#580)
9c54cd6 07-22 07:01  feat(mesh-dns): decouple resolver into a surge-capable daemon (#579)

Both failing assertions dial a mesh DNS name:

curl "http://echo.$TEST_NS.$MESH_DOMAIN:18081/"   # echo.<ns>.aether.internal

…but both harnesses gate readiness only on the agent:

kubectl rollout status ds/aether-agent --timeout=180s   # waypoint:213, replicator:235

Before #578, waiting on the agent implied DNS was serving, because the agent was the resolver. After #579 that inference is invalid: aether-mesh-dns is a separate DaemonSet, and the harness proceeds to resolve a mesh name while the component that answers it may not be up. The retry loop (6 × 6s) doesn't reliably cover a cold DaemonSet start on a loaded CI runner.

This is a harness gap introduced by the decoupling, not a data-plane regression — talos has been running the decoupled resolver hitless (soak-validated, agent-roll +1 / daemon-roll +0).

Fix

  1. Wait for ds/aether-mesh-dns alongside ds/aether-agent in both harnesses.
  2. Dump mesh-dns pod state + logs when the assertion fails. A bare curl 000 is ambiguous between "didn't route" and "didn't resolve"; that ambiguity is why this cost a bisect rather than being self-evident.

Caveat

The missing wait is definitively a defect, but it is not proven to be the whole cause — the daemon could also be failing outright under kind (its readiness probe is CPU-sensitive, per #581, and CI runners are exactly that environment). The diagnostics in (2) exist so the next run answers this conclusively instead of requiring another bisect.

Also worth fixing separately

Three silent red nights is the larger problem. The scheduled e2e failing should surface somewhere (issue, notification) rather than waiting to be noticed by chance.

Activity

  1. bpalermo commented on Jul 25, 2026

    @bpalermo
    OwnerAuthor

    Fixed and verified green. Full e2e on the fix branch: build, gateway-http, mesh-http, waypoint, replicator — all success (run 30173686851). That is the same suite that failed on 07-23/24/25 and again on a re-run this evening, so this is evidence rather than assumption.

    What it actually was

    Not the missing readiness wait (that was real, but not the cause) and not the CPU-sensitive probe. The diagnostics added in #590 handed over the answer on the first red run — every mesh-dns pod in both clusters:

    ERROR "failed to watch mesh-DNS snapshot dir; records will not reload until restart"
          error: "no such file or directory"
          dir:   "/host/var/lib/aether/registry/mesh-dns"
    
    1. The mesh-dns/ subdir was created lazily by the agent, on its first WriteSnapshot.
    2. The daemon mounts that volume readOnly: true — it cannot create the dir itself.
    3. On a fresh cluster the daemon wins the race, finds no dir, and its fsnotify watch fails permanently.
    4. It still reported Ready 1/1, because the ready-marker is written after bind, not after records load — so Kubernetes saw a healthy pod that could answer nothing.

    This was a latent production bug, not a test artifact. It is invisible on an established cluster (on talos the dir has existed since #577) and only bites a fresh install — which is exactly what every kind e2e run is. No amount of soaking on talos could have surfaced it; the multi-cluster e2e caught a real defect.

    Fixes

    Still open

    #591's auto-filing is gated on github.event_name == 'schedule' and so is unverified — it can only be exercised by a real nightly failure, not a manual dispatch.

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