Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-9605

Type package (provider yum) fails when handling kernel packages

    XMLWordPrintable

Details

    • Night's Watch
    • 3
    • PR - 2019-06-25, PR - 2019-07-10, PR - 2019-07-23, NW - 2019-08-07, NW - 2019-08-21, NW - 2019-09-03
    • Needs Assessment
    • Bug Fix
    • Hide
      Add support for new package provider parameter *install_only*
      Can be used with yum/dnf package providers
      It should be set for packages that should only ever be installed,
      never updated. Kernels in particular fall into this category.
      It is similar to installonlypkgs functionality from https://linux.die.net/man/5/yum.conf
      Show
      Add support for new package provider parameter *install_only* Can be used with yum/dnf package providers It should be set for packages that should only ever be installed, never updated. Kernels in particular fall into this category. It is similar to installonlypkgs functionality from https://linux.die.net/man/5/yum.conf
    • Needs Assessment

    Description

      Puppet Version:

      4.10.4

      Puppet Server Version:

      3.6.2
      OS Name/Version:

      CentOS 7

      Desired Behavior:

      *Being able to handle yum packages that in the rare cases in which you can have *multiple versions of a package installed without conflict (e.g., the kernel package)

      Actual Behavior:

      Error: Could not update: Failed to update to version 3.10.0-957.10.1.el7.x86_64, got version 3.10.0-957.5.1.el7 instead
      Error: /Stage[main]/Dap_pcappiper::Install/Package[kernel-devel]/ensure: change from 3.10.0-957.5.1.el7 to 3.10.0-957.10.1.el7.x86_64 failed: Could not update: Failed to update to version 3.10.0-957.10.1.el7.x86_64, got version 3.10.0-957.5.1.el7 instead

      package

      {'kernel-devel': ensure => '3.10.0-957.10.1.el7.x86_64', }

       

      When running i debug mode I can see the following command

      /bin/rpm -q kernel-devel --nosignature --nodigest --qf '%{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n'

      And if I run that I get

      sudo /bin/rpm -q kernel-devel --nosignature --nodigest --qf '%{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n'
      kernel-devel 0 3.10.0 957.5.1.el7 x86_64
      kernel-devel 0 3.10.0 957.10.1.el7 x86_64

       

      Attachments

        Activity

          People

            ciprian.badescu Ciprian Badescu
            myMarck Nicolai Marck Ødum
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support