Skip to content

[linux][P1] runtime: MicroVM TCP relay rejects all scale endpoints #370

Closed

Description

@CharlieZiChen

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.log
  • evidence/w10/followup/reconfirm/batch1/N1-2/run.log
  • evidence/w10/followup/reconfirm/batch1/N1-3/run.log
  • evidence/w10/followup/b17/summary.md
  • evidence/w10/followup/b17/endpoint-relay-probe*.log
  • evidence/w10/followup/c/summary.md (same networking failure in Sandbox C3)

Regression coverage

  1. Test at least two actively-closing HTTP services; do not make success depend on nc EOF semantics.
  2. Compare guest-local, TSI host, and runtime relay paths.
  3. Use dynamic guest/host ports and run at least 3 independent repetitions.
  4. Count a replica as ready only after an actual endpoint request succeeds.

Activity

  1. changed the title [-][linux] runtime: MicroVM TCP relay rejects all scale endpoints[/-] [+][linux][P1] runtime: MicroVM TCP relay rejects all scale endpoints[/+] on Sep 14, 2026
  2. CharlieZiChen commented on Sep 14, 2026

    @CharlieZiChen
    Author

    Linux regression retest after the reported fix

    Retested on the current remote main before this report:

    Reproduction contract

    • port_map=[]
    • Guest command: /http-fixture serve 0.0.0.0 8080
    • Guest listener is confirmed alive
    • Scale API binds a transient candidate host listener and probes it before publication
    • Host client records first byte, HTTP status, and total result
    • Fresh isolated A3S_HOME for each trial

    Results

    Trial Guest listener Advertised endpoint Host first byte Host HTTP status ready_replicas
    1 listening on 0.0.0.0:8080 probe timed out none 000 0
    2 listening on 0.0.0.0:8080 probe timed out none 000 0
    3 listening on 0.0.0.0:8080 probe timed out none 000 0

    The scale API repeatedly logged:

    Scale replica is running but its advertised endpoint is not reachable
     timed out probing advertised endpoint http://127.0.0.1:<dynamic-port>
    

    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 status 000. 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 from ready_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.txt
    • evidence/w10/followup/remote-current/n1-r2-result.txt
    • evidence/w10/followup/remote-current/n1-r3-result.txt
    • evidence/w10/followup/remote-current/n1-r1-api.log
    • evidence/w10/followup/remote-current/n1-r2-api.log
    • evidence/w10/followup/remote-current/n1-r3-api.log
    • evidence/w10/followup/remote-current/STATUS-20260914.md
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