Bug 674690

Summary: AttributeError: 'NoneType' object has no attribute 'dbMatch' - can't install the newest koji kernel
Product: [Fedora] Fedora Reporter: Ville-Pekka Vainio <vpvainio>
Component: yumAssignee: Seth Vidal <skvidal>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 14CC: ffesti, james.antill, jonathan, maxamillion, pmatilai, rhughes, smparrish, tla
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-03 15:35:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Ville-Pekka Vainio 2011-02-02 22:34:19 UTC
Description of problem:
I tried to install the newest kernel in koji with gpk-install-local-file (clicking on the rpm file and letting Firefox open it with the default tool). I get the following error message:

Traceback (most recent call last):
  File "/usr/share/PackageKit/helpers/yum/yumBackend.py", line 2370, in _runYumTransaction
    rc, msgs = self.yumbase.buildTransaction()
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 926, in buildTransaction
    kern_pkgtup = misc.get_running_kernel_pkgtup(self.rpmdb.ts)
  File "/usr/lib/python2.7/site-packages/yum/misc.py", line 735, in get_running_kernel_pkgtup
    mi = ts.dbMatch('basenames', fn)
  File "/usr/lib/python2.7/site-packages/rpmUtils/transaction.py", line 59, in __getattr__
    return self.getMethod(attr)
  File "/usr/lib/python2.7/site-packages/rpmUtils/transaction.py", line 69, in getMethod
    return getattr(self.ts, method)
AttributeError: 'NoneType' object has no attribute 'dbMatch'

Version-Release number of selected component (if applicable):
PackageKit-0.6.12-2.fc14
yum-3.2.28-5.fc14

How reproducible:
Always

Steps to Reproduce:
1. Download http://kojipkgs.fedoraproject.org/packages/kernel/2.6.38/0.rc3.git0.1.fc15/x86_64/kernel-2.6.38-0.rc3.git0.1.fc15.x86_64.rpm
2. Try to install it with gpk-install-local-file

Comment 1 Richard Hughes 2011-02-03 10:19:23 UTC
Reassigning to yum guys for comment.

Comment 2 seth vidal 2011-02-03 15:35:59 UTC
the bug here is fixed in upstream yum back in november of last year.

there is not, yet, a patch for f14 but yum 3.2.29 from rawhide will definitely fix it.