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

O2IB path autodetection is broken with multiple devel packages

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.16.0
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      For build step, OFED detection is based on header path detection from the locally installed packages.

      Building with multiple OFED headers installed (for different kernels by example) is broken since v2_15_63-60-g0e9708016b (and I don't see how that could have ever worked).
          
      For example:

      • Detection for mlnx-ofed-kernel-dkms package on Ubuntu was:
            
        /usr/src/ofa_kernel/ + $KERNEL_VERSION
            
        But the actual path is
            
        /usr/src/ofa_kernel/$ARCH/$KERNEL_VERSION

       

      • Detection for mlnx-ofa_kernel-devel package on EL8 is
            
        /usr/src/ofa_kernel/x86_64/4.18.0-477.27.1.el8.x86_64 + $KERNEL_VERSION
            
        But this is already the right path, so appending the kernel version won't work.
        This is working OK for now as there is a fallback step. But the fallback is only working if there is no multiple devel packages for MOFED being installed.

       

      Nowadays, path should always be:

      /usr/src/ofa_kernel/$ARCH/${LINUXRELEASE}

      and we could clean all the detection complexity but I don't know how far we should be retro-compatible and I don't have access to all the supported platforms, to confirm that.

      Attachments

        Activity

          People

            adegremont_nvda Aurelien Degremont
            adegremont_nvda Aurelien Degremont
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: