Bug 1219607

Summary: TypeError: getattr(): attribute name must be string
Product: Red Hat Enterprise Linux 7 Reporter: Adam Miller <admiller>
Component: createrepoAssignee: Valentina Mukhamedzhanova <vmukhame>
Status: CLOSED DUPLICATE QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.1CC: james.antill, logan
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-02 11:54:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Adam Miller 2015-05-07 18:50:29 UTC
Description of problem:
When running Koji on RHEL7 and doing a regen-repo, the following error occurs:

Traceback (most recent call last):
  File "/usr/lib64/python2.7/pdb.py", line 1314, in main
    pdb._runscript(mainpyfile)
  File "/usr/lib64/python2.7/pdb.py", line 1233, in _runscript
    self.run(statement)
  File "/usr/lib64/python2.7/bdb.py", line 400, in run
    exec cmd in globals, locals
  File "<string>", line 1, in <module>
  File "/usr/libexec/kojid/mergerepos", line 24, in <module>
    import createrepo
  File "/usr/libexec/kojid/mergerepos", line 271, in main
    merge.write_metadata()
  File "/usr/libexec/kojid/mergerepos", line 251, in write_metadata
    mdgen.doPkgMetadata()
  File "/usr/lib/python2.7/site-packages/createrepo/__init__.py", line 404, in doPkgMetadata
    if '://' in pkg: # remote
  File "/usr/lib/python2.7/site-packages/yum/packages.py", line 384, in __getitem__
    return getattr(self, key)
TypeError: getattr(): attribute name must be string


This appears to be a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1058975 which was fixed upstream.

Version-Release number of selected component (if applicable):
createrepo-0.9.9-23.el7.noarch

How reproducible:
Always on non-rawhide tags in Fedora stage koji. (This however has been patched to use createrepo_c in order to resolve the issue since it does not have this bug)


Steps to Reproduce:
1. /usr/bin/createrepo -vd -o /var/tmp/koji/tasks/7018/537018/repo -i /mnt/koji/repos/f22-build/533764/i386/pkglist -g /mnt/koji/repos/f22-build/533764/groups/comps.xml --update --skip-stat /mnt/koji/repos/f22-build/533764/i386
2. /usr/libexec/kojid/mergerepos -a i386 -b /mnt/koji/repos/f22-build/533764/i386/blocklist -o /var/tmp/koji/tasks/7018/537018/repo -g /mnt/koji/repos/f22-build/533764/groups/comps.xml -r file:///var/tmp/koji/tasks/7018/537018/repo_533764_premerge/ -r http://kojipkgs.fedoraproject.org/repos/f22-build/latest/i386/ -r http://kojipkgs.fedoraproject.org/repos/f21-build/latest/i386/ -r http://kojipkgs.fedoraproject.org/repos/f20-build/latest/i386/
3.

Actual results:
python stack trace above

Comment 2 Logan Attwood 2015-06-17 00:45:45 UTC
Duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1091708

Comment 3 Karel Srot 2015-12-02 11:54:06 UTC

*** This bug has been marked as a duplicate of bug 1091708 ***