Skip to content

test(soak): drive the UDS-served services from k6 and roll aether-uds-csi mid-soak (#1108, #1109) - #1112

Merged
bpalermo merged 2 commits into
mainfrom
test/1108-1109-soak-csi-coverage
Oct 1, 2026
Merged

bpalermo merged 2 commits into
mainfrom
test/1108-1109-soak-csi-coverage

Conversation

@bpalermo

@bpalermo bpalermo commented Oct 1, 2026

Copy link
Copy Markdown
Owner

What

Soak harness coverage for the proposal-039 CSI carrier. No chart or code change.

#1108: k6 drives the UDS-served services

#1109: churn.sh rolls ds/aether-uds-csi

  • A new udscsi step runs at T0+162 and T0+270. Each slot sits midway between two svc rolls, clear of the TRIPLE (300), the new-SA steps (126 and 288), every proxy and agent roll, and the no-roll window (360–450). Each step does the following:
    1. rollout restarts the DaemonSet.
    2. As soon as the plugin pod on the victim's node is terminating, deletes one UDS pod. Step 1 takes a uds-echo pod, step 2 a uds-cr-echo pod. This makes NodeUnpublish wait for the new plugin.
    3. Waits for the rollout status, for the pod to finish Terminating, and for its replacement to become Ready.
    4. Checks that CSINode lists csi.aether.io on every plugin node.
    5. Counts FailedMount events during the step and in the 30 s after it.
    6. Logs one ROLLED aether-system/daemonset/aether-uds-csi victim=… window=down rollout=…s terminated=…s replacement=… ready=…s csinode=k/n failedmount_during=N failedmount_after=N line, or FAILED … bad=….
  • A FAILED step is a gate finding and does not abort the run, the same as FAILED newsa/…. Only a refused restart or a missing victim aborts.
  • --preflight now checks that ds/aether-uds-csi is present and patchable. It also checks that each victim Deployment exists and has a Running pod, and that the context may delete pods, list events and list CSINodes.
  • --uds-csi-once runs a single step. SOAK_UDSCSI=0 opts out. SOAK_UDSCSI_OFFSETS, SOAK_UDSCSI_VICTIMS and SOAK_UDSCSI_TIMEOUT are the knobs.
  • Tallies, updated everywhere they appear: 33 rolls (31 + 2 uds-csi) and grep -c ROLLED = 35. That covers the README table, schedule table, teardown greps, the two-drivers warning, the churn.sh header and footer, and the Files section.
  • README gates:
    • both roll lines ROLLED, with csinode=n/n and failedmount_after=0. The step line is the record, because Events expire after about 1 h.
    • aether_agent_uds_resolve_failures_total unchanged, compared raw at T0 and T0+8h per (node, reason). It also needs max_over_time over 8 h, because the agent rolls reset the counter. The counter is seeded, so the T0 query returning every row is its existence control.
    • New rows in the zero-reading table.

Evidence

  • Merged schedule: the schedule-building code, extracted and run on its own, gives 33 entries in order. The relevant stretches are …156 svc-3|162 udscsi|168 svc-4… and …264 svc-3|270 udscsi|276 svc-1|288 newsa|300 TRIPLE….
  • Pre-flight on kind (kind-udscsi-1107, aether + charts/udsecho):
    • --uds-csi-once --preflight returns OK.
    • With SOAK_UDSCSI_VICTIMS=aether-test/nope it refuses with exit 2: UDS victim aether-test/deployment/nope not found.
    • A full --preflight reports only the svc-N, edge and new-SA targets that kind does not have. All uds-csi checks pass.
  • --uds-csi-once on kind, three runs, covering both victims:
    ROLLED aether-system/daemonset/aether-uds-csi victim=aether-test/uds-echo-…-c4cz7@udscsi-1107-control-plane window=down rollout=4s terminated=6s replacement=uds-echo-…-swwp4 ready=13s csinode=1/1 failedmount_during=1 failedmount_after=0
    ROLLED aether-system/daemonset/aether-uds-csi victim=aether-test/uds-cr-echo-…-gnmd2@… window=down rollout=3s terminated=4s replacement=uds-cr-echo-…-n9h67 ready=7s csinode=1/1 failedmount_during=2 failedmount_after=0
    
    The during-step FailedMount is the expected one. The replacement was scheduled while the plugin was unregistered (driver name csi.aether.io not found in the list of registered CSI drivers), the kubelet retried, and the mount succeeded.
  • k6 under a uds-csi roll on kind: the real script, with only duration: 3m, ran in a mesh-managed pod with the runner's annotations. A uds-csi step, including the uds-echo pod deletion, fired mid-run. Results:
    • http_reqs=10796, with 10,244 dns failures. All of those are the TCP targets, which do not exist on kind.
    • The other 552 requests (5.1%) are the UDS targets, and every one succeeded. The by-target table has no uds row, and classified and attributed both reconcile.
    • A local 20 s run against unresolvable names did show both UDS endpoints classified per target (27 and 23 of 801).
  • make format produced no diff. bazel build --config=lint --@aspect_rules_lint//lint:fail_on_violation //... is clean, including shellcheck on //e2e/soak:soak_shell.

Not validated

  • The full 8 h schedule; only the merged order was checked.
  • On talos-main: nothing was run there. A read-only check shows uds-echo 2/2, uds-cr-echo 2/2, uds-client 1/1 (udsecho chart 2.0.0 at fe006e5) and ds/aether-uds-csi 5/5. No udsecho upgrade is needed. k6 reaches the services once the edited k6-runner.yaml and ConfigMap are applied, which the README steps 1 and 3 already do each run.
  • The FAILED … bad=failedmount|csinode path. It is not reproducible on demand, and the counting logic was exercised only on the clean path.

Closes #1108
Closes #1109

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

bpalermo and others added 2 commits October 1, 2026 14:30
…-csi mid-soak (#1108, #1109)

#1108: k6-mesh-soak.js sends UDS_SHARE = 5% of its constant-arrival-rate
iterations to uds-echo (annotation delivery) and uds-cr-echo (EndpointPolicy
delivery), split evenly; the total rate is unchanged. The per-class and
per-target failure breakdown covers the new authorities (declared key space
281 -> 297). k6-runner.yaml pins both as upstreams. README gate: 0
non-benign access-log lines on the UDS authorities against a clean-200
control, queries starting at log_name: (#1098), with benign-DC sizes
derived per run (#1089).

#1109: churn.sh gains a UDS-CSI step at T0+162 and T0+270 (clear of the
TRIPLE, the new-SA steps, every proxy/agent roll and the no-roll window).
Each step:
- rollout-restarts ds/aether-uds-csi;
- deletes a uds-echo pod (step 2: a uds-cr-echo pod) as soon as that pod's
  node's plugin is terminating;
- waits for the DaemonSet rollout, the pod to finish Terminating and its
  replacement to become Ready;
- checks that CSINode lists csi.aether.io on every plugin node and counts
  FailedMount events during the step and in the 30s after it;
- logs one ROLLED/FAILED line.
A FAILED step is a gate finding and does not abort the run, like FAILED
newsa. --preflight now checks the DaemonSet is present and patchable and
that the victims have a Running pod to delete. --uds-csi-once runs a single
step. SOAK_UDSCSI=0 opts out. The tallies become 33 rolls and 35 ROLLED
lines.

README gates: both roll lines ROLLED with csinode=n/n and
failedmount_after=0, and aether_agent_uds_resolve_failures_total unchanged
(raw T0 vs T0+8h per node x reason, plus max_over_time across the agent
rolls).

Closes #1108
Closes #1109

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
@bpalermo
bpalermo merged commit 627a9db into main Oct 1, 2026
24 checks passed
@bpalermo
bpalermo deleted the test/1108-1109-soak-csi-coverage branch October 1, 2026 17:38
bpalermo added a commit that referenced this pull request Oct 1, 2026
) (#1117)

Status Implemented: Phase 1 (#1090) and Phase 2 (#1092, chart 2.0.0)
shipped; Phase 3 complete except the node reboot (#1106). Phase 0a
(#1083) was not run and is recorded as superseded; the confused-deputy
finding stays as the motivation, with what now prevents it. Adds a
Phase 3 as-built section (deploy, first 8 h soak, plugin roll under
load), the #1111 inode cap and #1112 soak harness follow-ups, the
second-volume_id rejection superseded by the admission webhook, and
034 Phase 2 as unblocked but deferred (also in 034's supersession note).


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

1 participant