Repository navigation
Description
--mpi has never worked end-to-end. The MPI user-data dies partway through on every launch, so mpirun is never installed, the peers file never appears, cohort enrollment times out, and the launch fails. Found while trying to verify #659 on real hardware.
The failure
MPIConfig.BinariesBucket is never set by any caller. buildJobArrayMemberConfig populates Region, JobArrayID, JobArrayIndex, JobArraySize, MPIProcessesPerNode, MPICommand, SkipInstall, EFAEnabled — and omits BinariesBucket. Nothing applies a default, in GenerateMPIUserData or anywhere else.
Its own doc comment claims otherwise:
BinariesBucket string // S3 bucket for binaries (defaults to spawn-binaries-{region})There is no such default. So the template renders an empty bucket and the rank-0 key upload fails:
upload failed: root/.ssh/id_rsa.pub to s3:///mpi-keys/verifydrain-20261004-f2867c/id_rsa.pub
Parameter validation failed: Invalid bucket name ""
2026-10-04 18:09:36,371 - cc_scripts_user.py[WARNING]: Failed to run module scripts-user
Cloud-init v. 22.2.2 finished at Sun, 04 Oct 2026 18:09:36 +0000
cloud-init status → error. The scripts-user module aborts at that line, so everything after it in the MPI block never runs.
Observed consequence on the instance:
command -v mpirun → MPIRUN_MISSING
Why the whole launch then fails
mpicohort.Enroller.enrollProbeScript probes exactly command -v mpirun. It can never succeed, so every member exhausts the 5-minute Enrolled budget, the cohort advances a rung (another AZ), fails again, and reports:
verifydrain-0: terminal/PhaseBudgetExceeded at phase=enrolled after 2 rung(s)
verifydrain-1: cohort-cancelled at phase=enrolled — culprit=verifydrain-0
4 of 4 MPI launches failed this way during verification — two c5n.9xlarge (with --efa) and two c6i.large (without). It is not instance-type or EFA specific.
This is also why #671's double-gzip fix and #683's drain bug were both needed before anything here was visible: each failure mode was hiding the next one.
The fix is not just a default
Setting BinariesBucket to spawn-binaries-<region> would make the name valid, but the instance role almost certainly cannot write there — spawn-binaries-* is spawn's own artifact bucket and the spored role has read access for downloading spored. So the upload would fail with AccessDenied instead of Invalid bucket name, which is no better.
The underlying question is where a per-cluster SSH key exchange belongs. Three options:
- The per-account results bucket (
spawn-results-<account>-<region>), which the instance already writes to. Smallest change, and the scoped task policy already has a pattern for granting it. Needs a cleanup story so cluster keys do not accumulate. - SSM — the cohort already uses SSM for enrollment and for pushing the peers file, so the key could ride the same channel and never touch S3. Most consistent with how the rest of the cohort works, and no bucket or IAM grant at all.
- Keep S3 but have spawn create/own a short-lived per-cluster prefix with an explicit grant.
(2) looks right — the peers file is already delivered this way, so the key exchange is the odd one out, and it removes an S3 dependency and an IAM grant rather than adding them.
Related, worth fixing alongside
- The unbounded wait.
while [ ! -f /etc/spawn/job-array-peers.json ]; do sleep 2; donehas no timeout, so a member whose peers file never arrives hangs until TTL. Withsporedalso not installed on that path, nothing enforces TTL either (see A box too small to run spored cannot enforce its own TTL: 0.5 GiB instance outlived a 6m TTL by 2x, silently #682), so the instance can sit until a human or the reaper intervenes. It should time out and write a failed completion record. - The lying comment. A documented default that does not exist is how this stayed invisible; the comment should describe what the field does and that it is required.
- Cohort swallows the AWS error. The member failure surfaced only as
terminal/InvalidParameterValue/PhaseBudgetExceeded, with no underlying message. The actual cause was only reachable by SSM-ing onto the box and readingcloud-init-output.log. Enrollment failures should surface the probe's stderr.
Verification status of the EFA work
#659's security-group fix is verified against real AWS — the group spawn creates now carries self-referential IpProtocol: "-1" on both ingress and egress, confirmed by describe-security-groups — and fi_info -p efa reports provider: efa / FI_PROTO_EFA on a real c5n.9xlarge, so the EFA interface attaches and libfabric sees it.
What is not verified is EFA passing traffic between nodes (fi_pingpong, osu_latency), because that needs a working mpirun on two nodes and this bug prevents it. That verification is blocked on this issue.
Activity
chore: mark the paths that need a hardware smoke, and gate unset temp…
Publish and refresh hybrid job-array peers for workloads and spored s…
Publish and refresh hybrid job-array peers for workloads and spored s…
Publish and refresh hybrid job-array peers for workloads and spored s…