Skip to content

test(e2e): l4routes UDP leg dials 18082 and asserts per-VIP selection (038 PR 4) - #948

Merged
bpalermo merged 1 commit into
mainfrom
feat/tproxy-pr4-e2e
Sep 26, 2026
Merged

bpalermo merged 1 commit into
mainfrom
feat/tproxy-pr4-e2e

Conversation

@bpalermo

Copy link
Copy Markdown
Owner

PR 4 of the TPROXY plan (after #947). Nightly-only suite (e2e.yaml → l4-routes), so per-PR CI is not affected; the runs below are the evidence.

What

  • e2e/l4routes.sh: the UDP leg dials 18082 (ProxyL4OutboundPort, the L4 spelling plaintext UDP now shares with raw TCP) instead of 18081; a second UDPRoute parent l4udp-front2 → l4udp-c beside l4udp-front → l4udp-a; new T3.3 selection assertion (20 datagrams per VIP, exhaustive, each answered by its own backend); T3.0 and T3.2 cover both VIPs; header/dump_state/failure text describe the divert, not the REDIRECT.
  • Docs: getting-started (UDPRoute dials :18082; the one-UDPRoute-service-per-pod limit is gone, the split limit stays — UDPRoute ignores backend weights and collapses multiple services onto one cluster #873), workload-requirements (UDP row in the L4 spelling table; :18082 scoped capture is both transports, UDP has no any-port capture), configuration (exclude-outbound-ports covers TCP+UDP).

Three runs on kind — labelled for what each can show

build script result what it proves
old (pre-#947 images) new TCP + TLS legs green; T3.0 green; T3.1 RED NOREPLY=10 the port change is real — 18082/udp is uncaptured by the REDIRECT CNI. It is not the second-service drop (that would be T3.3).
new (#947) new green end to end — T3.1 40/40 alpha; T3.3 20/20 front→l4udp-a and 20/20 front2→l4udp-c; T3.2 20/20 unanswered one listener, one matcher arm per dialled VIP
new, one arm removed in the agent (selectUDPCaptureArms keeps the first service only) new T3.3 RED: "l4udp-front2 was never answered by l4udp-c: NOREPLY=10 … the pre-038 shape" the selection assertion can fail on its own, with the die line naming the shape

The TCP and TLS legs stayed green on every run — the regression net for TCP-under-TPROXY (#947 moved TCP capture to the divert too).

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

… (038 PR 4)

The UDP leg dials ProxyL4OutboundPort (18082) -- the L4 mesh spelling plaintext
UDP now shares with raw TCP -- instead of 18081, and gains a SECOND UDPRoute
parent (l4udp-front2 -> l4udp-c) beside the first so T3.3 can assert what the
transparent capture in #947 made possible: one listener, one udp_proxy matcher
arm per dialled ClusterIP. T3.0 and T3.2 cover both VIPs. The header comment,
dump_state selectors and the T3.1 failure text describe the divert rather than
the REDIRECT it replaced.

Three runs on kind, each labelled for what it can and cannot show:

  * OLD build (pre-#947 images), new script: TCP and TLS legs green (the
    regression net for TCP-under-TPROXY), T3.0 green, T3.1 RED with
    NOREPLY=10 -- red because 18082/udp is uncaptured by the REDIRECT CNI, NOT
    because the second service is dropped.
  * NEW build: green end to end -- T3.1 40/40 alpha, T3.3 20/20 to front by
    l4udp-a AND 20/20 to front2 by l4udp-c, T3.2 20/20 unanswered again.
  * NEW build with ONE arm removed in the agent (selectUDPCaptureArms keeps
    the first service only): T3.3 RED -- "l4udp-front2 was never answered by
    l4udp-c: NOREPLY=10 ... the pre-038 shape". The selection assertion can
    fail on its own, not only via an uncaptured port.

Docs: getting-started (UDPRoute dials :18082; the one-service-per-pod limit is
gone, the split limit stays), workload-requirements (the L4 spelling table
gains the UDP row; ":18082 does not require redirect-all" now says both
transports and that UDP has no any-port capture), configuration
(exclude-outbound-ports covers TCP+UDP).

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
@bpalermo
bpalermo merged commit 18f71f0 into main Sep 26, 2026
24 checks passed
@bpalermo
bpalermo deleted the feat/tproxy-pr4-e2e branch September 26, 2026 11:31
bpalermo added a commit that referenced this pull request Sep 26, 2026
…UDP leg (#949)

Chart 0.93.3 -> 0.94.0: #947 changed what every managed pod's CNI programs
(mark-and-divert for both transports, no REDIRECT) and where plaintext UDP is
served (18082, transparent, per-VIP matcher). A breaking data-plane change
takes a minor bump; the deploy notes are in the PR.

e2e/soak/udp.yaml: the first continuous UDP client on talos-main -- `udp-echo`
(UDP-primary, socat RECVFROM echo, 3 replicas spread, a self-parented
UDPRoute) and the `udp-dialer` DaemonSet dialling
udp-echo.<ns>.aether.internal:18082 from every node with a unique token per
datagram, reporting AETHER_METRIC udp_dialer={cycles,ok,fail}. The echo answers
a CONNECTED nc client from the dialled port, verified locally as non-root with
a read-only root. README: run step, grading subsection (dialer tallies, the
udp.capture_udp_* rx/tx series, udp_no_healthy_backend, and the CNI's
capture_divert error counter that must stay at zero), files entry.

docs/proposals/038: status note recording that Phases 1, 2 and 5 were
superseded by the both-transports plan and shipped as #944-#948 with no mode
flag; Phases 3 and 4 stand.


Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

Co-authored-by: Claude Fable 5.1 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant