Repository navigation
Description
Summary
On Linux/KVM (a3s-box v3.2.5 / Box revision c9a45455), the MicroVM runtime TCP relay rejects every tested scale-api service endpoint. The scale controller reports replicas as ready, but requests to the returned endpoint URLs fail with MicroVM port 8080 rejected the connection, Connection reset by peer, or HTTP 000.
Severity: P1 (runtime network path unavailable; scale endpoint readiness is false)
Acceptance case: B17 scale-api endpoint relay / A3 R17 networking / C3 Sandbox R17 networking
Local tracking: N1
Expected
When scale-api reports an endpoint as ready, a request to the returned endpoint URL completes and reaches the guest service. If the relay is unavailable, the replica must not be counted in ready_replicas and the API must expose a diagnosable failure state.
Actual
The control plane converges, but the data plane does not:
ready_replicas=2
[FAIL] endpoints relay 0/2
Scale endpoint relay failed ... MicroVM port 8080 rejected the connection
The same failure is reproduced with a server that actively closes the connection, so this is not caused only by the busybox nc EOF behavior. Guest-local access and the TSI host path work; the failing path is the runtime relay chain (local_execution/port.rs -> shim portfwd.sock -> guest-init relay).
Repro
# Linux user lane; use the release binary and a separate A3S_HOME per run.
export A3S_HOME="$(mktemp -d /var/tmp/a3s-n1.XXXXXX)"
export A3S_BOX=/path/to/Box/src/target/release/a3s-box
export A3S_BOX_TEST_ALPINE_TAR=/path/to/evidence/images/alpine-oci.tar
# Start scale-api with a service exposing guest port 8080 and host port 0,
# scale web from 0 to 2, wait for ready_replicas=2, then curl every endpoint.
# The endpoint probes must record both HTTP status and the scale-api log.Observed in three independent runs:
N1-1: endpoint relay 0/2
N1-2: endpoint relay 0/2
N1-3: endpoint relay 0/2
Repro rate: 3/3 independent runs on 2026-09-14; the earlier A3, B17, and C3 lanes show the same failure path.
Environment
| Item | Value |
|---|---|
| OS | Ubuntu 24.04 x86_64 |
| Kernel | Linux 6.17 |
| Hypervisor | KVM / MicroVM |
| Binary | a3s-box 3.2.5 release |
| Commit | c9a45455ff59d53921e3abedffdfefd49eb0afa9 |
| Binary SHA-256 | b9783edb4881bbbcd968c10f539c746ac54bf5f05930309588cbe21db9eaa4b9 |
| Lane | Linux user lane; separate A3S_HOME and dynamic host ports |
Evidence
evidence/w10/followup/reconfirm/batch1/N1-1/run.logevidence/w10/followup/reconfirm/batch1/N1-2/run.logevidence/w10/followup/reconfirm/batch1/N1-3/run.logevidence/w10/followup/b17/summary.mdevidence/w10/followup/b17/endpoint-relay-probe*.logevidence/w10/followup/c/summary.md(same networking failure in Sandbox C3)
Regression coverage
- Test at least two actively-closing HTTP services; do not make success depend on
ncEOF semantics. - Compare guest-local, TSI host, and runtime relay paths.
- Use dynamic guest/host ports and run at least 3 independent repetitions.
- Count a replica as ready only after an actual endpoint request succeeds.
Activity
[-][linux] runtime: MicroVM TCP relay rejects all scale endpoints[/-][+][linux][P1] runtime: MicroVM TCP relay rejects all scale endpoints[/+]fix(runtime): keep unpublished MicroVM listeners in-guest for scale r…
fix(runtime): publish R17 Service endpoints only after live URL probe (…
fix(tsi): return EPERM for unpublished listen so guests keep INET soc…
CharlieZiChen commentedon Sep 14, 2026
Linux regression retest after the reported fix
Retested on the current remote main before this report:
origin/main:35a2afa3aa0d565d1f17fffcc3f180abbacf347apublish R17 Service endpoints only after live URL probe)daec6e8498461c767f64a10d565c8a64adffcd7cnc -ewas not used as the only serviceReproduction contract
port_map=[]/http-fixture serve 0.0.0.0 8080A3S_HOMEfor each trialResults
ready_replicas0.0.0.0:808000000.0.0.0:808000000.0.0.0:80800000The scale API repeatedly logged:
The guest HTTP process itself reached
listening addr=0.0.0.0 port=8080, while host requests to the advertised endpoint returned no first byte and status000. Therefore the failure remains between the host advertised endpoint and the guest loopback service, in the MicroVM relay data plane.Conclusion
N1 remains reproducible on the current remote main (
3/3). The #379 endpoint-readiness change correctly excludes the unreachable candidate fromready_replicas, but it did not remove the #370 relay data-plane failure. The endpoint was never considered ready because the probe could not obtain a first byte. Please reopen this issue for the remaining Linux regression/incomplete fix.Detailed local evidence from the isolated reruns:
evidence/w10/followup/remote-current/n1-r1-result.txtevidence/w10/followup/remote-current/n1-r2-result.txtevidence/w10/followup/remote-current/n1-r3-result.txtevidence/w10/followup/remote-current/n1-r1-api.logevidence/w10/followup/remote-current/n1-r2-api.logevidence/w10/followup/remote-current/n1-r3-api.logevidence/w10/followup/remote-current/STATUS-20260914.md