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

Yum package provider: ensure => latest fails when RHEL channel has broken or bad duplicate errata

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Duplicate
    • PUP 4.3.1
    • None
    • None
    • None
    • Reviewed

    Description

      Yum can report errata as broken or bad duplicates in certain scenarios. See yum check-update reports broken update notices for an example "solution". While this is intermittent and likely an issue with the Red Hat channel, Puppet fails to ensure latest

      [root@puppet-astephens puppet-enterprise-2015.3.1-el-7-x86_64]# puppet apply -e "package{'puppet-agent': ensure => 'latest'}"
      Notice: Compiled catalog for puppet-astephens.dev.cmmint.net in environment production in 0.57 seconds
      Error: Could not get latest version: undefined method `[]' for nil:NilClass
      Error: /Stage[main]/Main/Package[puppet-agent]/ensure: change from 1.3.2-1.el7 to latest failed: Could not get latest version: undefined method `[]' for nil:NilClass
      Notice: Applied catalog in 1.34 seconds
      

      Which is caused by:

      Update notice RHSA-2014:0675 (from rhel-x86_64-server-optional-7) is broken, or a bad duplicate, skipping.
      You should report this problem to the owner of the rhel-x86_64-server-optional-7 repository.
      Update notice RHSA-2014:0686 (from rhel-x86_64-server-optional-7) is broken, or a bad duplicate, skipping.
      Update notice RHSA-2014:0685 (from rhel-x86_64-server-optional-7) is broken, or a bad duplicate, skipping.
      Update notice RHSA-2014:0702 (from rhel-x86_64-server-optional-7) is broken, or a bad duplicate, skipping.
      Update notice RHSA-2014:0678 (from rhel-x86_64-server-optional-7) is broken, or a bad duplicate, skipping.
      Update notice RHSA-2014:0704 (from rhel-x86_64-server-optional-7) is broken, or a bad duplicate, skipping.
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              adamcstephens Adam Stephens
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support