Skip to content

MPI: add an apt install path for Ubuntu AMIs (today --mpi on Ubuntu can never work) #1487

Closed

Description

@scttfrdmn

Owner decision (2026-11-02): add an apt install path for MPI on Ubuntu.

Today the MPI fragment (pkg/userdata/mpi.go) installs Open MPI only with yum install -y openmpi openmpi-devel. On an Ubuntu AMI without --skip-mpi-install, --mpi can never work.

Live evidence from 2026-11-02 (Ubuntu 24.04 arm64, CLI built from PR #1485): line 637: yum: command not found. Since #1485, this now fails closed: SPAWN_COMPLETE is failed/mpi-bootstrap on both members, and they terminate about 2 minutes after launch.

Fix:

  • On apt-based AMIs, install Ubuntu's Open MPI: openmpi-bin, libopenmpi-dev, plus whatever else spawn's mpirun path needs. That's 4.1.x on 22.04/24.04, already in fix(mpi): pass --allow-run-as-root so --mpi-command starts as root on Open MPI 4.0.1 (AL2) #1482's tested root matrix.
  • Detect the package manager cheaply.
  • Make the mpi.sh PATH and env correct for Ubuntu's layout.
  • Check the EFA path's interaction too (the EFA installer brings its own Open MPI).
  • Refuse up front, at launch, any distro family the install can't handle, so nothing starts.
  • Gates, and a live Ubuntu check before merge.

Activity

  1. added this to the v0.155.0 milestone on Nov 2, 2026
  2. added
    enhancement
    area:mpi
    on Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:mpienhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions