← Back to Pull requests

feat: add MPI SSH wiring to downstream CPU image #1072

Closed
unknown closed this pull request without merging on Oct 06, 2026 10:09 UTC
View on GitHub
unknown unknown commented on Oct 01, 2026 08:38 UTC
Author

Summary

This PR adds SSH-based OpenMPI launcher support to the downstream RHOAI 3.6 universal CPU image.

  • Registers an arbitrary OpenShift runtime UID as mpiuser with /home/mpiuser and /bin/sh.

  • Starts worker sshd on port 2222 and provides an mpirun/mpiexec wrapper.

  • Scopes SSH options through OMPI_MCA_plm_rsh_args; normal outbound SSH is unaffected.

  • Adds RHEL 9.8 OpenSSH RPM locking and Konflux dependency prefetching for x86_64, aarch64, and ppc64le.

  • Preserves the existing entrypoint-universal.sh path for non-MPI workloads.
  • Validation

    Validated on the oai-kft-ibm OpenShift cluster in kap-test using the final downstream image:

    quay.io/rhoai/pull-request-pipelines:odh-th-torch-cpu-py312-57bce06ba69afe881ef0412041d7e445bd1173f7

    | Test | Result | Evidence |
    |---|---|---|
    | Konflux PR pipeline | ✅ PASS | Commit 57bce06b built successfully |
    | Multi-architecture RPM dependency prefetch | ✅ PASS | Locked OpenSSH dependencies resolved for x86_64, aarch64, and ppc64le |
    | Bash syntax, ShellCheck, and pre-commit | ✅ PASS | Configured repository checks completed successfully |
    | DW TestPyTorchDDPMultiNodeMultiCPUWithTorchCuda28 | ✅ PASS | Two nodes and two processes per node; completed in 59.794s |
    | OpenMPI remote-launch validation | ✅ PASS | Launcher reached a CPU worker through SSH on port 2222 |
    | Arbitrary UID handling | ✅ PASS | Remote UID 1001150000 resolved as mpiuser with GID 0 and /bin/sh |
    | MPI SSH option isolation | ✅ PASS | No global Host * client configuration; options are scoped to MPI |
    | Non-MPI TrainJob behavior | ✅ PASS | Multi-node torchrun training completed through the normal image flow |

    The repository DW CPU test validated Kueue admission, RWX dataset initialization, a two-node/two-process-per-node JobSet, distributed Fashion-MNIST training, and successful TrainJob completion.

    JobSet marked as completed
    TrainJob kap-test/test-fashion-mnist-trainjob-ghwng completed
    --- PASS: TestPyTorchDDPMultiNodeMultiCPUWithTorchCuda28 (58.04s)
    PASS
    ok github.com/opendatahub-io/distributed-workloads/tests/trainer 59.794s
    

    Test-only cluster compatibility adjustments supplied the namespace-allowed NFS fsGroup and avoided installing the obsolete torchvision==0.25.0+cpu; the image already contains its compatible torchvision build. The training flow was unchanged.

    Checklist

  • Downstream CPU image builds successfully

  • Multi-architecture RHEL 9.8 OpenSSH lockfile is consumed by Konflux

  • Repository DW multi-node CPU test passes on the exact final image

  • Arbitrary OpenShift UID receives an executable shell

  • MPI SSH settings are isolated from normal outbound SSH

  • Non-MPI distributed training remains functional
  • Downstream counterpart of opendatahub-io/distributed-workloads#1059.

    Diff: 355 lines (+266 / -89) across 4 files Reviewer: kapil27 Review duration: 7291m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.43 · 355 lines diff across 4 files
    0.43
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.351
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #1072"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 42.5% (MEDIUM) · Higher = larger blast radius
    42.5%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 16.8% · Safe to merge
    16.8%