Skip to content

Foreground sweeps silently drop --fsx-create, --fsx-recall and --vpc (without --subnet) #1366

Closed

Description

@scttfrdmn

Found while fixing #1353 (detached sweep members dropping RunInstances settings). A foreground sweep (spawn launch --param-file ... --no-detach) accepts these flags and drops them silently too:

  • --fsx-create (with --fsx-lifecycle/--fsx-ttl/--fsx-storage-capacity/--fsx-s3-bucket): no filesystem is created and nothing warns. buildLaunchConfig (cmd/launch_config.go:343) copies the flags onto the sweep's base config, but the only code that creates an FSx is in cmd/launch_single.go (around line 447 and 605). launchParameterSweep (cmd/launch_sweep.go) never reads FSxLustreCreate, and Client.Launch does not either.
  • --fsx-recall: same. FSxLustreRecall is looked up only on the single-instance path.
  • --vpc without --subnet: Client.Launch reads VPCID only for the multi-card-EFA subnet lookup. The single-instance path uses it to resolve and validate the VPC and its security group (cmd/launch_single.go:1247, :1274, :1310). A sweep member with no subnet lands in the region's default VPC.

Evidence is a code trace on main at 5246f02 (grep -rn "FSxLustreCreate\|FSxLustreRecall\|\.VPCID" cmd pkg/aws/client.go). Not run on AWS.

#1353's PR refuses all three at --detach and names --no-detach as the alternative. That advice is wrong for these three, because the foreground path drops them as well. Either refuse them on the foreground sweep path too, or wire them in: create the FSx once for the sweep with the single path's lifecycle contract, and resolve the subnet from the VPC.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:launchcomponent:spawntype:bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions