Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-16050

ofed_info does not show mlnx-ofed-kernel-modules

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • Lustre 2.16.0, Lustre 2.15.2
    • Lustre 2.16.0, Lustre 2.15.1
    • None
    • 3
    • 9223372036854775807

    Description

      After installing MLNX_OFED by running mlnxofedinstall command, I found mlnx-ofed-kernel-modules package was not listed in the output of ofed_info:

      # tar xzf MLNX_OFED_LINUX-5.6-2.0.9.0-ubuntu22.04-x86_64.tgz 
      # cd MLNX_OFED_LINUX-5.6-2.0.9.0-ubuntu22.04-x86_64/
      # ./mlnxofedinstall --add-kernel-support --all --force
      # /etc/init.d/openibd restart
      
      # dpkg -S /usr/src/ofa_kernel/x86_64/5.15.0-41-generic/
      mlnx-ofed-kernel-modules: /usr/src/ofa_kernel/x86_64/5.15.0-41-generic
      
      # ofed_info | awk '{print $2}' | grep mlnx-ofed
      mlnx-ofed-kernel-utils
      

      There is no mlnx-ofed-kernel-modules in the output, which caused Lustre configure hit the following error:

      checking whether to use Compat RDMA... /usr/bin/ofed_info
      dpkg-query: error: --listfiles needs at least one package name argument
      

      The relevant codes are in lnet/autoconf/lustre-lnet.m4:

      case $with_o2ib in
              yes)    AS_IF([which ofed_info 2>/dev/null], [
                              AS_IF([test x$uses_dpkg = xyes], [
                                      OFED_INFO="ofed_info | awk '{print \[$]2}'"
                                      LSPKG="dpkg --listfiles"
                              ], [
                                      OFED_INFO="ofed_info"
                                      LSPKG="rpm -ql"
                              ])
                              O2IBPATHS=$(eval $OFED_INFO |
                                          egrep -w 'mlnx-ofed-kernel-dkms|mlnx-ofa_kernel-devel|compat-rdma-devel|kernel-ib-devel|ofa_kernel-devel' |
                                          xargs $LSPKG | grep -v 'ofa_kernel-' | grep rdma_cm.h | sed 's/\/include\/rdma\/rdma_cm.h//')
      

      Attachments

        Activity

          People

            yujian Jian Yu
            yujian Jian Yu
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: