Repository navigation
fix(uds-csi): cap each per-pod tmpfs at nr_inodes (default 64) (#1107) - #1111
Merged
Merged
Conversation
Proposal 039 designs the per-pod tmpfs with size=<small>,nr_inodes=<small>; Phase 1 as built (#1090) passed only mode/uid/gid/size, so the inode cap was the kernel default (half the node's RAM pages), and a workload could fill its socket directory with empty files far past anything `size` bounds. - uds-csi: new --inodes flag (default 64, at least 8, validated in NewDriver); the mount data string is now exactly mode=2770,uid=0,gid=<fsGroup>,size=<bytes>,nr_inodes=<n>. - chart: udsCsi.inodes (default 64) renders --inodes as a plain integer and fails the install below 8. Chart 2.1.0. - e2e/uds-csi.sh: the host mount carries nr_inodes=64 (findmnt) and df reports 64 inodes; filling /s fails with ENOSPC at file 62 (root dir, socket and the symlink leg hold the other three), 0 inodes free, and the socket still answers. - docs: configuration.md (value + flag) and the proposal's Phase 1 as built. Closes #1107 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
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]>
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.
What
Proposal 039 designs the per-pod tmpfs with
size=<small>,nr_inodes=<small>. Phase 1 as built (#1090) passed onlymode=2770,uid=0,gid=<fsGroup>,size=<bytes>, so the inode cap was the kernel default of half the node's RAM pages. A workload could fill its socket directory with empty files far past anythingsizebounds.--inodesflag (default64, at least8, enforced inNewDriver). The mount data string is now exactlymode=2770,uid=0,gid=<fsGroup>,size=<bytes>,nr_inodes=<n>.udsCsi.inodes(default64). It renders--inodesas a plain integer, so a YAML1000000never turns into1e+06, and the install fails below 8 instead of leaving a crash-looping DaemonSet. Chart version 2.1.0 (a new value).assert_inode_cap, run for the publish pod and the after-roll pod. It checks four things:findmnt -o OPTIONSon the kind host showsnr_inodes=64.dfreports 64 inodes./sfails with ENOSPC.configuration.md(the value and the flag) and the proposal's Phase 1 as built bullet. The Gate bullet there now mentions the cap too.Evidence
TestTmpfsDataandTestNodePublishVolume_MountsPerPodTmpfsAndBindsItboth failed withexpected "...size=1048576,nr_inodes=64" / actual "...size=1048576". They pass with the fix.bazel test //agent/internal/udscsi:all //agent/cmd/uds-csi:all //charts/aether:all: 46/46 pass. That includes the newaether_uds_csi_inodes_too_small_testand the--inodes=64/--inodes=1000000patterns.TestChartFlagsExistchecks that the chart's--inodesexists in the binary.e2e/uds-csi.shon kind (UDS_CSI_CLUSTER=udscsi-1107) passed all assertions:a.sockand the symlink leg's link take the other 3 of the 64 inodes.make formatproduced no diff.bazel build --config=lint --@aspect_rules_lint//lint:fail_on_violation //...is clean.Rollout note
A running pod keeps its existing (uncapped) tmpfs. The cap applies to mounts the plugin makes after this rolls out, which in practice means pods (re)created after the upgrade.
Closes #1107
🤖 Generated with Claude Code
https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr