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

Dependency mismatch for RHEL ppc64 client kernel RPM

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.8.0
    • None
    • 3
    • 17641

    Description

      The Redhat kernel RPM the following dependencies:

      rpm -q --provides kernel-2.6.32-431.29.2.el6.ppc64
      kernel = 2.6.32-431.29.2.el6
      kernel-ppc64 = 2.6.32-431.29.2.el6
      ...
      

      The Lustre client module requires the following kernel:

      rpm -q --requires lustre-client-modules-2.6.92-2.6.32_431.29.2.el6.ppc64_g33984c0.ppc64
      ...
      kernel = 2.6.32-431.29.2.el6.ppc64
      ...
      

      This leads to the situation that the client modules can't be installed.
      Fix is to add the line:

      -e 's/\.ppc64$//'
      

      to line

      %define krequires %(bash -c "echo %{kversion} | sed -e 's/\.x86_64$//' -e 's/\.i[3456]86$//' -e 's/-smp$//' -e 's/-bigsmp$//' -e 's/-ppc64$//' -e 's/-default$//'")
      

      in lustre-release/lustre.spec.in.

      Attachments

        Activity

          [LU-6300] Dependency mismatch for RHEL ppc64 client kernel RPM
          pjones Peter Jones added a comment -

          Landed for 2.8

          pjones Peter Jones added a comment - Landed for 2.8

          Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/14012/
          Subject: LU-6300 build: Kernel string mismatch for ppc64 in RPMs
          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: a4bcfa9c49abae8035b05d94a09352aae01bd77d

          gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/14012/ Subject: LU-6300 build: Kernel string mismatch for ppc64 in RPMs Project: fs/lustre-release Branch: master Current Patch Set: Commit: a4bcfa9c49abae8035b05d94a09352aae01bd77d
          heckes Frank Heckes (Inactive) added a comment - - edited

          I took your suggestion. I was unsure whether the - has to be escaped, too (as it's a range operator) in the [ ], but it seems to work as expected (checked it with some different input strings).

          heckes Frank Heckes (Inactive) added a comment - - edited I took your suggestion. I was unsure whether the - has to be escaped, too (as it's a range operator) in the [ ] , but it seems to work as expected (checked it with some different input strings).

          Frank Heckes (Frank.Heckes@intel.com) uploaded a new patch: http://review.whamcloud.com/14012
          Subject: LU-6300 build: Kernel string mismatch for ppc64 in RPMs
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: 10d30a7a1dca205f30dc2cf3980387af7b0e4e91

          gerrit Gerrit Updater added a comment - Frank Heckes (Frank.Heckes@intel.com) uploaded a new patch: http://review.whamcloud.com/14012 Subject: LU-6300 build: Kernel string mismatch for ppc64 in RPMs Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 10d30a7a1dca205f30dc2cf3980387af7b0e4e91

          It looks like it would be possible to just change:

          sed -e 's/\.x86_64$//' -e 's/\.i[3456]86$//' -e 's/-smp$//' -e 's/-bigsmp$//' -e 's/-ppc64$//' -e 's/-default$//'")
          

          to

          sed -e 's/\.x86_64$//' -e 's/\.i[3456]86$//' -e 's/-smp$//' -e 's/-bigsmp$//' -e 's/[\.-]ppc64$//' -e 's/-default$//'")
          
          adilger Andreas Dilger added a comment - It looks like it would be possible to just change: sed -e 's/\.x86_64$//' -e 's/\.i[3456]86$//' -e 's/-smp$//' -e 's/-bigsmp$//' -e 's/-ppc64$//' -e 's/-default$//'") to sed -e 's/\.x86_64$//' -e 's/\.i[3456]86$//' -e 's/-smp$//' -e 's/-bigsmp$//' -e 's/[\.-]ppc64$//' -e 's/-default$//'")
          heckes Frank Heckes (Inactive) added a comment - - edited

          Yes, I will.

          heckes Frank Heckes (Inactive) added a comment - - edited Yes, I will.

          Hi Frank, would you be able to submit a patch for this?

          adilger Andreas Dilger added a comment - Hi Frank, would you be able to submit a patch for this?

          People

            wc-triage WC Triage
            heckes Frank Heckes (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: