You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Edge public listener replies are dropped on edge nodes with no tenant pods #1544
An Edge public listener whose backends all run on gateway nodes reports itself ready but never completes a connection. Clients reach the provider, and the node drops every reply the provider sends.
This blocks MASQUE through a public listener in any cell where every edge node also runs a gateway, which is the case gateway local delivery was added for in #1527.
The node never learns where to send listener replies, because only tenant pod setup and the repair pass that follows tenant attachments record its uplink, so an edge node whose only attachment is a listener's never gets one.
Acceptance criteria
A client completes TCP and QUIC handshakes over IPv4 and IPv6 with a listener backend on an edge node that hosts no tenant attachment
Evidence, from a cell where every edge node runs a gateway with GALACTIC_GATEWAY_LOCAL_DELIVERY=true, and one masque-provider pod on node-a serves the public-listener component.
Control plane is all green. Every NetworkGateway reports status.localDelivery: true. EdgeListenermasque-public is Programmed (BackendsReady, 1 of 1 attachments serving), its two NetworkServices are Ready, and the four ServiceVIPBindings on node-a are Bound. A TCP connect or HTTP/3 request to 192.0.2.10:443 or [2001:db8::10]:443 times out.
Counters on node-a across five TCP connects to the IPv4 VIP:
rising, matched by egress galactic_usid_vrf_dropped_packets_total on the ingress gVPC's VRF
Maps on node-a, read from a galactic-debug node pod:
edge_listener_link_table holds the listener attachment's host link, as expected.
vip_xlat_table holds all eight rows the bindings need: ingress and egress, TCP and UDP, both families, mapping the attachment's address and port 8443 to each VIP and port 443.
public_uplink_table holds its one row all zeros, link_ifindex: 0.
So usid_egress finds the VIP translation, cannot redirect the reply because the uplink is unset, and falls through to the final listener_link() drop in internal/plumbing/ebpf/prog/usid.c.
Why the row is never written, from reading main:
refreshPublicUplink (internal/installer/public_uplink.go) only rewrites a row that already exists. A row never written is left to CNI ADD or the datapath repair.
The datapath repair (internal/gc/datapath_repair.go) returns before FillNode when discoverAttachments finds no attachments, and FillNode is what calls ResolvePublicUplink and writes the row.
node-a runs no tenant pods, so CNI ADD never runs there, and its only attachment is the listener's, which galactic-edge creates rather than CNI ADD.
The read of the code is an inference. The all-zero row and the drop are observed. Tenant NLB VIPs on the same gateways keep working because their backends sit on a compute node whose CNI ADD writes the row.
). That writes the link's policy, ifindex_vrf_table and egress-kind rows and attaches usid_egress and tp_deliver, but never touches public_uplink_table (
So an edge node whose only attachments are galactic-edge host links keeps an all-zero row, and usid_egress drops every listener reply after translating it. No regression test exists yet. The fix plan follows once it is agreed.
RegisterHostLink records the node's public uplink the same way CNI ADD does. After it attaches usid_egress, it calls registerPublicUplink, non-fatal with a warning, so a link still registers while the uplink neighbor is unresolved. registerPublicUplink resolves through a package variable that defaults to srv6.ResolvePublicUplink, so a test can inject it. Nothing else changes: once the row exists, the uplink watch keeps it current.
Two alternatives were set aside. Writing a never-written row from the uplink watch would change its rule that a node with no backend records nothing. Running the datapath repair on nodes with no CNI attachment would need it to discover edge host links, and galactic-edge already registers them again after a map reload, so fixing the registration covers that case too.
Test: a root test in attachreg registers a host link with a resolver that returns an uplink and checks the row is written, then with one that fails and checks registration still succeeds with the row unset. It fails on main today.
Risk: every galactic-edge host link registration now writes the uplink row. Where CNI ADD has already written it, the write is the same value. No API, config or migration change.
Activity
privateip commentedon Nov 30, 2026
Evidence, from a cell where every edge node runs a gateway with
GALACTIC_GATEWAY_LOCAL_DELIVERY=true, and onemasque-providerpod onnode-aserves thepublic-listenercomponent.Control plane is all green. Every
NetworkGatewayreportsstatus.localDelivery: true.EdgeListenermasque-publicisProgrammed(BackendsReady, 1 of 1 attachments serving), its twoNetworkServices areReady, and the fourServiceVIPBindings onnode-aareBound. A TCP connect or HTTP/3 request to192.0.2.10:443or[2001:db8::10]:443times out.Counters on
node-aacross five TCP connects to the IPv4 VIP:galactic_edge_rule_packets_total, listener TCP 443 rulegalactic_edge_local_deliveries_totalgalactic_edge_drops_totalallow-listeneron the listener attachmentallow-listener-repliesgalactic_usid_drops_total{reason="listener_unmatched_egress"}galactic_usid_vrf_dropped_packets_totalon the ingress gVPC's VRFMaps on
node-a, read from a galactic-debug node pod:edge_listener_link_tableholds the listener attachment's host link, as expected.vip_xlat_tableholds all eight rows the bindings need: ingress and egress, TCP and UDP, both families, mapping the attachment's address and port 8443 to each VIP and port 443.public_uplink_tableholds its one row all zeros,link_ifindex: 0.So
usid_egressfinds the VIP translation, cannot redirect the reply because the uplink is unset, and falls through to the finallistener_link()drop ininternal/plumbing/ebpf/prog/usid.c.Why the row is never written, from reading
main:refreshPublicUplink(internal/installer/public_uplink.go) only rewrites a row that already exists. A row never written is left to CNI ADD or the datapath repair.internal/gc/datapath_repair.go) returns beforeFillNodewhendiscoverAttachmentsfinds no attachments, andFillNodeis what callsResolvePublicUplinkand writes the row.node-aruns no tenant pods, so CNI ADD never runs there, and its only attachment is the listener's, which galactic-edge creates rather than CNI ADD.The read of the code is an inference. The all-zero row and the drop are observed. Tenant NLB VIPs on the same gateways keep working because their backends sit on a compute node whose CNI ADD writes the row.
privateip commentedon Nov 30, 2026
Valid, confirmed against
mainat f8eee0c by reading the source, on top of the map dump in the comment above.Two registration paths write an attachment's datapath rows, and only one of them records the node's public uplink:
attachreg.RegisterDatapath, which callsregisterPublicUplinkon every ADD as a per-node, non-fatal step (galactic/internal/plumbing/ebpf/attachreg/register.go
Lines 202 to 211 in f8eee0c
attachreg.RegisterHostLink(galactic/internal/edge/agent/setup.go
Line 51 in f8eee0c
ifindex_vrf_tableand egress-kind rows and attachesusid_egressandtp_deliver, but never touchespublic_uplink_table(galactic/internal/plumbing/ebpf/attachreg/hostlink.go
Lines 50 to 104 in f8eee0c
Neither later pass fills the gap on a node with no CNI attachment:
FillNodewhen it discovers no attachments (galactic/internal/gc/datapath_repair.go
Lines 181 to 186 in f8eee0c
So an edge node whose only attachments are galactic-edge host links keeps an all-zero row, and
usid_egressdrops every listener reply after translating it. No regression test exists yet. The fix plan follows once it is agreed.privateip commentedon Nov 30, 2026
Fix plan, agreed.
RegisterHostLinkrecords the node's public uplink the same way CNI ADD does. After it attachesusid_egress, it callsregisterPublicUplink, non-fatal with a warning, so a link still registers while the uplink neighbor is unresolved.registerPublicUplinkresolves through a package variable that defaults tosrv6.ResolvePublicUplink, so a test can inject it. Nothing else changes: once the row exists, the uplink watch keeps it current.Two alternatives were set aside. Writing a never-written row from the uplink watch would change its rule that a node with no backend records nothing. Running the datapath repair on nodes with no CNI attachment would need it to discover edge host links, and galactic-edge already registers them again after a map reload, so fixing the registration covers that case too.
Test: a root test in
attachregregisters a host link with a resolver that returns an uplink and checks the row is written, then with one that fails and checks registration still succeeds with the row unset. It fails onmaintoday.Risk: every galactic-edge host link registration now writes the uplink row. Where CNI ADD has already written it, the write is the same value. No API, config or migration change.
fix(attachreg): Record the public uplink when registering a host link
docs(attachreg): Say what retries an unresolved public uplink