Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
PUP 4.3.0
-
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
- is duplicated by
-
PUP-5707 Yum package provider: ensure => latest fails when RHEL channel has broken or bad duplicate errata
-
- Closed
-