Bug 500364

Summary: createrepo --checksum switch doesn't work correctly.
Product: [Fedora] Fedora Reporter: Gerd Hoffmann <kraxel>
Component: createrepoAssignee: Luke Macken <lmacken>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: adam, bill, fedora, james.antill, lemenkov, lmacken, paul, pfrields, prgarcial
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: createrepo-0.9.9-4.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-02 02:07:06 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:
Attachments:
Description Flags
Send checksum option to worker
none
Send checksum option to worker none

Description Gerd Hoffmann 2009-05-12 12:49:56 UTC
Description of problem:
"createrepo --checksum sha" doesn't work correctly.

Version-Release number of selected component (if applicable):
createrepo-0.9.7-6.fc11.noarch

How reproducible:
$ createrepo --checksum sha .
$ zgrep checksum repodata/*

Actual results:
repodata/primary.xml.gz:  <checksum type="sha256" ...

Expected results:
createrepo using sha instead of sha256.
Note: it actually does that for repomd.xml.

Additional info:
That bug makes it impossible to create repos rhel5 can handle.

Comment 1 seth vidal 2009-05-21 15:39:53 UTC
I believe createrepo and yum in f11-updates-testing/rawhide currently work fine with -s sha - please check it out and reopen if I'm incorrect.

Comment 2 Gerd Hoffmann 2009-05-25 08:03:04 UTC
Which version you are talking about?

Yum doesn't find anything newer than createrepo-0.9.7-6.fc11.noarch (rawhide/f11, updates-testing enabled).

Comment 3 Adam Goode 2009-05-25 18:34:53 UTC
You need to also upgrade yum from updates-testing. createrepo should maybe have a versioned requires on yum?

Comment 4 Gerd Hoffmann 2009-05-25 20:39:39 UTC
Installed all F11 updates-testing bits.
Still doesn't work for me.

[kraxel@xeni ~]$ rpm -qa "yum*" "*repo*"
yum-utils-1.1.22-1.fc11.noarch
yum-updatesd-0.9-2.fc11.noarch
createrepo-0.9.7-6.fc11.noarch
yum-presto-0.5.0-1.fc11.noarch
yum-3.2.22-4.fc11.noarch
yum-metadata-parser-1.1.2-12.fc11.x86_64

Comment 5 seth vidal 2009-05-26 11:47:10 UTC
yum-3.2.23 is in updates-testing for F11

get it from here:

http://kojipkgs.fedoraproject.org/packages/yum/3.2.23/3.fc11/noarch/yum-3.2.23-3.fc11.noarch.rpm

and the latest createrepo is also in updates-testing for F11

but while you wait for the mirrors to catch up you can get it from here:

http://kojipkgs.fedoraproject.org/packages/createrepo/0.9.7/7.fc11/noarch/createrepo-0.9.7-7.fc11.noarch.rpm

Comment 6 Gerd Hoffmann 2009-05-27 12:25:44 UTC
yum is in the repo meanwhile, createrepo not yet.
Fetched from koji, installed, tested, works now.  Thanks.

Comment 7 Fedora Update System 2009-05-27 15:32:41 UTC
createrepo-0.9.7-7.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/createrepo-0.9.7-7.fc11

Comment 8 Fedora Update System 2009-06-16 02:37:34 UTC
createrepo-0.9.7-7.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Peter Lemenkov 2011-04-12 08:21:17 UTC
I was hit by this again. I'm using createrepo-0.9.9-3.fc15.noarch and yum-3.2.29-4.fc15.noarch.

createrepo -s sha creates perfectly valid repomd.xml with checksum type="sha", but surprizingly it still uses sha256 in primary.xml.gz.

This prevents me from creating EL-5 repos using my F-15.

Comment 10 Remi Collet 2011-04-30 06:53:55 UTC
Same issue here

Downgrading to createrepo 0.9.8-5.fc14 is a temporary (but poor) workaround

Comment 11 Remi Collet 2011-04-30 07:26:34 UTC
Created attachment 495915 [details]
Send checksum option to worker

It seems that the --checksum option is not transmitted to the worker(s).

This trivial patch seems to fix this.
Need more testing.

Comment 12 Remi Collet 2011-04-30 08:02:48 UTC
Created attachment 495917 [details]
Send checksum option to worker

Patch with correct path to apply to source tree.

Comment 13 seth vidal 2011-05-02 14:42:41 UTC
This was patched in about 3 weeks ago. It hasn't made it into a release, yet.

http://createrepo.baseurl.org/gitweb?p=createrepo.git;a=commitdiff;h=7c375657274617649a69c72931a433cf1a6bc505

Comment 14 William H. Haller 2011-06-02 17:48:38 UTC
It would be great if this could get pushed out to a release. The bug apparently does not cause issues for Fedora repositories that expect the newer checksums - at least I haven't seen any locally, but when Fedora 15 is hosting repositories for O/S and yum combinations that still need -s sha, it causes failures.

Downgrading createrepo is a workaround, and patching source is another workaround, but a new release would be appreciated.

Comment 15 seth vidal 2011-07-28 21:31:38 UTC
*** Bug 718218 has been marked as a duplicate of this bug. ***

Comment 16 Fedora Update System 2011-07-29 20:07:19 UTC
createrepo-0.9.9-4.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/createrepo-0.9.9-4.fc15

Comment 17 Fedora Update System 2011-07-31 03:51:06 UTC
Package createrepo-0.9.9-4.fc15:
* should fix your issue,
* was pushed to the Fedora 15 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-4.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/createrepo-0.9.9-4.fc15
then log in and leave karma (feedback).

Comment 18 Fedora Update System 2011-08-02 02:06:43 UTC
createrepo-0.9.9-4.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.