You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
sweep_keys.go rejects volume_size:/disk_size: by telling the user to use --disk-size, a flag that does not exist #545
Verified against 072c4b0 (v0.101.0). Small and purely a message bug, but it is what makes #544 undiagnosable, so filing it separately.
The message
cmd/sweep_keys.go:131-132:
"disk_size": "--disk-size is a command-line flag, not a param-file key",
"volume_size": "--disk-size is a command-line flag, not a param-file key",
There is no --disk-size
$ grep -rn '"disk-size"' --include='*.go' .
$ grep -rn '"volume-size"' --include='*.go' .
cmd/launch_flags.go:194: launchCmd.Flags().Int32Var(&launchVolumeSize, "volume-size", 0, "Root EBS volume size in GiB (0 = use AMI default)")
The flag is --volume-size. --disk-size appears nowhere in the tree.
Why it matters more than a typo normally would
The rejected-keys map is the good part of spawn's sweep validation — it exists precisely so an unknown key is not silently passed through as a PARAM_* env var, and it usually names the correct alternative ("iam_profile": "use iam_role:", "spot_price": "use spot_max_price:", and so on). Here it names a nonexistent flag, so a user who follows the instruction gets:
unknown flag: --disk-size
and now has two contradictory error messages and no working route. They are most likely to conclude they mistyped, retry with --volume-size, get exit 0 with no warning, and never learn that the value was dropped — which is #544.
So the pair composes into a worst case: the validator sends you to a flag that errors out, and the flag that parses is the one that lies.
Fix
Whichever way #544 is resolved, the message should name something real:
if it stays rejected, correct the flag name to --volume-size — and only once that flag actually works on the sweep path, otherwise the message is still pointing at a no-op.
Worth noting the second option is only honest after #544 is fixed. Until then the accurate message would be something like "root volume size cannot be set on the sweep path — see #544", which is itself an argument for just wiring the key.
A test asserting that every flag named in a sweep_keys.go rejection message exists in launchCmd.Flags() would prevent the class; there are 13 such messages and this is the only one currently wrong.
Activity
fix: root volume size unreachable on the sweep launch path (#544, #545)…