[LU-11541] DKMS building the lustre client modules with Mellanox OFED is broken on Debian/Ubuntu Created: 18/Oct/18 Updated: 02/Jan/19 Resolved: 27/Nov/18 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.12.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Åke Sandgren | Assignee: | Åke Sandgren |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Ubuntu with Mellanox OFED 4.4 |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Severity: | 3 | ||||||||
| Rank (Obsolete): | 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) |
| Comments |
| Comment by Peter Jones [ 18/Oct/18 ] |
|
Åke Could you please push your proposed patch into gerrit - http://wiki.lustre.org/Using_Gerrit ? Peter |
| Comment by Åke Sandgren [ 18/Oct/18 ] |
|
I think that wiki needs a bit of an update to not point to intel any longer? |
| Comment by Peter Jones [ 18/Oct/18 ] |
|
ok. I fixed the glaring one at the start of the page (weird that that one of all of them was missed). Feel free to correct any others you spot. |
| Comment by Åke Sandgren [ 18/Oct/18 ] |
|
I didn't have a gerrit user before. I hope i managed to get it setup correctly (userid ake_s, accountid 788). Do you need to do something on your end to give me access to pushing to review....? |
| Comment by Peter Jones [ 18/Oct/18 ] |
|
ake_s you should be ready to go now |
| Comment by Gerrit Updater [ 18/Oct/18 ] |
|
ake sandgren (ake.sandgren@hpc2n.umu.se) uploaded a new patch: https://review.whamcloud.com/33396 |
| Comment by Åke Sandgren [ 18/Oct/18 ] |
|
Btw, the attached version of the patch is slightly wrong but the one sent to gerrit is correct. I didn't have my configure.m4 brain turned on originally. |
| Comment by Gerrit Updater [ 21/Nov/18 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/33396/ |
| Comment by Peter Jones [ 21/Nov/18 ] |
|
Landed for 2.12 |
| Comment by Åke Sandgren [ 21/Nov/18 ] |
|
I have an adjustment to this. One shouldn't actually use the "default" link, but rather point it to the correct kernel version in /usr/src/ofa_kernel. Found out a bit too late... Should I make a new patch or update 33396? |
| Comment by Peter Jones [ 21/Nov/18 ] |
|
Make a new patch - 33396 has landed already.. |
| Comment by Gerrit Updater [ 21/Nov/18 ] |
|
ake sandgren (ake.sandgren@hpc2n.umu.se) uploaded a new patch: https://review.whamcloud.com/33702 |
| Comment by James A Simmons [ 21/Nov/18 ] |
|
Another fix is needed. |
| Comment by Andreas Dilger [ 22/Nov/18 ] |
James, could you please clarify? Is another patch needed beyond https://review.whamcloud.com/33702 |
| Comment by Peter Jones [ 22/Nov/18 ] |
|
From the timing (I'm lurking on the ticket) I think that he was referring to https://review.whamcloud.com/33702 - he reopened the ticket because an extra patch appeared after the ticket had been marked as resolved. |
| Comment by Gerrit Updater [ 27/Nov/18 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/33702/ |
| Comment by Peter Jones [ 27/Nov/18 ] |
|
Landed for 2.12 |