RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1219607 - TypeError: getattr(): attribute name must be string
Summary: TypeError: getattr(): attribute name must be string
Keywords:
Status: CLOSED DUPLICATE of bug 1091708
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: createrepo
Version: 7.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Valentina Mukhamedzhanova
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-07 18:50 UTC by Adam Miller
Modified: 2015-12-02 11:54 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-12-02 11:54:06 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.