Bug 771703

Summary: Yum on el5 incompatible with default behavior of createrepo compressing .sqlite files as gz
Product: [Fedora] Fedora Reporter: John Matthews <jmatthew>
Component: createrepoAssignee: Luke Macken <lmacken>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: james.antill, lmacken, pfrields
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: createrepo-0.9.9-10.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-15 20:05:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 768536    

Description John Matthews 2012-01-04 17:15:43 UTC
Description of problem:
Yum on el5 is unable to open .sqlite files compressed with gz.

This bz requests that the default compression type of .sqlite files reverts to .bz2 to allow older clients to function.


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

How reproducible:
Always

Steps to Reproduce:
1. On f16: run "createrepo ."
2. Expose repo to a el5 client
3. Configure yum on el5 and attempt to access metadata
  
Actual results:
File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 1399, in
<lambda>
    repoXML = property(fget=lambda self: self._getRepoXML(),

  File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 1391, in
_getRepoXML
    self._loadRepoXML(text=self)

  File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 1381, in
_loadRepoXML
    return self._groupLoadRepoXML(text, ["primary"])

  File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 1366, in
_groupLoadRepoXML
    self._commonRetrieveDataMD(mdtypes)

  File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 1343, in
_commonRetrieveDataMD
    misc.bunzipFile(dl_local, local)

  File "/usr/lib/python2.4/site-packages/yum/misc.py", line 615, in bunzipFile
    data = s_fn.read(1024000)

EOFError: compressed file ended before the logical end-of-stream was detected

Expected results:
 no error

Additional info:

Comment 2 Fedora Update System 2012-01-05 18:22:08 UTC
createrepo-0.9.9-10.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/createrepo-0.9.9-10.fc16

Comment 3 John Matthews 2012-01-06 16:43:46 UTC
Tested package referenced in comment #2 with a el-5 client, issue has been addressed.

Comment 4 Fedora Update System 2012-01-07 23:09:54 UTC
Package createrepo-0.9.9-10.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing createrepo-0.9.9-10.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-0230/createrepo-0.9.9-10.fc16
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2012-01-15 20:05:28 UTC
createrepo-0.9.9-10.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.