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

Yum package provider: ensure => latest fails in case of broken update notices

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • PUP 4.3.0
    • PUP 4.4.0
    • Catalog Application
    • None
    • RHEL 7.2

    • 1
    • Client 2015-12-16
    • Bug Fix
    • This fixes a scenario where the yum provider fails if the output of 'yum check-update' includes an "Update" notice, e.g. as seen with "broken update" notices.

    Description

      Similar to PUP-4497 and PUP-5309, ensure => latest fails when `yum check-update` lists broken update notices

      # puppet apply -e "package{'puppet-agent': ensure => 'latest'}"
      Notice: Compiled catalog for localhost in environment production in 1.00 seconds
      Error: Could not get latest version: undefined method `[]' for nil:NilClass
      Error: /Stage[main]/Main/Package[puppet-agent]/ensure: change from 1.3.0-1.el7 to latest failed: Could not get latest version: undefined method `[]' for nil:NilClass
      Notice: Applied catalog in 7.66 seconds
      

      yum check-update output:

      # yum check-update
      Loaded plugins: product-id, subscription-manager, versionlock
       
      Red_Hat_Enterprise_Linux-Release_Notes-7-en-US.noarch                                                7-2.el7                                                                          rhel-7-server-rpms         
      alsa-tools-firmware.x86_64                                                                           1.0.28-2.el7                                                                     rhel-7-server-rpms         
      [snip]
      Update notice RHBA-2014:0722 (from rhel-7-server-rpms) is broken, or a bad duplicate, skipping.
      You should report this problem to the owner of the rhel-7-server-rpms repository.
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ckaenzig Christian Kaenzig
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support