Bug 807591

Summary: RHBA-2011:1043 is failed to upgrade on RHEL5 x86
Product: Red Hat Enterprise Linux 5 Reporter: Anson <iamanson.j>
Component: rhnsdAssignee: Milan Zázrivec <mzazrivec>
Status: CLOSED CANTFIX QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 5.0   
Target Milestone: rc   
Target Release: 5.0   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
RHEL5 x86
Last Closed: 2012-03-28 11:37:11 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:

Description Anson 2012-03-28 09:27:43 UTC
Test environment: RHEL5 x86

Description of problem:
RHBA-2011:1043 is failed to upgrade on RHEL5 x86
The error message is following:
# rpm -q rhnsd
rhnsd-4.7.0-10.el5 
# rpm -Fvh rhnsd-4.7.0-10.el5.i386.rpm
Preparing...                ########################################### [100%]
   1:rhnsd                  ########################################### [100%]
error: %postun(rhnsd-4.6.1-1.el5.i386) scriptlet failed, exit status 6

Steps to Reproduce:
1.Download the rpm file "rhnsd-4.7.0-10.el5.i386.rpm" from rhn
2.use rpm commond to upgrade the rhnsd patches
3.check the commond return
  
Actual results:
The rpm file can not be installed successfully.

Expected results:
The rpm file can be installed successfully.

Additional info:
If I uninstall the rpm package which exists on the rhel5 x86 system, and use commond "rpm -ivh rhnsd-4.7.0-10.el5.i386.rpm" to install the rpm package, it can be installed successfully.

Comment 1 Milan Zázrivec 2012-03-28 11:37:11 UTC
The problematic %postun script has been fixed in bug #503719 although
the fix won't address that particular problem you are describing:

The %postun which is run in the situation you're describing comes from
the old rhnsd, which is to be upgraded -- we cannot change what's already
been released (see https://bugzilla.redhat.com/show_bug.cgi?id=503719#c14).

Thank you for your report, I'm gonna have to close this with CANTFIX.