RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1887396 - Add a check for udevadm in the specfile
Summary: Add a check for udevadm in the specfile
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: rdma-core
Version: 8.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.4
Assignee: Honggang LI
QA Contact: Brian Chae
URL:
Whiteboard:
Depends On:
Blocks: 1743650
TreeView+ depends on / blocked
 
Reported: 2020-10-12 11:20 UTC by Michal Ruprich
Modified: 2021-05-18 14:45 UTC (History)
4 users (show)

Fixed In Version: rdma-core-32.0-1.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-18 14:44:44 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Michal Ruprich 2020-10-12 11:20:31 UTC
Description of problem:
Can we add the check for udevadm in the specfile in RHEL-8 as we did in Fedora?
https://src.fedoraproject.org/rpms/rdma-core/pull-request/5#

I have a bug for enabling RDMA for libpcap in RHEL and I would like to avoid the dependency loop from this bug - https://bugzilla.redhat.com/show_bug.cgi?id=1837812.

Comment 3 Brian Chae 2020-12-18 19:00:52 UTC
1. installed the rdma-core source rpm and inspected the suggested udevadm check in the "rdma-core.spec" file for the 

rpm -vv -Uvh rdma-core-32.0-2.el8.src.rpm

[root@rdma-perf-03 SPECS]$ ls -lrt rdma-core.spec 
-rw-r--r--. 1 root root 29981 Dec  8 18:59 rdma-core.spec


%post -n rdma-core
if [ -x /sbin/udevadm ]; then <<<=========================================================== 
/sbin/udevadm trigger --subsystem-match=infiniband --action=change || true
/sbin/udevadm trigger --subsystem-match=net --action=change || true
/sbin/udevadm trigger --subsystem-match=infiniband_mad --action=change || true
fi

%post -n infiniband-diags -p /sbin/ldconfig
%postun -n infiniband-diags
%ldconfig_postun

2. conducted rdma-core package remove and re-install successfully.

[root@rdma-perf-03 ~]$ dnf remove rdma-core
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

Dependencies resolved.
==============================================================================================================
 Package                        Architecture   Version                        Repository                 Size
==============================================================================================================
Removing:
 rdma-core                      x86_64         32.0-2.el8                     @beaker-BaseOS            104 k
Removing dependent packages:
 infiniband-diags               x86_64         32.0-2.el8                     @beaker-BaseOS            1.0 M
 libibverbs                     x86_64         32.0-2.el8                     @beaker-BaseOS            818 k
 libibverbs-utils               x86_64         32.0-2.el8                     @beaker-BaseOS            213 k
 librdmacm                      x86_64         32.0-2.el8                     @beaker-BaseOS            140 k
 librdmacm-utils                x86_64         32.0-2.el8                     @beaker-BaseOS            276 k
 mvapich2-devel                 x86_64         2.3.4-1.el8                    @beaker-AppStream          19 M
 opa-address-resolution         x86_64         1:10.10.3.0.11-1.el8           @beaker-BaseOS            2.0 M
 opa-basic-tools                x86_64         1:10.10.3.0.11-1.el8           @beaker-BaseOS            2.1 M
 opa-fastfabric                 x86_64         1:10.10.3.0.11-1.el8           @beaker-BaseOS            7.8 M
 openmpi                        x86_64         4.0.5-2.el8                    @beaker-AppStream         9.5 M
 openmpi-devel                  x86_64         4.0.5-2.el8                    @beaker-AppStream         1.8 M
 perftest                       x86_64         4.4-7.el8                      @beaker-BaseOS            2.0 M
 qperf                          x86_64         0.4.11-1.el8                   @beaker-AppStream         174 k
 rdma-core-devel                x86_64         32.0-2.el8                     @beaker-BaseOS            527 k
 srp_daemon                     x86_64         32.0-2.el8                     @beaker-BaseOS             72 k
Removing unused dependencies:
 bc                             x86_64         1.07.1-5.el8                   @beaker-BaseOS            234 k
 environment-modules            x86_64         4.5.2-1.el8                    @beaker-BaseOS            1.8 M
 expect                         x86_64         5.45.4-5.el8                   @beaker-BaseOS            578 k
 gcc-gfortran                   x86_64         8.4.1-1.el8                    @beaker-AppStream          30 M
 hwloc-libs                     x86_64         2.2.0-1.el8                    @beaker-BaseOS            2.9 M
 ibacm                          x86_64         32.0-2.el8                     @beaker-BaseOS            189 k
 libfabric                      x86_64         1.11.1-1.el8                   @beaker-BaseOS            1.5 M
 libgfortran                    x86_64         8.4.1-1.el8                    @beaker-BaseOS            2.5 M
 libibumad                      x86_64         32.0-2.el8                     @beaker-BaseOS             40 k
 libpsm2                        x86_64         11.2.185-1.el8                 @beaker-BaseOS            452 k
 libquadmath                    x86_64         8.4.1-1.el8                    @beaker-BaseOS            298 k
 libquadmath-devel              x86_64         8.4.1-1.el8                    @beaker-AppStream          19 k
 munge                          x86_64         0.5.13-2.el8                   @beaker-AppStream         313 k
 munge-libs                     x86_64         0.5.13-2.el8                   @beaker-AppStream          41 k
 mvapich2                       x86_64         2.3.4-1.el8                    @beaker-AppStream          16 M
 opensm-libs                    x86_64         3.3.23-4.el8                   @beaker-BaseOS            188 k
 pciutils                       x86_64         3.7.0-1.el8                    @beaker-BaseOS            211 k
 pmix                           x86_64         2.2.4rc1-1.el8                 @beaker-AppStream         3.8 M
 rpm-mpi-hooks                  noarch         5-4.el8                        @beaker-AppStream         9.2 k
 torque-libs                    x86_64         4.2.10-25.el8                  @beaker-AppStream         309 k
 ucx                            x86_64         1.9.0-1.el8                    @beaker-AppStream         1.6 M

Transaction Summary
==============================================================================================================
Remove  37 Packages

Freed space: 111 M
Is this ok [y/N]: y
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                      1/1 
  Running scriptlet: perftest-4.4-7.el8.x86_64                                                            1/1 
  Erasing          : perftest-4.4-7.el8.x86_64                                                           1/37 
  Erasing          : openmpi-devel-4.0.5-2.el8.x86_64                                                    2/37 
  Erasing          : openmpi-4.0.5-2.el8.x86_64                                                          3/37 
  Erasing          : libfabric-1.11.1-1.el8.x86_64                                                       4/37 
  Running scriptlet: libfabric-1.11.1-1.el8.x86_64                                                       4/37 
  Running scriptlet: srp_daemon-32.0-2.el8.x86_64                                                        5/37 
  Erasing          : srp_daemon-32.0-2.el8.x86_64                                                        5/37 
warning: /etc/srp_daemon.conf saved as /etc/srp_daemon.conf.rpmsave

  Running scriptlet: srp_daemon-32.0-2.el8.x86_64                                                        5/37 
  Erasing          : librdmacm-utils-32.0-2.el8.x86_64                                                   6/37 
  Erasing          : mvapich2-devel-2.3.4-1.el8.x86_64                                                   7/37 
  Erasing          : rdma-core-devel-32.0-2.el8.x86_64                                                   8/37 
  Erasing          : mvapich2-2.3.4-1.el8.x86_64                                                         9/37 
  Erasing          : opa-fastfabric-1:10.10.3.0.11-1.el8.x86_64                                         10/37 
  Erasing          : opa-address-resolution-1:10.10.3.0.11-1.el8.x86_64                                 11/37 
  Running scriptlet: opa-address-resolution-1:10.10.3.0.11-1.el8.x86_64                                 11/37 
  Running scriptlet: ibacm-32.0-2.el8.x86_64                                                            12/37 
  Erasing          : ibacm-32.0-2.el8.x86_64                                                            12/37 
  Running scriptlet: ibacm-32.0-2.el8.x86_64                                                            12/37 
  Erasing          : opa-basic-tools-1:10.10.3.0.11-1.el8.x86_64                                        13/37 
  Erasing          : libibverbs-utils-32.0-2.el8.x86_64                                                 14/37 
  Erasing          : infiniband-diags-32.0-2.el8.x86_64                                                 15/37 
  Running scriptlet: infiniband-diags-32.0-2.el8.x86_64                                                 15/37 
  Erasing          : qperf-0.4.11-1.el8.x86_64                                                          16/37 
  Erasing          : rpm-mpi-hooks-5-4.el8.noarch                                                       17/37 
  Erasing          : librdmacm-32.0-2.el8.x86_64                                                        18/37 
  Running scriptlet: librdmacm-32.0-2.el8.x86_64                                                        18/37 
  Running scriptlet: gcc-gfortran-8.4.1-1.el8.x86_64                                                    19/37 
  Erasing          : gcc-gfortran-8.4.1-1.el8.x86_64                                                    19/37 
  Erasing          : libgfortran-8.4.1-1.el8.x86_64                                                     20/37 
  Running scriptlet: libgfortran-8.4.1-1.el8.x86_64                                                     20/37 
  Erasing          : opensm-libs-3.3.23-4.el8.x86_64                                                    21/37 
  Running scriptlet: opensm-libs-3.3.23-4.el8.x86_64                                                    21/37 
  Erasing          : pmix-2.2.4rc1-1.el8.x86_64                                                         22/37 
  Erasing          : torque-libs-4.2.10-25.el8.x86_64                                                   23/37 
  Erasing          : libquadmath-devel-8.4.1-1.el8.x86_64                                               24/37 
  Running scriptlet: munge-0.5.13-2.el8.x86_64                                                          25/37 
  Erasing          : munge-0.5.13-2.el8.x86_64                                                          25/37 
  Running scriptlet: munge-0.5.13-2.el8.x86_64                                                          25/37 
  Erasing          : libibumad-32.0-2.el8.x86_64                                                        26/37 
  Running scriptlet: libibumad-32.0-2.el8.x86_64                                                        26/37 
  Erasing          : libibverbs-32.0-2.el8.x86_64                                                       27/37 
  Running scriptlet: libibverbs-32.0-2.el8.x86_64                                                       27/37 
  Erasing          : rdma-core-32.0-2.el8.x86_64                                                        28/37 
  Running scriptlet: rdma-core-32.0-2.el8.x86_64                                                        28/37 
  Erasing          : pciutils-3.7.0-1.el8.x86_64                                                        29/37 
  Erasing          : munge-libs-0.5.13-2.el8.x86_64                                                     30/37 
  Running scriptlet: libquadmath-8.4.1-1.el8.x86_64                                                     31/37 
  Erasing          : libquadmath-8.4.1-1.el8.x86_64                                                     31/37 
  Running scriptlet: libquadmath-8.4.1-1.el8.x86_64                                                     31/37 
  Erasing          : environment-modules-4.5.2-1.el8.x86_64                                             32/37 
  Running scriptlet: environment-modules-4.5.2-1.el8.x86_64                                             32/37 
  Running scriptlet: bc-1.07.1-5.el8.x86_64                                                             33/37 
  Erasing          : bc-1.07.1-5.el8.x86_64                                                             33/37 
  Erasing          : expect-5.45.4-5.el8.x86_64                                                         34/37 
  Erasing          : hwloc-libs-2.2.0-1.el8.x86_64                                                      35/37 
  Erasing          : libpsm2-11.2.185-1.el8.x86_64                                                      36/37 
  Running scriptlet: libpsm2-11.2.185-1.el8.x86_64                                                      36/37 
  Erasing          : ucx-1.9.0-1.el8.x86_64                                                             37/37 
  Running scriptlet: ucx-1.9.0-1.el8.x86_64                                                             37/37 
  Verifying        : bc-1.07.1-5.el8.x86_64                                                              1/37 
  Verifying        : environment-modules-4.5.2-1.el8.x86_64                                              2/37 
  Verifying        : expect-5.45.4-5.el8.x86_64                                                          3/37 
  Verifying        : gcc-gfortran-8.4.1-1.el8.x86_64                                                     4/37 
  Verifying        : hwloc-libs-2.2.0-1.el8.x86_64                                                       5/37 
  Verifying        : ibacm-32.0-2.el8.x86_64                                                             6/37 
  Verifying        : infiniband-diags-32.0-2.el8.x86_64                                                  7/37 
  Verifying        : libfabric-1.11.1-1.el8.x86_64                                                       8/37 
  Verifying        : libgfortran-8.4.1-1.el8.x86_64                                                      9/37 
  Verifying        : libibumad-32.0-2.el8.x86_64                                                        10/37 
  Verifying        : libibverbs-32.0-2.el8.x86_64                                                       11/37 
  Verifying        : libibverbs-utils-32.0-2.el8.x86_64                                                 12/37 
  Verifying        : libpsm2-11.2.185-1.el8.x86_64                                                      13/37 
  Verifying        : libquadmath-8.4.1-1.el8.x86_64                                                     14/37 
  Verifying        : libquadmath-devel-8.4.1-1.el8.x86_64                                               15/37 
  Verifying        : librdmacm-32.0-2.el8.x86_64                                                        16/37 
  Verifying        : librdmacm-utils-32.0-2.el8.x86_64                                                  17/37 
  Verifying        : munge-0.5.13-2.el8.x86_64                                                          18/37 
  Verifying        : munge-libs-0.5.13-2.el8.x86_64                                                     19/37 
  Verifying        : mvapich2-2.3.4-1.el8.x86_64                                                        20/37 
  Verifying        : mvapich2-devel-2.3.4-1.el8.x86_64                                                  21/37 
  Verifying        : opa-address-resolution-1:10.10.3.0.11-1.el8.x86_64                                 22/37 
  Verifying        : opa-basic-tools-1:10.10.3.0.11-1.el8.x86_64                                        23/37 
  Verifying        : opa-fastfabric-1:10.10.3.0.11-1.el8.x86_64                                         24/37 
  Verifying        : openmpi-4.0.5-2.el8.x86_64                                                         25/37 
  Verifying        : openmpi-devel-4.0.5-2.el8.x86_64                                                   26/37 
  Verifying        : opensm-libs-3.3.23-4.el8.x86_64                                                    27/37 
  Verifying        : pciutils-3.7.0-1.el8.x86_64                                                        28/37 
  Verifying        : perftest-4.4-7.el8.x86_64                                                          29/37 
  Verifying        : pmix-2.2.4rc1-1.el8.x86_64                                                         30/37 
  Verifying        : qperf-0.4.11-1.el8.x86_64                                                          31/37 
  Verifying        : rdma-core-32.0-2.el8.x86_64                                                        32/37 
  Verifying        : rdma-core-devel-32.0-2.el8.x86_64                                                  33/37 
  Verifying        : rpm-mpi-hooks-5-4.el8.noarch                                                       34/37 
  Verifying        : srp_daemon-32.0-2.el8.x86_64                                                       35/37 
  Verifying        : torque-libs-4.2.10-25.el8.x86_64                                                   36/37 
  Verifying        : ucx-1.9.0-1.el8.x86_64                                                             37/37 
Installed products updated.

Removed:
  bc-1.07.1-5.el8.x86_64                             environment-modules-4.5.2-1.el8.x86_64                   
  expect-5.45.4-5.el8.x86_64                         gcc-gfortran-8.4.1-1.el8.x86_64                          
  hwloc-libs-2.2.0-1.el8.x86_64                      ibacm-32.0-2.el8.x86_64                                  
  infiniband-diags-32.0-2.el8.x86_64                 libfabric-1.11.1-1.el8.x86_64                            
  libgfortran-8.4.1-1.el8.x86_64                     libibumad-32.0-2.el8.x86_64                              
  libibverbs-32.0-2.el8.x86_64                       libibverbs-utils-32.0-2.el8.x86_64                       
  libpsm2-11.2.185-1.el8.x86_64                      libquadmath-8.4.1-1.el8.x86_64                           
  libquadmath-devel-8.4.1-1.el8.x86_64               librdmacm-32.0-2.el8.x86_64                              
  librdmacm-utils-32.0-2.el8.x86_64                  munge-0.5.13-2.el8.x86_64                                
  munge-libs-0.5.13-2.el8.x86_64                     mvapich2-2.3.4-1.el8.x86_64                              
  mvapich2-devel-2.3.4-1.el8.x86_64                  opa-address-resolution-1:10.10.3.0.11-1.el8.x86_64       
  opa-basic-tools-1:10.10.3.0.11-1.el8.x86_64        opa-fastfabric-1:10.10.3.0.11-1.el8.x86_64               
  openmpi-4.0.5-2.el8.x86_64                         openmpi-devel-4.0.5-2.el8.x86_64                         
  opensm-libs-3.3.23-4.el8.x86_64                    pciutils-3.7.0-1.el8.x86_64                              
  perftest-4.4-7.el8.x86_64                          pmix-2.2.4rc1-1.el8.x86_64                               
  qperf-0.4.11-1.el8.x86_64                          rdma-core-32.0-2.el8.x86_64                              
  rdma-core-devel-32.0-2.el8.x86_64                  rpm-mpi-hooks-5-4.el8.noarch                             
  srp_daemon-32.0-2.el8.x86_64                       torque-libs-4.2.10-25.el8.x86_64                         
  ucx-1.9.0-1.el8.x86_64                            

Complete!
[root@rdma-perf-03 ~]$ dnf install -y rdma-core
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

Brew Buildsystem for rhel 8                                                    26 kB/s | 237  B     00:00    
Errors during downloading metadata for repository 'brew':
  - Status code: 404 for http://download.lab.bos.redhat.com/rel-eng/brew/rhel/8/repodata/repomd.xml (IP: 10.19.43.4)
Error: Failed to download metadata for repo 'brew': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Ignoring repositories: brew
Last metadata expiration check: 0:44:00 ago on Fri 18 Dec 2020 06:48:12 AM EST.
Dependencies resolved.
==============================================================================================================
 Package                  Architecture          Version                    Repository                    Size
==============================================================================================================
Installing:
 rdma-core                x86_64                32.0-2.el8                 beaker-BaseOS                 59 k
Installing dependencies:
 pciutils                 x86_64                3.7.0-1.el8                beaker-BaseOS                105 k

Transaction Summary
==============================================================================================================
Install  2 Packages

Total download size: 164 k
Installed size: 315 k
Downloading Packages:
(1/2): rdma-core-32.0-2.el8.x86_64.rpm                                        4.3 MB/s |  59 kB     00:00    
(2/2): pciutils-3.7.0-1.el8.x86_64.rpm                                        2.2 MB/s | 105 kB     00:00    
--------------------------------------------------------------------------------------------------------------
Total                                                                         3.3 MB/s | 164 kB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                      1/1 
  Installing       : pciutils-3.7.0-1.el8.x86_64                                                          1/2 
  Installing       : rdma-core-32.0-2.el8.x86_64                                                          2/2 
  Running scriptlet: rdma-core-32.0-2.el8.x86_64                                                          2/2 
  Verifying        : pciutils-3.7.0-1.el8.x86_64                                                          1/2 
  Verifying        : rdma-core-32.0-2.el8.x86_64                                                          2/2 
Installed products updated.

Installed:
  pciutils-3.7.0-1.el8.x86_64                           rdma-core-32.0-2.el8.x86_64                          

Complete!

Comment 5 errata-xmlrpc 2021-05-18 14:44:44 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:1594


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