Bug 791124

Summary: zlib MD5 sum mismatch
Product: Red Hat Enterprise Linux 5 Reporter: Siddharth <swaikar>
Component: rpmAssignee: Panu Matilainen <pmatilai>
Status: CLOSED NOTABUG QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.7CC: bmumbaik, russ+bugzilla-redhat, vgaikwad
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-05 10:43:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Siddharth 2012-02-16 09:24:25 UTC
Description of problem:
Configure system for downgrade by repackaging method
Try to downgrade zlib package


Version-Release number of selected component (if applicable):
Red Hat Enterprise Linux 5.7
zlib-1.2.3-3.x86-64

How reproducible:
when downgrading zlib

Steps to Reproduce:
1. Add "%_repackage_all_erasures 1" line into /etc/rpm/macros.up2date file.
2. Add "tsflags=repackage" option in /etc/yum.conf file.
3. Update zlib package  
     # yum update zlib
4. Perform rollback for zlib packages from /var/spool/repackage
     # rpm -Uvh --oldpackage zlib-1.2.3-3.*
5. Repackaging progress starts followed by error cpio:MD5 sum mismatch 
   
Actual results:
rpm throws error MD5 sum mismatch

Expected results:
zlib need to be update successfully

Additional info:

Comment 4 RHEL Program Management 2012-04-02 11:21:09 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux release.  Product Management has
requested further review of this request by Red Hat Engineering, for
potential inclusion in a Red Hat Enterprise Linux release for currently
deployed products.  This request is not yet committed for inclusion in
a release.

Comment 5 Tomas Kopecek 2012-04-05 10:23:25 UTC
I can't reproduce it with any of these files (zlib, perl). When I do it on 5.7 machine repackaged rpm is unsigned, so there is really different md5, but rpm install it anyway. Files on rhn are correct, so it seems to be rpm problem.

Comment 6 RHEL Program Management 2012-04-05 10:26:57 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux release.  Product Management has
requested further review of this request by Red Hat Engineering, for
potential inclusion in a Red Hat Enterprise Linux release for currently
deployed products.  This request is not yet committed for inclusion in
a release.

Comment 7 Panu Matilainen 2012-04-05 10:43:46 UTC
This is expected behavior for repackaged packages and not a bug, --rollback should be used to deal with them instead of direct -U or such. Even then, the rpm level repackage+rollback is unsupported on RHEL <= 5 and has been removed entirely in RHEL >= 6.