Closed
Description
Summary
--mpi --efa on an Amazon Linux 2 --ami fails at the EFA installer. The MPI user data in pkg/userdata/mpi.go downloads https://efa-installer.amazonaws.com/aws-efa-installer-latest.tar.gz, and the EFA installer dropped AL2 in 1.50.0 (2026-08-21): "Discontinue support for Amazon Linux 2. The last EFA installer version supporting AL2 is 1.49.0." (release notes). The current latest is 1.51.0.
Evidence
efa_installer.shfrom today'saws-efa-installer-latest.tar.gz(1.51.0), lines 8–14:if [ "${NAME:-}" = "Amazon Linux" ] && [ "${VERSION_ID:-}" = "2" ]; then echo "Error: Amazon Linux 2 is no longer supported by the EFA installer. ..." >&2 exit 1./efa_installer.sh -y -gexits 1, the MPI script'sexit/trap (--mpi on an AL2 --ami dies at the jq hostfile step (jq not installed); no SPAWN_COMPLETE, so the cohort bills until TTL #1483) records anmpi-bootstrapfailure, and the cohort never runs. This fails closed, so nothing bills to its TTL, but--efaon AL2 cannot work at all.- The EFA OS table no longer lists AL2 (AL2023, RHEL 8/9/10, Debian 12/13, Rocky 8/9, Ubuntu 22.04/24.04/26.04, SUSE 15).
- Found while working on --mpi --efa runs the distribution's Open MPI, not the EFA installer's /opt/amazon/openmpi #1491. Not run on EC2.
Options
- In the script, read
/etc/os-releaseand fetchaws-efa-installer-1.49.0.tar.gzon AL2 (pinned, ideally sha256-checked; see the integrity follow-up). - Or refuse at the instance with a clear message ("the EFA installer no longer supports AL2; use AL2023 or Ubuntu"), or, where spawn knows the AMI, at launch.
Activity
fix(mpi): --efa installs a pinned, sha256-checked EFA installer, mirr…
fix(mpi): --efa installs a pinned, sha256-checked EFA installer, mirr…
fix(mpi): --efa installs a pinned, sha256-checked EFA installer, mirr…
fix(mpi): --efa installs a pinned, sha256-checked EFA installer, mirr…
fix(mpi): --efa installs a pinned, sha256-checked EFA installer, sign…