Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1080569

Summary: createrepo doesn't work at all: ValueError: <package> has no attribute suggests
Product: [Fedora] Fedora Reporter: Richard W.M. Jones <rjones>
Component: yumAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: admiller, james.antill, lmacken, packaging-team-maint
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: 2014-03-25 18:44:09 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:
Bug Depends On:    
Bug Blocks: 910269    

Description Richard W.M. Jones 2014-03-25 17:16:12 UTC
Description of problem:

createrepo is broken in Rawhide:

$ createrepo .
Worker 0: Traceback (most recent call last):
Worker 0:   File "/usr/share/createrepo/worker.py", line 116, in <module>
Worker 0:     main(sys.argv[1:])
Worker 0:   File "/usr/share/createrepo/worker.py", line 105, in main
Worker 0:     output(pkg.xml_dump_primary_metadata(),
Worker 0:   File "/usr/lib/python2.7/site-packages/yum/packages.py", line 1313, in xml_dump_primary_metadata
Worker 0:     msg += self._dump_format_items()
Worker 0:   File "/usr/lib/python2.7/site-packages/yum/packages.py", line 1186, in _dump_format_items
Worker 0:     msg += self._dump_pco('suggests')
Worker 0:   File "/usr/lib/python2.7/site-packages/yum/packages.py", line 1200, in _dump_pco
Worker 0:     mylist = getattr(self, pcotype)
Worker 0:   File "/usr/lib/python2.7/site-packages/yum/packages.py", line 1519, in __getattr__
Worker 0:     raise ValueError, "%s has no attribute %s" % (self, thing)
Worker 0: ValueError: SDL2-2.0.3-1.fc21.i686 has no attribute suggests
Worker 1: Traceback (most recent call last):
Worker 1:   File "/usr/share/createrepo/worker.py", line 116, in <module>
Worker 1:     main(sys.argv[1:])
Worker 1:   File "/usr/share/createrepo/worker.py", line 105, in main
Worker 1:     output(pkg.xml_dump_primary_metadata(),
Worker 1:   File "/usr/lib/python2.7/site-packages/yum/packages.py", line 1313, in xml_dump_primary_metadata
Worker 1:     msg += self._dump_format_items()
Worker 1:   File "/usr/lib/python2.7/site-packages/yum/packages.py", line 1186, in _dump_format_items
Worker 1:     msg += self._dump_pco('suggests')
Worker 1:   File "/usr/lib/python2.7/site-packages/yum/packages.py", line 1200, in _dump_pco
Worker 1:     mylist = getattr(self, pcotype)
Worker 1:   File "/usr/lib/python2.7/site-packages/yum/packages.py", line 1519, in __getattr__
Worker 1:     raise ValueError, "%s has no attribute %s" % (self, thing)
Worker 1: ValueError: SLOF-0.1.git20140304-1.fc21.noarch has no attribute suggests
Worker 2: Traceback (most recent call last):
Worker 2:   File "/usr/share/createrepo/worker.py", line 116, in <module>
Worker 2:     main(sys.argv[1:])
Worker 2:   File "/usr/share/createrepo/worker.py", line 105, in main
Worker 2:     output(pkg.xml_dump_primary_metadata(),
Worker 2:   File "/usr/lib/python2.7/site-packages/yum/packages.py", line 1313, in xml_dump_primary_metadata
Worker 2:     msg += self._dump_format_items()
Worker 2:   File "/usr/lib/python2.7/site-packages/yum/packages.py", line 1186, in _dump_format_items
Worker 2:     msg += self._dump_pco('suggests')
Worker 2:   File "/usr/lib/python2.7/site-packages/yum/packages.py", line 1200, in _dump_pco
Worker 2:     mylist = getattr(self, pcotype)
Worker 2:   File "/usr/lib/python2.7/site-packages/yum/packages.py", line 1519, in __getattr__
Worker 2:     raise ValueError, "%s has no attribute %s" % (self, thing)
Worker 2: ValueError: acl-2.2.52-4.fc21.i686 has no attribute suggests
Worker 3: Traceback (most recent call last):
Worker 3:   File "/usr/share/createrepo/worker.py", line 116, in <module>
Worker 3:     main(sys.argv[1:])
Worker 3:   File "/usr/share/createrepo/worker.py", line 105, in main
Worker 3:     output(pkg.xml_dump_primary_metadata(),
Worker 3:   File "/usr/lib/python2.7/site-packages/yum/packages.py", line 1313, in xml_dump_primary_metadata
Worker 3:     msg += self._dump_format_items()
Worker 3:   File "/usr/lib/python2.7/site-packages/yum/packages.py", line 1186, in _dump_format_items
Worker 3:     msg += self._dump_pco('suggests')
Worker 3:   File "/usr/lib/python2.7/site-packages/yum/packages.py", line 1200, in _dump_pco
Worker 3:     mylist = getattr(self, pcotype)
Worker 3:   File "/usr/lib/python2.7/site-packages/yum/packages.py", line 1519, in __getattr__
Worker 3:     raise ValueError, "%s has no attribute %s" % (self, thing)
Worker 3: ValueError: alsa-lib-1.0.27.2-2.fc21.i686 has no attribute suggests
Worker 4: Traceback (most recent call last):
Worker 4:   File "/usr/share/createrepo/worker.py", line 116, in <module>
Worker 4:     main(sys.argv[1:])
Worker 4:   File "/usr/share/createrepo/worker.py", line 105, in main
Worker 4:     output(pkg.xml_dump_primary_metadata(),
Worker 4:   File "/usr/lib/python2.7/site-packages/yum/packages.py", line 1313, in xml_dump_primary_metadata
Worker 4:     msg += self._dump_format_items()
Worker 4:   File "/usr/lib/python2.7/site-packages/yum/packages.py", line 1186, in _dump_format_items
Worker 4:     msg += self._dump_pco('suggests')
Worker 4:   File "/usr/lib/python2.7/site-packages/yum/packages.py", line 1200, in _dump_pco
Worker 4:     mylist = getattr(self, pcotype)
Worker 4:   File "/usr/lib/python2.7/site-packages/yum/packages.py", line 1519, in __getattr__
Worker 4:     raise ValueError, "%s has no attribute %s" % (self, thing)
Worker 4: ValueError: at-spi2-atk-2.12.0-1.fc21.i686 has no attribute suggests
Worker exited with non-zero value: 1. Fatal.
Worker exited with non-zero value: 1. Fatal.
Spawning worker 0 with 125 pkgs
Spawning worker 1 with 125 pkgs
Spawning worker 2 with 125 pkgs
Spawning worker 3 with 125 pkgs
Spawning worker 4 with 125 pkgs

Version-Release number of selected component (if applicable):

createrepo-0.10.3-2.fc21.noarch

Comment 1 Richard W.M. Jones 2014-03-25 17:18:02 UTC
yum version is 3.4.3-143.fc21.noarch.

Comment 2 James Antill 2014-03-25 17:22:20 UTC
 This should fix it, built in rawhide but won't hit until tomorrow:

http://koji.fedoraproject.org/koji/taskinfo?taskID=6671971

Comment 3 James Antill 2014-03-25 17:53:06 UTC
 Ok, sorry that was a different bug ... this should fix the createrepo problem:

http://koji.fedoraproject.org/koji/taskinfo?taskID=6672622

Comment 4 Richard W.M. Jones 2014-03-25 18:44:09 UTC
Looks like -144 is working now, thanks.