Skip to content

Envoy isolated server doesn't reach ready on Linux Docker Engine #5922

Closed

Description

@ChrisJBurns

Part of #5900. Blocker for the Envoy legs of #5918.

Symptom

When TOOLHIVE_NETWORK_PROXY=envoy is set and an isolated workload is started, the server times out before reaching running state on Linux Docker Engine CI runners (Ubuntu). The same setup works on Docker Desktop (macOS) but is slow — ~85s to ready even in the success case, which is abnormal and may be the same root cause under load.

Squid-backed isolated servers start cleanly in the same environment and on the same runner.

Evidence

From #5918 CI (proxy shard):

timeout waiting for MCP server ni-envoy-explicit-<seed> to be running  [122s]
timeout waiting for MCP server ni-envoy-default-<seed> to be running   [121s]
timeout waiting for MCP server ni-envoy-deny-<seed> to be running      [121s]

Three consecutive Envoy specs, all expiring at 120s. Squid equivalents pass.

Leading hypothesis

The Envoy container is created with a STRICT_DNS ingress cluster pointing at the MCP container — which is created after the Envoy container (in SetupEgress, before SetupIngress). Although STRICT_DNS retries lazily, the combination of ingress listener + DFP egress cluster initialisation under a Internal:true Docker network may be slower than expected on Linux Engine. Needs Envoy container log capture on a Linux runner to confirm.

How to investigate

Run TOOLHIVE_NETWORK_PROXY=envoy thv run --isolate-network <server> on a Linux Docker Engine host, capture docker logs <name>-egress from the Envoy container during startup, and look for upstream-resolution errors or listener-binding delays.

Impact

The Envoy e2e legs in network_isolation_test.go are marked Pending (referencing this issue) until resolved. Squid coverage is unaffected.

Activity

  1. added
    needs-triage
    on Jul 22, 2026
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

    needs-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions