[LU-12214] lustre spec file don't provide a right build requirements Created: 22/Apr/19 Updated: 12/Apr/23 Resolved: 22/Jul/21 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.12.0, Lustre 2.12.6 |
| Fix Version/s: | Lustre 2.15.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Alexey Lyashkov | Assignee: | Alexey Lyashkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
RHEL |
||
| Issue Links: |
|
||||||||||||
| Severity: | 3 | ||||||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||||||
| Description |
|
Lustre spec file have a several issues related to the building. |
| Comments |
| Comment by Gerrit Updater [ 11/Oct/19 ] |
|
Alexey Lyashkov (c17817@cray.com) uploaded a new patch: https://review.whamcloud.com/36423 |
| Comment by Gerrit Updater [ 11/Oct/19 ] |
|
Alexey Lyashkov (c17817@cray.com) uploaded a new patch: https://review.whamcloud.com/36424 |
| Comment by Gerrit Updater [ 11/Oct/19 ] |
|
Alexey Lyashkov (c17817@cray.com) uploaded a new patch: https://review.whamcloud.com/36425 |
| Comment by Gerrit Updater [ 11/Oct/19 ] |
|
Alexey Lyashkov (c17817@cray.com) uploaded a new patch: https://review.whamcloud.com/36426 |
| Comment by Gerrit Updater [ 11/Oct/19 ] |
|
Alexey Lyashkov (c17817@cray.com) uploaded a new patch: https://review.whamcloud.com/36427 |
| Comment by Gerrit Updater [ 11/Oct/19 ] |
|
Alexey Lyashkov (c17817@cray.com) uploaded a new patch: https://review.whamcloud.com/36428 |
| Comment by Gerrit Updater [ 11/Oct/19 ] |
|
Alexey Lyashkov (c17817@cray.com) uploaded a new patch: https://review.whamcloud.com/36429 |
| Comment by Gerrit Updater [ 11/Oct/19 ] |
|
Alexey Lyashkov (c17817@cray.com) uploaded a new patch: https://review.whamcloud.com/36430 |
| Comment by Gerrit Updater [ 23/Jan/20 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/36423/ |
| Comment by Cory Spitz [ 28/Feb/20 ] |
|
mdiep, ofaaland, https://review.whamcloud.com/#/c/36424 has been ready for some time, but it needs another +1. Can you please provide a review? Thanks! |
| Comment by Gerrit Updater [ 05/Mar/20 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/36424/ |
| Comment by Gerrit Updater [ 05/Mar/20 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/36426/ |
| Comment by Gerrit Updater [ 05/Mar/20 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/36427/ |
| Comment by Shuichi Ihara [ 09/Mar/20 ] |
|
Unfortunately, patch https://review.whamcloud.com/#/c/36427/ was already merged, but after patch merged, 'make rpm' is always asking 'openmpi-devel' as a required package even openmpi is not detected. It should be disabled by default if configure doesn't detect openmpi, shouldn't it? |
| Comment by Alexey Lyashkov [ 09/Mar/20 ] |
|
as i understand - you try to play with configure args - but it completely wrong way with rpm packaging. 1) Once MOFED don't provide an own openmpi-devel rpm - it's looks one more bug in the MOFED packagers. 2) %bcond_without mpi .. in spec file, so it mean [rpmbuild | mock] --without=mpi - will block a building mpi tools. |
| Comment by Shuichi Ihara [ 11/Mar/20 ] |
|
Sure, I would you ask Mellanox fixing of openmpi-devel in MOFED, that's OK. But, "make rpms" still broke after patch 36427. Shouldn't 'configure' detect whehter if openmpi-devel is installed and if it's not installed, I would keep same behavior before patch otherwise people who did't install mpi, claims "make rpms" doesn't work anymore. I know 'rpmbuild lustre.spec' works, but I also would keep "make rpms" is happy because it has been simple and I believe the most of people build rpm with that way other than rpmbuild directly. |
| Comment by Alexey Lyashkov [ 11/Mar/20 ] |
|
Okey. i will provide a fix for make rpms case. |
| Comment by Shuichi Ihara [ 11/Mar/20 ] |
Great, thank you for your understanding.
Yeah, agreed, but let's also assume non-HPC person who don't know MPI, but want to use Lustre |
| Comment by Alexey Lyashkov [ 11/Mar/20 ] |
|
> Yeah, agreed, but let's also assume non-HPC person who don't know MPI, but want to use Lustre It's nothing about HPC. non-HPC person can use mock or make srpm + rpm build or OBS to create a packages. It probably good time to separate mpi tests into own package. I will look to this. |
| Comment by Shuichi Ihara [ 14/Mar/20 ] |
|
Since
|
| Comment by Alexey Lyashkov [ 16/Mar/20 ] |
|
I filled a ticket and started to discus with own friends in Mellanox. |
| Comment by Shuichi Ihara [ 16/Mar/20 ] |
|
thx, but openmpi in mellanox is not critical. the problem is that after patch 36427 landed, 'make rpms' is broken and lustre can't make rpms even mpi test disabled, that's main problem. |
| Comment by Gerrit Updater [ 17/Mar/20 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/36428/ |
| Comment by Gerrit Updater [ 17/Mar/20 ] |
|
Alexey Lyashkov (alexey.lyashkov@hpe.com) uploaded a new patch: https://review.whamcloud.com/37954 |
| Comment by Alexey Lyashkov [ 17/Mar/20 ] |
|
Can you please check - is this simple change is enough for you, or additional spec file fixes needs. |
| Comment by James A Simmons [ 17/Mar/20 ] |
|
BTW I see the same issues with selinux. |
| Comment by Gerrit Updater [ 23/Apr/20 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/37954/ |
| Comment by Gerrit Updater [ 14/May/20 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/36429/ |
| Comment by James A Simmons [ 27/May/20 ] |
|
Will you be pushing a patch that packages lnet into its own RPM. I know cray has carried this for years. |
| Comment by Gerrit Updater [ 23/Jun/20 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/36430/ |
| Comment by Peter Jones [ 23/Jun/20 ] |
|
Landed for 2.14 |
| Comment by Minh Diep [ 24/Jun/20 ] |
|
This patch caused installation failure. please suggest a suitable deb to install root@trevis-66vm1:~# apt install libssl1.1+ The following packages have unmet dependencies: |
| Comment by Andreas Dilger [ 09/Sep/20 ] |
|
It looks like patch https://review.whamcloud.com/36430 " This was hit while testing patch https://review.whamcloud.com/39838 "LU-12661 tests: skip sanity 817 for kernel 4.12+" with "Test-Parameters: clientdistro=slies15sp1": Zypper installation of lustre-client lustre-client-tests on node trevis-200vm4 failed 2020-09-09T19:32:27: zypper install output: Loading repository data... Reading installed packages... Resolving package dependencies... 2 Problems: Problem: nothing provides krb5-libs needed by lustre-client-2.13.55_80_g16b4146-1.x86_64 Problem: nothing provides krb5-libs needed by lustre-client-2.13.55_80_g16b4146-1.x86_64 Problem: nothing provides krb5-libs needed by lustre-client-2.13.55_80_g16b4146-1.x86_64 Solution 1: do not install lustre-client-2.13.55_80_g16b4146-1.x86_64 Solution 2: break lustre-client-2.13.55_80_g16b4146-1.x86_64 by ignoring some of its dependencies Choose from above solutions by number or skip, retry or cancel [1/2/s/r/c/d/?] (c): c 2020-09-09T19:32:27: Zypper install was unsuccessful. |
| Comment by Andreas Dilger [ 10/Sep/20 ] |
|
The SLES package name is just "krb5", so a patch is needed to make this conditional in the lustre.spec.in file. |
| Comment by Andreas Dilger [ 16/Sep/20 ] |
|
The most straight forward solution seems to be something like: %if %{with gss}
BuildRequires: krb5-devel openssl-devel
+%if %{_vendor}=="redhat" || %{_vendor}=="fedora"
Requires: krb5-libs openssl-libs
+%else
+Requires: krb5 openssl
+%endif
%endif
According to rpmfind.net the SLES15sp1 krb5 package provides: krb5
config(krb5)
krb5(x86-64)
libgssapi_krb5.so.2()(64bit)
libgssrpc.so.4()(64bit)
libk5crypto.so.3()(64bit)
libkrb5.so.3()(64bit)
:
while rpmfind.net shows the RHEL8.2 krb5-libs package provides: krb5-libs
config(krb5-libs)
krb5-libs(x86-64)
libgssapi_krb5.so.2()(64bit)
libgssrpc.so.4()(64bit)
libk5crypto.so.3()(64bit)
libkrb5.so.3()(64bit)
:
and the same for RHEL7.x. It seems possible to change the "package name requires" to "dependency requires" something like the following to work on both distro types: Requires: libgssapi_krb5.so.2()(64bit) libcrypto.so.10()(64bit) but I haven't actually tried this. It isn't clear if this would be more portable, or potentially cause other problems in the future. It seems that the krb5-devel and openssl-devel package names are consistent across distros. |
| Comment by Gerrit Updater [ 18/Sep/20 ] |
|
Alexey Lyashkov (alexey.lyashkov@hpe.com) uploaded a new patch: https://review.whamcloud.com/39972 |
| Comment by James A Simmons [ 29/Sep/20 ] |
|
For debian I believe the correct package is libssl1.1. |
| Comment by Gerrit Updater [ 11/Oct/20 ] |
|
Minh Diep (mdiep@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/40214 |
| Comment by Gerrit Updater [ 27/Oct/20 ] |
|
Andreas Dilger (adilger@whamcloud.com) merged in patch https://review.whamcloud.com/40214/ |
| Comment by Gerrit Updater [ 22/Jul/21 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/39972/ |
| Comment by Peter Jones [ 22/Jul/21 ] |
|
Looks like all the patches have landed for 2.15 |