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

Yum package provider: ensure => latest fails when packages update available

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: PUP 4.10.6
    • Fix Version/s: PUP 4.10.7, PUP 5.2.0
    • Component/s: None
    • Labels:
    • Environment:

      CentOS Linux release 7.3.1611 (3.10.0-514.26.2.el7.x86_64)
      puppet-agent-1.10.5-1.el7.x86_64

    • Template:
    • Team:
      Platform OS
    • Story Points:
      0
    • Sprint:
      Platform OS 2017-08-22, Platform OS 2017-09-05
    • Method Found:
      Customer Feedback
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      The yum package provider will now no longer crash when yum's output contains additional messaging that comes with some plugins.
    • QA Risk Assessment:
      Manual

      Description

      If one package is listed in the output of 'yum check-update', any package update fails.

      # puppet resource package kernel ensure=latest
      Error: Could not get latest version: undefined method `[]' for nil:NilClass
      Error: /Package[kernel]/ensure: change from 3.10.0-514.26.2.el7 to latest failed: Could not get latest version: undefined method `[]' for nil:NilClass
      package { 'kernel':
        ensure => '3.10.0-514.26.2.el7',
      }
      

       
      # /bin/yum check-update
      Loaded plugins: enabled_repos_upload, fastestmirror, package_upload, product-id, search-disabled-repos, subscription-
                    : manager, tracer_upload
      KS_Centos_Centos_7_Base                                                                       | 2.1 kB  00:00:00     
      KS_Centos_Centos_7_Updates                                                                    | 2.5 kB  00:00:00     
      KS_Katello_Server_3_4                                                                         | 2.1 kB  00:00:00     
      Loading mirror speeds from cached hostfile
       
      foreman-installer-katello.noarch                          3.4.4-1.el7                           KS_Katello_Server_3_4
      katello-debug.noarch                                      3.4.4-2.el7                           KS_Katello_Server_3_4
      katello-installer-base.noarch                             3.4.4-1.el7                           KS_Katello_Server_3_4
      katello-service.noarch                                    3.4.4-2.el7                           KS_Katello_Server_3_4
      Uploading Enabled Reposistories Report
      Loaded plugins: fastestmirror, product-id
      
      

      # yum-config-manager --disable KS_Katello_Server_3_4
      

      # puppet resource  package kernel ensure=latest
      package { 'kernel':
        ensure => '3.10.0-514.26.2.el7',
      }
      

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  achevalet Anthony Chevalet
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  11 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: