Details
-
Bug
-
Resolution: Fixed
-
Major
-
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//')
"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/48592/
Subject:
LU-16050build: replace ofed_info with dpkg/rpmProject: fs/lustre-release
Branch: b2_15
Current Patch Set:
Commit: 3c8812e6d364829c4faa78fe02feda755c83164a