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

DKMS building the lustre client modules with Mellanox OFED is broken on Debian/Ubuntu

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.12.0
    • None
    • None
    • Ubuntu with Mellanox OFED 4.4
    • 3
    • 9223372036854775807

    Description

      Commit baf83c76f11a28a105e92e59b178a7ca2fb66156 has broken dkms builds with Mellanox OFED based builds on Debian/Ubuntu.

       

      config/lustre-build-linux.m4 need to retain the LB_USES_DPKG block so that uses_dpkg remains defined since it is being used in lnet/autoconf/lustre-lnet.m4 to detect how to handle the ofed_info output. And config/lustre-build.m4 should then also be reverted regarding the above commit.

       

      There is also another problem when using Mellanox OFED 4.4 DKMS built kernel modules.

      /usr/src/ofa_kernel/default doesn't exist in the mlnx-ofed-kernel-dkms package, it is only created (as a link) during package installation. Therefore the

      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 '(/openib|/ofa_kernel/default)$' | head -n1)

      in lnet/autoconf/lustre-lnet.m4 fails.

       

      The attached patch fixes the problem (assuming the LB_USES_DPKG block has been put back)

      Attachments

        Issue Links

          Activity

            People

              ake_s Åke Sandgren
              ake_s Åke Sandgren
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: