Bug 321481

Summary: yum-utils - "maximum recursion depth exceeded" in package-cleanup
Product: [Fedora] Fedora Reporter: Michal Jaegermann <michal>
Component: yum-utilsAssignee: Seth Vidal <skvidal>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: lmacken, pellerin.edouard, pmatilai, tim.lauridsen
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-10-08 13:07:37 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Michal Jaegermann 2007-10-06 17:43:39 UTC
Description of problem:

With all current updates commands like 'package-cleanup --problems'
or 'package-cleanup --dupes' end up with the following:

Traceback (most recent call last):
  File "/usr/bin/package-cleanup", line 402, in <module>
    main()
  File "/usr/bin/package-cleanup", line 365, in main
    my = initYum(opts)
  File "/usr/bin/package-cleanup", line 48, in initYum
    my.doTsSetup()
  File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 64, in doTsSetup
   return self._getTs()
  File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 78, in _getTs
    self._tsInfo.setDatabases(self.rpmdb, self.pkgSack)
  File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 526, in <lambda>
   pkgSack = property(fget=lambda self: self._getSacks(),
  File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 397, in _getSacks
    self.costExcludePackages()
  File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 628, in
costExcludePackages
    for po in self.pkgSack:
  File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 526, in <lambda>
   pkgSack = property(fget=lambda self: self._getSacks(),
.....
(120K of the same skipped)
.....
  File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 526, in <lambda>
   pkgSack = property(fget=lambda self: self._getSacks(),
  File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 381, in _getSacks
    self.repos.populateSack(which=repos)
  File "/usr/lib/python2.5/site-packages/yum/repos.py", line 220, in populateSack
    myrepos = self.listEnabled()
  File "/usr/lib/python2.5/site-packages/yum/repos.py", line 153, in listEnabled
   if repo.isEnabled():
  File "/usr/lib/python2.5/site-packages/yum/repos.py", line 281, in isEnabled
    enabled = self.getAttribute('enabled')
RuntimeError: maximum recursion depth exceeded

'package-cleanup --help' or 'package-cleanup --orphans' works without
any recursion surprises.

Version-Release number of selected component (if applicable):
yum-utils-1.1.7-1.fc8
yum-3.2.6-1.fc8

How reproducible:
always

Comment 1 Seth Vidal 2007-10-08 13:07:37 UTC
this is fixed in git in yum, currently. A patch will be included for fedora today.

thanks


Comment 2 Edouard PELLERIN 2009-04-13 11:26:17 UTC
I have the same error with yum-utils 1.1.19/yum 3.2.21 on an up to date F10 installation. Is this version not patched ? It was previously working and I don't see what could have changed since last time.

Comment 3 seth vidal 2009-04-13 15:15:29 UTC
you get this exact error? Can you post the complete output you're seeing?

Comment 4 Edouard PELLERIN 2009-04-13 15:54:52 UTC
The "Runtime Error" was the same. After looking in details, I saw an impressive number of lines with :
"0 packages excluded due to repository protections
Reading version lock configuration"
I disabled the versionlock plugin, and it was working again. Should I file a new bug for versionlock ?

Comment 5 seth vidal 2009-04-13 16:01:01 UTC
Did you receive this error when running package-cleanup or something else?

In either case what verson of yum-versionlock do you have installed?

Comment 6 Edouard PELLERIN 2009-04-13 16:04:27 UTC
I got the error when running "package-cleanup --leaves"
The version of yum-lockversion is 1.1.19