[LU-10752] Lustre rpm build issues due to improper lsvcgss packaging Created: 01/Mar/18 Updated: 07/Jan/19 Resolved: 09/Apr/18 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.11.0, Lustre 2.10.3 |
| Fix Version/s: | Lustre 2.12.0 |
| Type: | Bug | Priority: | Critical |
| Reporter: | James A Simmons | Assignee: | James A Simmons |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | patch | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Severity: | 3 | ||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||
| Description |
|
For awhile lustre rpms don't build out of the box for ARM or Power8 platforms due to the lustre.spec file being incorrect with lsvcgss handling. This file is a server only file but it currently is installed on clients as well. One some platforms lsvcgss will not be there so it fails to build rpms. Since it was only on ARM or Power8 no big rush was done to resolve this but today I saw it happen on a normal x86 RHEL7 system. So this needs to be pushed so users don't run into RHEL rpm build issues. |
| Comments |
| Comment by Gerrit Updater [ 01/Mar/18 ] |
|
James Simmons (uja.ornl@yahoo.com) uploaded a new patch: https://review.whamcloud.com/31485 |
| Comment by Gerrit Updater [ 15/Mar/18 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/31485/ |
| Comment by Peter Jones [ 15/Mar/18 ] |
|
Landed for 2.11 |
| Comment by Amir Shehata (Inactive) [ 21/Mar/18 ] |
|
With this patch "make rpms" fails if keyutils-libs-devel is not installed. The package has to be installed or --disable-gss-keyring must be specified. I don't think this is the correct behavior. |
| Comment by James A Simmons [ 21/Mar/18 ] |
|
I can fix that. The autoconf support for GSS is very fragile |
| Comment by James A Simmons [ 22/Mar/18 ] |
|
So looking at the GSS autoconf handling I noticed both a --enable-gss and --enable-gss-keyring. The --enable-gss is for clients and servers and --enable-gss-keyring is just servers. So lgssc.conf should be installed when --enable-gss=yes and be indepenent of --enable-gss-keyring. Also if enable-gss-keyring is done we should force enable-gss. I will do some testing for that case. |
| Comment by Gerrit Updater [ 23/Mar/18 ] |
|
James Simmons (uja.ornl@yahoo.com) uploaded a new patch: https://review.whamcloud.com/31757 |
| Comment by James A Simmons [ 23/Mar/18 ] |
|
This should resolve all the issues
|
| Comment by Peter Jones [ 26/Mar/18 ] |
|
Seems to still be in flux |
| Comment by James A Simmons [ 26/Mar/18 ] |
|
Sebastien pointed out that the lgssd.conf file is server only. Latest version of the patch resolves that issue. Otherweise the patch was good. Speaking of packaging I also noticed that GSS server stuff is only packaged for RHEL systems. You can build on SuSE servers but not package it |
| Comment by James A Simmons [ 27/Mar/18 ] |
|
Wow a person that builds lustre with mock. The latest version of the patch should make Lustre build with mock. |
| Comment by Elena Gryaznova [ 28/Mar/18 ] |
|
build still fails with --disable-gss |
| Comment by James A Simmons [ 29/Mar/18 ] |
|
Boy this has been challenging. The latest patch should support both make rpm and mock build systems. For building from the source rpms GSS will be by default disabled. Its to not easy to know if the kernel the rpm is being built against is too new for GSS and the spec file does not handle the GSS buiild dependencies. I also have fixed up make rpms to handle both the various combos of enable-gss and enable-gss-keyrings now. Let me know if this works. |
| Comment by Gerrit Updater [ 09/Apr/18 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/31757/ |
| Comment by Peter Jones [ 09/Apr/18 ] |
|
Landed for 2.12 |