Bug 1974780 - Require environment(modules)
Summary: Require environment(modules)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: openmpi
Version: CentOS Stream
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: beta
: 8.5
Assignee: Honggang LI
QA Contact: Brian Chae
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-22 14:23 UTC by Orion Poplawski
Modified: 2021-11-10 08:23 UTC (History)
6 users (show)

Fixed In Version: openmpi-4.1.1-2.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-09 19:41:50 UTC
Type: Bug
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2021:4412 0 None None None 2021-11-09 19:42:00 UTC

Description Orion Poplawski 2021-06-22 14:23:29 UTC
Description of problem:

openmpi has gone from requiring environment(modules) to environment-modules.  This is due to an incorrect fix I had made that was intended only for EL7.  I believe this should address that:

diff --git a/SPECS/openmpi.spec b/SPECS/openmpi.spec
index 6404cc4..df2059e 100644
--- a/SPECS/openmpi.spec
+++ b/SPECS/openmpi.spec
@@ -88,7 +88,7 @@ BuildRequires:  rpm-mpi-hooks
 %endif
 
 Provides:       mpi
-%if 0%{?rhel}
+%if 0%{?rhel} == 7
 # Need this for /etc/profile.d/modules.sh
 Requires:       environment-modules
 %endif


Version-Release number of selected component (if applicable):
4.1.1-1.el8

Problem 2: package openmpi-4.1.1-1.el8.x86_64 requires environment-modules, but none of the providers can be installed
  - installed package lmod-ohpc-8.2.10-15.1.ohpc.2.0.x86_64 obsoletes environment-modules provided by environment-modules-4.5.2-1.el8.x86_64
  - cannot install the best update candidate for package openmpi-4.0.5-3.el8.x86_64
  - cannot install the best update candidate for package lmod-ohpc-8.2.10-15.1.ohpc.2.0.x86_64

Comment 6 Brian Chae 2021-07-26 17:46:00 UTC
The sanity tests results looks good for MLX4 IB and ROCE devices.

Test results for sanity on rdma-virt-01:
4.18.0-323.el8.x86_64, rdma-core-35.0-1.el8, mlx4, ib0, & mlx4_0
    Result | Status | Test
  ---------+--------+------------------------------------
      PASS |      0 | load module mlx4_ib
      PASS |      0 | load module mlx4_en
      PASS |      0 | load module mlx4_core
      PASS |      0 | enable opensm
      PASS |      0 | restart opensm
      PASS |      0 | osmtest -f c -g 0xe41d2d03001d6791
      PASS |      0 | ibstatus reported expected HCA rate
      PASS |      0 | pkey mlx4_ib0.8080 create/delete
      PASS |      0 | /usr/sbin/ibstat
      PASS |      0 | /usr/sbin/ibstatus
      PASS |      0 | systemctl start srp_daemon.service
      PASS |      0 | /usr/sbin/ibsrpdm -vc
      PASS |      0 | systemctl stop srp_daemon
      PASS |      0 | ping self - 172.31.0.201
      PASS |      0 | ping6 self - fe80::e61d:2d03:1d:6791%mlx4_ib0
      PASS |      0 | /usr/share/pmix/test/pmix_test
      PASS |      0 | ping server - 172.31.0.200
      PASS |      0 | ping6 server - fe80::e61d:2d03:1d:6701%mlx4_ib0
      PASS |      0 | openmpi mpitests-IMB-MPI1 PingPong
      PASS |      0 | openmpi mpitests-IMB-IO S_Read_indv
      PASS |      0 | openmpi mpitests-IMB-EXT Window
      PASS |      0 | openmpi mpitests-osu_get_bw
      PASS |      0 | ip multicast addr
      PASS |      0 | rping
      PASS |      0 | rcopy
      PASS |      0 | ib_read_bw
      PASS |      0 | ib_send_bw
      PASS |      0 | ib_write_bw
      PASS |      0 | iser login
      PASS |      0 | mount /dev/sdb /iser
      PASS |      0 | iser write 1K
      PASS |      0 | iser write 1M
      PASS |      0 | iser write 1G
      PASS |      0 | nfsordma mount - XFS_EXT
      PASS |      0 | nfsordma - wrote [5KB, 5MB, 5GB in 1KB, 1MB, 1GB bs]
      PASS |      0 | nfsordma umount - XFS_EXT
      PASS |      0 | nfsordma mount - RAMDISK
      PASS |      0 | nfsordma - wrote [5KB, 5MB, 5GB in 1KB, 1MB, 1GB bs]
      PASS |      0 | nfsordma umount - RAMDISK

Package environment-modules-4.5.2-1.el8.x86_64 is already installed.
Dependencies resolved.
================================================================================
 Package               Arch        Version          Repository             Size
================================================================================
Installing:
 mpitests-openmpi      x86_64      5.7-2.el8        beaker-AppStream      973 k
 openmpi               x86_64      4.1.1-2.el8      brew                  2.9 M
Installing dependencies:
 openmpi-devel         x86_64      4.1.1-2.el8      brew                  1.2 M

Transaction Summary
================================================================================
Install  3 Packages

Total download size: 5.0 M
Installed size: 18 M
Downloading Packages:
(1/3): mpitests-openmpi-5.7-2.el8.x86_64.rpm     12 MB/s | 973 kB     00:00    
(2/3): openmpi-devel-4.1.1-2.el8.x86_64.rpm     9.0 MB/s | 1.2 MB     00:00    
(3/3): openmpi-4.1.1-2.el8.x86_64.rpm            13 MB/s | 2.9 MB     00:00    
--------------------------------------------------------------------------------
Total                                            23 MB/s | 5.0 MB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Installing       : openmpi-devel-4.1.1-2.el8.x86_64                       1/3 
  Installing       : openmpi-4.1.1-2.el8.x86_64                             2/3 
  Installing       : mpitests-openmpi-5.7-2.el8.x86_64                      3/3 
  Running scriptlet: mpitests-openmpi-5.7-2.el8.x86_64                      3/3 
  Verifying        : mpitests-openmpi-5.7-2.el8.x86_64                      1/3 
  Verifying        : openmpi-4.1.1-2.el8.x86_64                             2/3 
  Verifying        : openmpi-devel-4.1.1-2.el8.x86_64                       3/3 
Installed products updated.

Installed:
  mpitests-openmpi-5.7-2.el8.x86_64          openmpi-4.1.1-2.el8.x86_64         
  openmpi-devel-4.1.1-2.el8.x86_64

Comment 11 errata-xmlrpc 2021-11-09 19:41:50 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (RDMA stack bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:4412


Note You need to log in before you can comment on or make changes to this bug.