Skip to content

Conda CI: Avoid UCX/OFI on MANA RDMA Runners - #1969

Merged
ax3l merged 1 commit into
openPMD:devfrom
ax3l:fix-conda-ompi-mana-rdma
Nov 10, 2026
Merged

ax3l merged 1 commit into
openPMD:devfrom
ax3l:fix-conda-ompi-mana-rdma

Conversation

@ax3l

@ax3l ax3l commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

conda_ompi_all has been failing intermittently since a week ago. It has failed on unrelated PRs, including a Dependabot bump (#1968), #1960, #1963 (earlier run) and custom-hierarchies. In each failure, the same 8 MPI tests fail: MPI.ParallelIO, MPI.4_read_parallel, MPI.5_write_parallel, MPI.8_benchmark_parallel, MPI.8a_benchmark_write_parallel, CLI.pipe.py, Example.py.4_read_parallel, Example.py.5_write_parallel.

Root Cause

Some Azure-hosted GitHub runners expose a Microsoft Azure Network Adapter (MANA) RDMA device, mana_0:

UCX  ERROR uct_iface_open(ud_verbs/mana_0:1) failed: Address not valid
pml_ucx.c:319  Error: Failed to create UCP worker
Message size 4 bigger than supported by selected transport. Max = 0
*** An error occurred in MPI_Bcast ... MPI_ERR_OTHER
  • conda-forge's rdma-core ships the MANA verbs provider (libmana-rdmav*.so). Ubuntu 22.04's system ibverbs-providers (39.0) does not, which is why only the conda job is affected.
  • Open MPI's pml/ucx treats itself as usable when a ud_verbs/rc_verbs transport is present (pml_ucx_tls default). It is selected on these hosts, then fails to create a UCP worker.
  • Open MPI then falls back to pml/cm + mtl/ofi (libfabric). The Message size ... Max = 0 text is from help-mtl-ofi.txt, and this path cannot use mana_0 either.
  • On runners without such a device, neither path qualifies, so Open MPI uses pml/ob1 and everything passes. Whether the job fails depends on the host it lands on, not on the code. Image versions and package versions (openmpi 5.0.11, ucx 1.22.0, rdma-core 65.0) were identical between passing and failing runs.

This is the same problem that #1956 worked around for the SST UCX data plane. Here it hits the MPI layer itself. Another project hit the same ud_verbs/mana_0 failure with MPICH+UCX: underworldcode/underworld3#461.

Fix

The Build step of conda_ompi_all now pins Open MPI to the single-node components that it already selects on runners without a MANA device:

OMPI_MCA_pml: ob1
OMPI_MCA_btl: self,sm,tcp
OMPI_MCA_osc: sm,rdma
  • pml=ob1 rules out both pml/ucx and pml/cm (and therefore mtl/ofi).
  • btl drops ofi/uct/usnic/smcuda.
  • osc drops ucx. rdma is required for MPI_Win_create/dynamic windows (sm only serves allocate/shared windows).

UCX-only settings (e.g. UCX_TLS=self,sm,tcp, as in the underworld3 fix) would not be enough here. Open MPI would fall through to the equally broken OFI MTL.

A small RDMA devices step lists /sys/class/infiniband/, so the log shows whether a job ran on a MANA host.

Verification

  • Ran locally with conda-forge Open MPI 5.0.8 and mpi4py on 2 ranks, using these exact settings: Barrier, Bcast, Comm_dup, Isend/Irecv, and all four window flavors pass. osc_base_verbose confirms osc/sm for allocate/shared windows and osc/rdma for create/dynamic windows.
  • Not verifiable locally: the MANA hardware path itself. A green CI run on this PR is only conclusive if the new RDMA devices step shows mana_0. Otherwise, re-running the job may be needed to land on such a host.

Not Addressed Here

#1963 (clang11_nopy_ompi_h5_ad2) and #1965 (musllinux_py10) failed in share/openPMD/download_samples.sh with gzip: stdin: not in gzip format. curl -sOL has no --fail/--retry, so an HTTP error response is saved as the .tar.gz. That is a separate flake for a follow-up.

🤖 Generated with Claude Code

Some Azure-hosted GitHub runners expose a Microsoft Azure Network
Adapter RDMA device (mana_0). conda-forge's rdma-core ships the MANA
verbs provider, so Open MPI from conda-forge sees the device and picks
pml/ucx (ud_verbs) or, as a fallback, pml/cm + mtl/ofi (libfabric).
Both fail to open mana_0, and all MPI tests abort in MPI_Init/the
first communication call. This made conda_ompi_all fail
intermittently, depending on which runner a job landed on.

Pin Open MPI to the single-node components that it already selects on
runners without such a device: pml/ob1, btl self,sm,tcp, and osc
sm,rdma. Also log the RDMA devices of the runner, so we can tell
which kind of host a job ran on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ax3l ax3l added this to the 0.17.2 milestone Nov 10, 2026
@franzpoeschel
franzpoeschel enabled auto-merge (squash) November 10, 2026 18:40
@ax3l
ax3l disabled auto-merge November 10, 2026 18:40
@ax3l
ax3l merged commit 8215897 into openPMD:dev Nov 10, 2026
30 of 32 checks passed
@ax3l
ax3l deleted the fix-conda-ompi-mana-rdma branch November 10, 2026 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants