Bug 514995

Summary: traceback running createrepo over nfs
Product: [Fedora] Fedora Reporter: Dennis Gilmore <dennis>
Component: createrepoAssignee: Luke Macken <lmacken>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 10CC: ffesti, james.antill, lmacken, maxamillion, pfrields, 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: 2009-08-27 16:01:56 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 Dennis Gilmore 2009-07-31 19:21:23 UTC
while running createrepo over nfs some glitch happened and i got the following traceback.

createrepo -d .
1836/7152 - perl-Net-CIDR-Lite-0.20-5.fc11.src.rpm                              Traceback (most recent call last):
  File "/usr/share/createrepo/genpkgmetadata.py", line 233, in <module>
    main(sys.argv[1:])
  File "/usr/share/createrepo/genpkgmetadata.py", line 207, in main
    mdgen.doPkgMetadata()
  File "/usr/lib/python2.5/site-packages/createrepo/__init__.py", line 364, in doPkgMetadata
    self.writeMetadataDocs(packages)
  File "/usr/lib/python2.5/site-packages/createrepo/__init__.py", line 527, in writeMetadataDocs
    self.primaryfile.write(po.xml_dump_primary_metadata())
  File "/usr/lib64/python2.5/gzip.py", line 205, in write
    self.fileobj.write( self.compress.compress(data) )
IOError: [Errno 5] Input/output error

Comment 1 seth vidal 2009-08-25 19:33:41 UTC
If you can make this happen at all:
http://skvidal.fedorapeople.org/misc/createrepo-io-error.patch

try this patch out and see if it catches the error better for you.

Comment 2 seth vidal 2009-08-25 19:48:23 UTC
Tested it here with an out-of-space IOError and it worked properly.