[LU-5953] lustre[-dkms] needs to automatically account for OFED Created: 25/Nov/14 Updated: 06/Oct/16 Resolved: 20/Jun/16 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.9.0 |
| Type: | Improvement | Priority: | Major |
| Reporter: | Bruno Faccini (Inactive) | Assignee: | Nathaniel Clark |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||
| Rank (Obsolete): | 16631 | ||||||||||||
| Description |
| Comments |
| Comment by Dmitry Eremin (Inactive) [ 25/Nov/14 ] |
|
Hmm. What should you do if many different OFEDs installed on the machine? What version should you choose? |
| Comment by Peter Jones [ 25/Nov/14 ] |
| Comment by Dmitry Eremin (Inactive) [ 25/Nov/14 ] |
|
My understanding is we cannot try to find out any version of OFED in build scripts. This is unacceptable in terms of correct build process! We should avoid any heuristics in build process. All we need should be specified by user explicitly through command line options or spec file. Probably when we generate a DKMS spec file we can specify a dependency from particular version of OFED. This is bad idea and potentially bring us a lot of issues from customers when this logic will select incorrect version of OFED silently. |
| Comment by Dmitry Eremin (Inactive) [ 25/Nov/14 ] |
|
One of possible solutions can be specify to rpmbuild command option something like "--with mlx_ofed" and in .spec file have the following: %if %{with mlx_ofed}
BuildRequires: mlnx-ofa_kernel-devel
%define ofed_path /usr/src/ofa_kernel
%endif
|
| Comment by James A Simmons [ 04/Dec/14 ] |
|
Will this resolve |
| Comment by Bruno Faccini (Inactive) [ 05/Dec/14 ] |
|
James, I don't think so because in |
| Comment by Gerrit Updater [ 25/Mar/15 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/12686/ |
| Comment by James A Simmons [ 26/Mar/15 ] |
|
I'm seeing the following build errors after this was merged. hecking whether to use Compat RDMA... /usr/bin/ofed_info make: *** No rule to make target `rpms'. Stop. This is using the default OFED stack with RHEL6. I tried the test you merged in the patch and this is the result I get. ofed_info | egrep -w 'compat-rdma-devel|kernel-ib-devel|ofa_kernel-devel' | xargs rpm -ql | grep /openib but you test if the output is null which is not the case. |
| Comment by Bruno Faccini (Inactive) [ 27/Mar/15 ] |
|
Hello James, |
| Comment by James A Simmons [ 27/Mar/15 ] |
|
I looked and found our build machine has been hosed for a long time. Its just this patch exposes that the box have a a mixed OFED 3.5 and RHEL infiniband setup on the build machine. |
| Comment by Bruno Faccini (Inactive) [ 27/Mar/15 ] |
|
And this is somewhat its purpose to detect unexpected IB setups ... |
| Comment by Wang Shilong (Inactive) [ 02/Apr/15 ] |
|
Hello, We failed to build recently with this patch. It was because we failed following check: Here is really output for our building (rhel6.6 with MLNX_OFED_LINUX-2.4-1.0.4-rhel6.6-x86_64): [root@build01 MLNX_OFED_LINUX-2.4-1.0.4-rhel6.6-x86_64]# ofed_info | egrep -w 'compat-rdma-devel|kernel-ib-devel|ofa_kernel-devel' | xargs rpm -ql | grep '/openib' So maybe you mean '/openibd$' rather than '/openib$' ? Best regards, |
| Comment by Bruno Faccini (Inactive) [ 02/Apr/15 ] |
|
Hello Wang, OTH, I remember I have used the "openib" file/link name as a reference because I thought to have found it was kept for historical in the different OFED versions packaging. But seems MLNX_OFED now (I checked it is still true/working in/with MLNX_OFED_LINUX-2.1-*) breaks this behavior? |
| Comment by Wang Shilong (Inactive) [ 02/Apr/15 ] |
|
Hello, At least MLNX_OFED_LINUX-2.4-1.0.4-rhel6.6-x86_64.tar totally breaks your checks.. Please check it and download from following link |
| Comment by James A Simmons [ 02/Apr/15 ] |
|
I'm in the process of setting up a Mellanox stack system so if I run into this issue I will see what I can do to fix it. |
| Comment by Bruno Faccini (Inactive) [ 02/Apr/15 ] |
|
The simplest way to fix this could be to use the "--with-o2ib=<path>" configure option/way! And also to request latest MLNX_OFED versions to continue to provide the %install_path/openib link in their devel rpm? |
| Comment by Wang Shilong (Inactive) [ 02/Apr/15 ] |
|
Generally speaking, i don't think that automatically detecting is a good idea for super users, Bruno, maybe give options to users are better, no? |
| Comment by Bruno Faccini (Inactive) [ 02/Apr/15 ] |
|
This automatic detection mechanism is intended for IEEL and DKMS Lustre RPMs, as an experienced super-user, again why don't you use the "--with-o2ib=<path>" configure option/way ?? |
| Comment by Gerrit Updater [ 31/May/16 ] |
|
Nathaniel Clark (nathaniel.l.clark@intel.com) uploaded a new patch: http://review.whamcloud.com/20523 |
| Comment by Gerrit Updater [ 20/Jun/16 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/20523/ |