Repository navigation
test(e2e): register the UDP workloads as protocol "udp" and keep the #931 instruments - #938
Merged
Merged
Conversation
…931 instruments Last of the #931 series, and the one that proves it. The l4-routes UDPRoute leg was red for three runs (two nightlies plus a local kind reproduction); it is green now. THE CHANGE THAT MATTERS IS ONE ANNOTATION deploy_l4echo_workload derives the registry protocol from the listener mode instead of hardcoding "tcp": local protocol="tcp" [ "$mode" = "udp" ] && protocol="udp" Derived rather than a sixth parameter, because every --mode=udp workload must register "udp" and every other mode must not; deriving makes the two impossible to get out of step. The comment block that explained the old workaround is rewritten. It had described, accurately for its time, that the UDP workloads register "tcp" because "udp" was not an accepted value and the TCP classification supplied what the UDP path needed. That explanation was load-bearing evidence for #931: it wrote the lie down without noticing it was a bug. RESULT, LOCAL KIND RUN ✓ 10/10 datagrams unanswered: the UDP listener does not exist until a UDPRoute does ✓ 40/40 datagrams answered by l4udp-a, 0 by the weight-0 backend ✓ 10/10 datagrams unanswered again: the route, not the fixture, was carrying them 15 of 15 assertions green (TCPRoute 6, TLSRoute 6, UDPRoute 3). And the fix is visible in the live Envoy config: before: health_l4udp-a-... 127.0.0.1:9001 failed_active_health_check: true after: health_l4udp-a-... 127.0.0.1:18008 HEALTHY THE INSTRUMENTS STAY Folded in the diagnostics that located the root cause, so nobody has to rebuild them: - l4echo --mode=udp logs every receipt. Without it "the datagram never arrived" and "it arrived and the reply was lost" both read as NOREPLY at the client, and they are different bugs in different layers. Its SILENCE is what pointed at the upstream hop while the CNI redirect and Envoy's socket were both demonstrably fine. - dump_state surfaces those receipts, and greps for #931's new "no routable endpoint" warning. - the etcd key dump widens from `grep -i tcp` to PROTOCOL_(TCP|UDP): a UDP workload registered under the TCP key is exactly the #931 misconfiguration, and this dump is one of the few places it shows. The receipt log is verified in the GREEN case too (5 rx lines this run), not only in the failure it was written for. Refs #931 Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
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.
Last of the #931 series, and the one that proves it. The
l4-routesUDPRoute leg was red for three runs — two nightlies plus a local kind reproduction. It is green now.The change that matters is one annotation
deploy_l4echo_workloadderives the registry protocol from the listener mode instead of hardcoding"tcp":Derived rather than a sixth parameter, because every
--mode=udpworkload must register"udp"and every other mode must not — deriving makes the two impossible to get out of step.The comment block explaining the old workaround is rewritten. It had described, accurately for its time, that the UDP workloads register
"tcp"because"udp"was not accepted and the TCP classification supplied what the UDP path needed. That explanation was load-bearing evidence for #931 — it wrote the lie down without noticing it was a bug.Result, local kind run
15 of 15 assertions green — TCPRoute 6, TLSRoute 6, UDPRoute 3.
And the fix is visible in the live Envoy config, which is the cleanest before/after available:
health_l4udp-a-…target127.0.0.1:9001127.0.0.1:18008failed_active_health_check: trueHEALTHYThe instruments stay
Folded in the diagnostics that located the root cause, so nobody has to rebuild them:
l4echo --mode=udplogs every receipt. Without it, "the datagram never arrived" and "it arrived and the reply was lost" both read asNOREPLYat the client — different bugs in different layers. Its silence is what pointed at the upstream hop while the CNI redirect and Envoy's socket were both demonstrably fine.dump_statesurfaces those receipts and greps for UDP floor blackholes every UDP-only backend: a TCP health check on the app port marks it UNHEALTHY, and udp_proxy drops the datagram with no stat and no log #931's new "no routable endpoint" warning (from feat(agent): count and log a udp: cluster with no routable endpoint #937).grep -i tcptoPROTOCOL_(TCP|UDP). A UDP workload registered under the TCP key is exactly the UDP floor blackholes every UDP-only backend: a TCP health check on the app port marks it UNHEALTHY, and udp_proxy drops the datagram with no stat and no log #931 misconfiguration, and this dump is one of the few places it shows.The receipt log is verified in the green case too — 5 rx lines this run — not only in the failure it was written for.
Series
e78cb034f5677763deab3udp:entries92430b4f66a438Closes #931 once merged. The
l4-routeshalf of #927 goes with it; thereplicatorhalf was a flake that passed unchanged.Still open and deliberately untouched: per-service UDP selection (#916 / proposal 038 Phase 2, gated on a node spike), weighted UDP splits (#873), and #932 (
UDPLoadAssignment's clone carries waypoint metadata).🤖 Generated with Claude Code
https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr