Repository navigation
NAS-144815 / 28.0.0-BETA.1 / truenas-appliance-runner: extra-disk-gb adds sparse disks of other sizes after the data disks - #26
Merged
Conversation
…zes after the data disks Claude-Session: https://claude.ai/code/session_01KFP9uqyWUd8tys9JnmPjn4
|
No findings. No human review required. What I checked:
The failing |
Contributor
william-gr
approved these changes
Oct 21, 2026
Contributor
|
This PR has been merged and conversations have been locked. |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Why
The appliance boots with ten identical 10 GB data disks, and some E2E journeys need a disk those cannot give.
boot.attachneeds a disk at least as large as the boot disk. The boot partition alone is about 15.5 GB, so every 10 GB disk is refused, and both mirror tests ine2e/tests/boot-pool.e2e.tsskip on every run.Change
extra-disk-gb. More sparse qcow2 disks after the data disks, one per size in GB, separated by spaces.'32'adds one 32 GB disk, and'12 12 15'adds three. The default is none, so nothing changes for existing callers.extra1,extra2, and so on. A suite that takes the first unused disks, or disks of one size, still gets the 10 GB data disks.ha: truewithextra-disk-gbset fails with an error, rather thanha.shsilently ignoring it.10 data disks of 10G, and 1 more of 32G.The webui side is truenas/webui on branch
ccr-76be8ba4-0fmqnb. It passesextra-disk-gb: '32'and picks a disk at least as large as the boot disk to mirror onto. That PR can merge before or after this one: until this merges, GitHub only warns about the unknown input and the test keeps skipping.As the action's header says, a change in this directory is also a new appliance image in github-truenas-runner, whose build fetches these scripts.
Testing
shellcheck -x appliance.sh lib.sh(run from the action's directory) andactionlintare clean.node scripts/check-input-refs.jsreports that all input references resolve.'','32','12 12 15', an all-space value and'1x'. They give 0, 1, 3, 0 and a refusal, respectively.booting … 10 data disks of 10G, and 1 more of 32G, andboot-pool.e2e.ts's mirror test runs instead of skipping.https://claude.ai/code/session_01KFP9uqyWUd8tys9JnmPjn4
Generated by Claude Code