Bug 633270

Summary: yum cannot handle channel with sha384 checksum
Product: Red Hat Enterprise Linux 6 Reporter: Petr Sklenar <psklenar>
Component: yumAssignee: James Antill <james.antill>
Status: CLOSED ERRATA QA Contact: Karel Srot <ksrot>
Severity: medium Docs Contact:
Priority: high    
Version: 6.0CC: jhutar, ksrot, mmraka, tcapek
Target Milestone: rcKeywords: RHELNAK
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: yum-3.2.29-1.el6 Doc Type: Bug Fix
Doc Text:
When yum tried to retrieve repository data from a channel with SHA-384 checksum, yum terminated. With this update, support for SHA-384 checksums has been added and yum can access such channels properly.
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-19 13:33:54 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:
Bug Depends On:    
Bug Blocks: 580448    

Description Petr Sklenar 2010-09-13 13:07:56 UTC
Description of problem:
yum cannot handle channel with sha384 checksum

Version-Release number of selected component (if applicable):
yum-3.2.27-14.el6.noarch
yum-rhn-plugin-0.9.1-5.el6.noarch

How reproducible:
always

Steps to Reproduce:
1. create channel with sha384 checksum via satellite
2. connect client
3. client: 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 works

Additional info:

Comment 1 RHEL Program Management 2010-09-13 13:18:00 UTC
Thank you for your bug report. This issue was evaluated for inclusion
in the current release of Red Hat Enterprise Linux. Unfortunately, we
are unable to address this request in the current release. Because we
are in the final stage of Red Hat Enterprise Linux 6 development, only
significant, release-blocking issues involving serious regressions and
data corruption can be considered.

If you believe this issue meets the release blocking criteria as
defined and communicated to you by your Red Hat Support representative,
please ask your representative to file this issue as a blocker for the
current release. Otherwise, ask that it be evaluated for inclusion in
the next minor release of Red Hat Enterprise Linux.

Comment 2 James Antill 2010-09-13 14:39:59 UTC
Indeed, we just used:

_available_checksums = set(['md5', 'sha1', 'sha256', 'sha512'])

...I can add sha384 to the available_checksums, assuming it's available in all places that sha512 is.

Comment 3 James Antill 2010-09-20 20:13:12 UTC
This is fixed upstream, so we'll get it in the rebase for 6.1.

Comment 8 Tomas Capek 2011-05-17 12:05:28 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
When yum tried to retrieve repository data from a channel with SHA-384 checksum, yum terminated. With this update, support for SHA-384 checksums has been added and yum can access such channels properly.

Comment 9 errata-xmlrpc 2011-05-19 13:33:54 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0602.html