Error: One or more required packages for installing OFED-internal are missing. MLNX_OFED_LINUX-4.9-5.1.0.0-ol7.9-x86_64

Hi mellanox MLNX_OFED_LINUX-4.9-5.1.0.0-ol7.9-x86_64, cannot be installed in a pod-container because some packages are missing… although the packages are already installed.

[root@oralinux-28-ens7-30908-586fd58f95-vdf66 /]# uname -r
5.4.17-2136.308.9.el7uek.x86_64

[root@oralinux-28-ens7-30908-586fd58f95-vdf66 MLNX_OFED_LINUX-4.9-5.1.0.0-ol7.9-x86_64]# yum install createrepo
Loaded plugins: ovl, ulninfo
Package createrepo-0.9.9-28.el7.noarch already installed and latest version
Nothing to do

wget https://yum.oracle.com/repo/OracleLinux/OL7/UEKR6/x86_64/getPackage/kernel-uek-devel-5.4.17-2136.308.9.el7uek.x86_64.rpm
rpm -i kernel-uek-devel-5.4.17-2136.308.9.el7uek.x86_64.rpm

[root@oralinux-28-ens7-30908-586fd58f95-vdf66 MLNX_OFED_LINUX-4.9-5.1.0.0-ol7.9-x86_64]# rpm -i kernel-uek-devel-5.4.17-2136.308.9.el7uek.x86_64.rpm
package kernel-uek-devel-5.4.17-2136.308.9.el7uek.x86_64 is already installed

[root@oralinux-28-ens7-30908-586fd58f95-vdf66 MLNX_OFED_LINUX-4.9-5.1.0.0-ol7.9-x86_64]# ./mlnxofedinstall --upstream-libs --dpdk --add-kernel-support
Note: This program will create MLNX_OFED_LINUX TGZ for ol7.9 under /tmp/MLNX_OFED_LINUX-4.9-5.1.0.0-5.4.17-2136.308.9.el7uek.x86_64 directory.
See log file /tmp/MLNX_OFED_LINUX-4.9-5.1.0.0-5.4.17-2136.308.9.el7uek.x86_64/mlnx_iso.34862_logs/mlnx_ofed_iso.34862.log
Checking if all needed packages are installed…
ERROR: ‘createrepo’ is not installed!
‘createrepo’ package is needed for creating a repository from MLNX_OFED_LINUX RPMs.
Use ‘–skip-repo’ flag if you are not going to set MLNX_OFED_LINUX as repository for
installation using yum/zypper tools.

/lib/modules/5.4.17-2136.308.9.el7uek.x86_64/build/scripts is required to build mlnx-ofa_kernel RPM.
Please install the corresponding kernel-source or kernel-devel RPM.

Error: One or more required packages for installing OFED-internal are missing.
Please install the missing packages using your Linux distribution Package Management tool.
Run:
yum install kernel-uek-devel-5.4.17-2136.308.9.el7uek.x86_64
Failed to build MLNX_OFED_LINUX for 5.4.17-2136.308.9.el7uek.x86_64
[root@oralinux-28-ens7-30908-586fd58f95-vdf66 MLNX_OFED_LINUX-4.9-5.1.0.0-ol7.9-x86_64]#

hi,
which oracle linux version are you using?
suggest :

  1. use higer OFED version. ex OFED 5.4 , the newest is 5.7. They can support the kernel 5.4.17
    download OFED from: https://network.nvidia.com/products/infiniband-drivers/linux/mlnx_ofed/

  2. then don’t need to use ’ --add-kernel-support’

Regards,
Levei