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
--security-group-ids is silently dropped on spawn launch: instances always get the default SG (breaks --efs-id) #667
On the spawn launch path (non-MPI, non-Windows), --security-group-ids is parsed into sgIDs (cmd/launch_flags.go:239) but never copied into config.SecurityGroupIDs. The only assignment from sgIDs is in cmd/launch_batchqueue.go:206. So the instance always launches in the VPC default SG, and nothing warns.
On the instance, IMDS meta-data/security-groups returns default, and describe-instances shows only sg-b8fbc380 (default).
Impact
--efs-id cannot work unless the EFS mount target happens to sit in the default SG. Here the mount target used sg-000428c…, so TCP 2049 was blocked. The user-data mount -t nfs4 ... hard then hangs, and /efs stays empty (see the linked ordering bug).
The same applies to anything that relies on a custom SG: FSx (EnsureLustrePorts loops over an empty config.SecurityGroupIDs), or SSH from a restricted CIDR.
Fixing it by hand (modify-instance-attribute --groups default sg-000428c…) unblocked the hung mount within about 12 s.
Fix
Copy sgIDs into config.SecurityGroupIDs in launch config building, as batchqueue does. Also add a regression test asserting the RunInstances input carries the flag's SGs. Related: #659 (--mpi overwrites the flag on purpose; this bug is the non-MPI path dropping it by accident).
Activity
fix(jobarray): make the failed-cohort drain actually drain, and unbin…
test(sweep): classify every launch flag for the sweep path (#698)
fix(launch): honour --vpc instead of always using the default VPC (#700)
fix(sweep): honour CLI flags instead of dropping 83 of 127 (#697) (#724)
Attach EFA on spawn launch --efa without --mpi
Attach EFA on spawn launch --efa without --mpi (#1112)