Repository navigation
fix(runtime): keep unpublished MicroVM listeners in-guest for scale relay (#370) - #378
Merged
Merged
Conversation
…elay (#370) TSI unpublished listen returns -EPERM so krun-guest keeps a native INET socket that guest-init can loopback-connect. Scale ready_replicas counts declared endpoints only after the advertised host URL serves a request. Pins libkrun daec6e8 / libkrun#12. Does not restore scale port_map or flip B2. Co-authored-by: Cursor <[email protected]>
4 tasks
This was referenced Sep 14, 2026
This was referenced Sep 16, 2026
ZhiXiao-Lin
added a commit
that referenced
this pull request
Sep 17, 2026
Bump vendored libkrun so connect(127.0.0.1|::1, guest_port) reaches the host listener. Drop the stale TSI localhost health-check warning now that unpublished (#378) and published (#448) loopback both work. Co-authored-by: Cursor <[email protected]>
ZhiXiao-Lin
added a commit
that referenced
this pull request
Sep 17, 2026
* fix(tsi): deliver published-port FIN without 5s reaper delay (#447) Bump vendored libkrun so reverse-proxy OP_SHUTDOWN is forwarded after data (or for half-close). Premature both-direction close from a forking parent remains ignored, matching release(). Co-authored-by: Cursor <[email protected]> * fix(tsi): hairpin in-guest loopback to published -p ports (#448) Bump vendored libkrun so connect(127.0.0.1|::1, guest_port) reaches the host listener. Drop the stale TSI localhost health-check warning now that unpublished (#378) and published (#448) loopback both work. Co-authored-by: Cursor <[email protected]> * build(libkrun): pin vendored submodule to upstream main f7c6918 Use the merged libkrun main tip (#13 FIN + #14 hairpin) instead of the parallel vendor-branch tip, matching A3S-Lab/libkrun production history. Co-authored-by: Cursor <[email protected]> --------- Co-authored-by: Cursor <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
-EPERMso krun-guest keeps a native in-guest INET socket. Fixes [linux][P1] runtime: MicroVM TCP relay rejects all scale endpoints #370. Guest-init loopback-connects127.0.0.1then::1; scale still clearsport_mapfor the generation-fenced host relay.daec6e8is fix(tsi): return EPERM for unpublished listen so guests keep INET sockets libkrun#12 on the current Box pin lineage (not a retarget of libkrunmain).-EADDRNOTAVAILfrom fix(network): stop TSI auto-publishing unpublished guest listeners (#371) #377 would fail guestlisten()instead of falling back.ready_replicascounts a declared endpoint only after a real HTTP request through the live advertised host URL succeeds. Probe-then-drop is gone; unreachable replicas are excluded instead of publishing a dead URL.port_map, or treat fix(network): stop TSI auto-publishing unpublished guest listeners (#371) #377 as the data-plane fix.Test plan
cargo test -p a3s-box-runtime --lib scale::guest_loopback_addrs_try_ipv4_then_ipv6port_map, HTTP server that keeps listening after TCP close; advertised URL returns HTTP;ready_replicasmatches working URLs; >=3 reps-pMade with Cursor