[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: Zip Archive rpms (1).zip     Zip Archive rpms.zip    
Issue Links:
Related
is related to LU-6387 Add Power8 support to Lustre Resolved
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
Subject: LU-10752 build: properly package lsvcgss for rpm builds
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 2f0d08e284b453c086723c8cc78a0780fbac5379

Comment by Gerrit Updater [ 15/Mar/18 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/31485/
Subject: LU-10752 build: properly package lsvcgss for rpm builds
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: a34ba90453b8bb8de9bcdf949f8afc4c2a43f393

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  So even when libkeyutils is missing gss-keyring is enabled. That is really broken.

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
Subject: LU-10752 build: properly package lgssc.conf for rpm builds
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 11681ac0efd116171baf32fd31679e999d15fcb4

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/
Subject: LU-10752 build: fix rpm packaging issues for gss
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 6189ae07c5161d14c9e9f863a400045f923f2301

Comment by Peter Jones [ 09/Apr/18 ]

Landed for 2.12

Generated at Sat Feb 10 02:37:52 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.