Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-10752

Lustre rpm build issues due to improper lsvcgss packaging

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • Lustre 2.12.0
    • Lustre 2.11.0, Lustre 2.10.3
    • 3
    • 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.

      Attachments

        1. rpms.zip
          24 kB
        2. rpms (1).zip
          24 kB

        Issue Links

          Activity

            [LU-10752] Lustre rpm build issues due to improper lsvcgss packaging
            pjones Peter Jones added a comment -

            Landed for 2.12

            pjones Peter Jones added a comment - Landed for 2.12

            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

            gerrit Gerrit Updater added a comment - 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

            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.

            simmonsja James A Simmons added a comment - 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.

            build still fails with --disable-gss

            egryaznova Elena Gryaznova added a comment - build still fails with --disable-gss

            Wow a person that builds lustre with mock. The latest version of the patch should make Lustre build with mock.

            simmonsja James A Simmons added a comment - Wow a person that builds lustre with mock. The latest version of the patch should make Lustre build with mock.
            simmonsja James A Simmons added a comment - - edited

            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  

            simmonsja James A Simmons added a comment - - edited 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  
            pjones Peter Jones added a comment -

            Seems to still be in flux

            pjones Peter Jones added a comment - Seems to still be in flux

            This should resolve all the issues

             

            simmonsja James A Simmons added a comment - This should resolve all the issues  

            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

            gerrit Gerrit Updater added a comment - 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

            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.

            simmonsja James A Simmons added a comment - 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.

            People

              simmonsja James A Simmons
              simmonsja James A Simmons
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: