The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com

Bug #3730

yumhelper.py shows updates available which are not installable

Added by Andreas Thienemann about 4 years ago. Updated about 4 years ago.

Status:Needs DecisionStart date:05/06/2010
Priority:NormalDue date:
Assignee:David Lutterkort% Done:

0%

Category:package
Target version:-
Affected Puppet version:0.25.4 Branch:
Keywords:

We've Moved!

Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com

This ticket may be automatically exported to the PUP project on JIRA using the button below:


Description

Current yumhelper.py has the problem that it shows packages ready to be updated which are actually not available for updates. This only manifests itself with yum versions older than 3.0.0

[root@mc101ppcapp-01 ~]# python /usr/lib/ruby/site_ruby/1.8/puppet/provider/package/yumhelper.py pkg perl-XML-LibXML 0 1.58 3.el4 i386 pkg ImageMagick-perl 0 6.0.7.1 20.el4 i386 pkg perl-IO-String 0 1.08 1.1.el4 noarch pkg perl-Cyrus 0 2.2.12 9.RHEL4 i386 pkg perl-TimeDate 1 1.16 5.el4 noarch pkg perl-IO-Zlib 0 1.04 4.2.el4 noarch pkg perl-XML-LibXML-Common 0 0.13 8.el4 i386 pkg perl-HTML-Parser 0 3.55 1.el4 i386 pkg perl-Archive-Tar 0 1.30 1.el4 noarch pkg ImageMagick 0 6.0.7.1 20.el4 i386 [root@mc101ppcapp-01 ~]#

vs.

[root@mc101ppcapp-01 ~]# yum check-update Loading “priorities” plugin Loading “packagelock” plugin Setting up repositories Reading repository metadata in from local files 708 packages excluded due to repository priority protections Reading package lock configuration [root@mc101ppcapp-01 ~]#

This difference is due to yumhelper disregarding plugins such as versionlock, priorities, protectbase or similar yum plugins which may affect package selection.

The attached patch adds plugin support to yumhelper, so that it has the same understanding of the repository that regular yum has. This should fix the observed problem.

Newer versions of yum.YumBase.doConfigSetup() already initialize plugins, so it is not an issue with these.

puppet-yumhelper-plugins.patch Magnifier (931 Bytes) Andreas Thienemann, 05/06/2010 12:21 pm

History

#1 Updated by James Turnbull about 4 years ago

  • Category set to package
  • Status changed from Unreviewed to Needs Decision
  • Assignee set to David Lutterkort

Also available in: Atom PDF