Bug 633263 - Error performing checksum with sha384 channel
Summary: Error performing checksum with sha384 channel
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Server
Version: 540
Hardware: All
OS: Linux
high
medium
Target Milestone: ---
Assignee: Michael Mráka
QA Contact: Petr Sklenar
URL:
Whiteboard:
Depends On:
Blocks: sat540-blockers
TreeView+ depends on / blocked
 
Reported: 2010-09-13 13:00 UTC by Petr Sklenar
Modified: 2010-10-28 14:50 UTC (History)
3 users (show)

Fixed In Version: spacewalk-java-1.2.39-4
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-10-28 14:50:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Petr Sklenar 2010-09-13 13:00:13 UTC
Description of problem:
Error performing checksum with channel with sha384 checksums 

Version-Release number of selected component (if applicable):
Satellite-5.4.0-RHEL5-re20100910.2

How reproducible:
always

Steps to Reproduce:
1. create sha384 channel
2. connect client
3. yum list available
  
Actual results:
[]# yum clean all
Loaded plugins: rhnplugin
Cleaning up Everything
[]# yum repolist
Loaded plugins: rhnplugin
child-channel-sha1                                                                                    |  871 B     00:00     
child-channel-sha1/primary                                                                            |  624 B     00:00     
child-channel-sha1                                                                                                       1/1
child-channel-sha256                                                                                  | 1.0 kB     00:00     
child-channel-sha256/primary                                                                          |  627 B     00:00     
child-channel-sha256                                                                                                     1/1
child-channel-sha384                                                                                  | 1.2 kB     00:00     
child-channel-sha384/primary                                                                          |  695 B     00:00     
child-channel-sha384/primary                                                                          |  695 B     00:00     
child-channel-sha384/primary                                                                          |  695 B     00:00     
child-channel-sha384/primary                                                                          |  695 B     00:00     
repo id                                                  repo name                                                     status
child-channel-sha1                                       Name child-channel-sha1                                       1
child-channel-sha256                                     Name child-channel-sha256                                     1
child-channel-sha384                                     Name child-channel-sha384                                     0
child-channel-sha512                                     Name child-channel-sha512                                     0
parent-channel                                           Name parent-channel                                           0
repolist: 2
[]# yum list available
Loaded plugins: rhnplugin
child-channel-sha384/primary                                                                          |  695 B     00:00     
child-channel-sha384/primary                                                                          |  695 B     00:00     
Error: failed to retrieve repodata/primary.xml.gz from child-channel-sha384
error was [Errno -3] Error performing checksum


Expected results:
sha384 checksum works or its removed form sat540

Additional info:

# cat /var/cache/rhn/repodata/child-channel-sha384/repomd.xml 
<?xml version="1.0" encoding="UTF-8"?>
<repomd xmlns="http://linux.duke.edu/metadata/repo"><data type="primary"><location href="repodata/primary.xml.gz"/><checksum type="sha384">218d49900ef1e7c92dc254e0698714d8116a632471b5f0d92c1afc6511f628559c69ae0b6d3b74d11d113104133e4d0c</checksum><open-checksum type="sha384">baf4497c5f2624bfc90f36a220c0a971a0792e43d3260de493a64240f8e0c86d530de71411affe3e49657b0bd07fd2b6</open-checksum><timestamp>1284370210</timestamp></data><data type="filelists"><location href="repodata/filelists.xml.gz"/><checksum type="sha384">ae44fd7ba9e760bca3f565b6b994865fdfc62850b7a58d13bf0df452f9284af84f85928588fe8cb66e520f6ae0c60ee8</checksum><open-checksum type="sha384">3ca5f694b8aa9b4fab77a772a300b2e7a00e993a8b3705cabbf60b295158c347f14f44e09443387b8108759f70323526</open-checksum><timestamp>1284370210</timestamp></data><data type="other"><location href="repodata/other.xml.gz"/><checksum type="sha384">a8f77cf0a04d88b6a75c5e0ebf7330dbf9f8cd2217d909e5cf1786e3610b52f629e4de7904b892ec9a3eb48a1cf5f6e9</checksum><open-checksum type="sha384">26993aa9036360381e8016c75dcf004a8b46fc5fa3b4024259545e6d2ca9c773ea3bd6440841485d605f8bf1f5d68b3d</open-checksum><timestamp>1284370210</timestamp></data></repomd>


# sha384sum /var/cache/rhn/repodata/child-channel-sha384/repomd.xml
fc31e04510cf9a00ebe04e7cc37b89ab9d181d467f1b9130194a7d7fe09650cc54624f482a7575217190f60c47d41627  /var/cache/rhn/repodata/child-channel-sha384/repomd.xml

# sha384sum /var/cache/rhn/repodata/child-channel-sha384/
filelists.xml.gz  other.xml.gz      primary.xml.gz    repomd.xml        

# sha384sum /var/cache/rhn/repodata/child-channel-sha384/primary.xml.gz 
218d49900ef1e7c92dc254e0698714d8116a632471b5f0d92c1afc6511f628559c69ae0b6d3b74d11d113104133e4d0c  /var/cache/rhn/repodata/child-channel-sha384/primary.xml.gz

# sha384sum /var/cache/rhn/repodata/child-channel-sha384/filelists.xml.gz 
ae44fd7ba9e760bca3f565b6b994865fdfc62850b7a58d13bf0df452f9284af84f85928588fe8cb66e520f6ae0c60ee8  /var/cache/rhn/repodata/child-channel-sha384/filelists.xml.gz

# sha384sum /var/cache/rhn/repodata/child-channel-sha384/other.xml.gz 
a8f77cf0a04d88b6a75c5e0ebf7330dbf9f8cd2217d909e5cf1786e3610b52f629e4de7904b892ec9a3eb48a1cf5f6e9  /var/cache/rhn/repodata/child-channel-sha384/other.xml.gz

Comment 1 Clifford Perry 2010-09-13 14:24:28 UTC
Michael plans to remove sha284 from UI selection

Comment 2 Michael Mráka 2010-09-14 07:57:23 UTC
Fixed by
commit eda5f57c1fb5ddbda61a949028c1190d97e4689a
    633263 - removed sha384 from list of checksums

Comment 3 Michael Mráka 2010-09-14 09:05:17 UTC
The commit has been reverted and the fix will land in satellite only in spacewalk-java (not schema).

Comment 4 Michael Mráka 2010-09-16 06:49:13 UTC
FIxed in satellite (only) by
commit fa0d25b71ec877c45d8ff181b598d66c2707762f
    633263 - removed sha384 from list of checksums for yum repo

Comment 6 Petr Sklenar 2010-09-23 09:03:28 UTC
Satellite-5.4.0-RHEL5-re20100921.0

there is sha1, sha256 and sha512 checksum, all works as expected.

Comment 7 Miroslav Suchý 2010-10-20 14:47:35 UTC
no sha384 present.
verified in stage.

Comment 8 Clifford Perry 2010-10-28 14:45:33 UTC
The 5.4.0 RHN Satellite and RHN Proxy release has occurred. This issue has been resolved with this release. 


RHEA-2010:0801 - RHN Satellite Server 5.4.0 Upgrade
https://rhn.redhat.com/rhn/errata/details/Details.do?eid=10332

RHEA-2010:0803 - RHN Tools enhancement update
https://rhn.redhat.com/rhn/errata/details/Details.do?eid=10333

RHEA-2010:0802 - RHN Proxy Server 5.4.0 bug fix update
https://rhn.redhat.com/rhn/errata/details/Details.do?eid=10334

RHEA-2010:0800 - RHN Satellite Server 5.4.0
https://rhn.redhat.com/rhn/errata/details/Details.do?eid=10335

Docs are available:

http://docs.redhat.com/docs/en-US/Red_Hat_Network_Satellite/index.html 

Regards,
Clifford


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