Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1292288

Summary: Spacewalk 2.4 breaks epochless updates in CentOS 5 from installing
Product: [Community] Spacewalk Reporter: Kevin Stange <kevin>
Component: ClientsAssignee: Jiří Dostál <jdostal>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 2.4CC: jdostal, jhutar, mwalters12, tkasparek, tlestach, tony
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: yum-rhn-plugin-2.5.4-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-16 08:06:06 UTC Type: Bug
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: 1484117    

Description Kevin Stange 2015-12-16 22:24:20 UTC
Description of problem:

Since upgrading to Spacewalk 2.4, I can no longer install updates to packages with no defined epoch in CentOS 5.  This appears to be due to the fix for bug 1172288 in commit 83330778.  When I revert this change in packages.py, package updates work again for CentOS 5.

pkg.returnEVR().compare(evr) appears to return > 0 when comparing an epoch of 0 (installed package) with None (target package).

Version-Release number of selected component (if applicable):

yum-rhn-plugin-2.4.6-1.el5

How reproducible:

100%

Steps to Reproduce:
1. Attempt to schedule an update to a package with no epoch on a CentOS 5 system
2. Run rhn_check

Actual results:

The task completes, but no work is done, because "More recent version of package <name> is already installed."

Expected results:

The package should be updated.

Comment 1 Jiří Dostál 2016-02-19 11:36:44 UTC
*** Bug 1302198 has been marked as a duplicate of this bug. ***

Comment 2 Jiří Dostál 2016-02-19 11:41:07 UTC
spacewalk.git 2dfce30827cc3bde997249dfa318f8d1d0e8f83b

Comment 3 Tomáš Kašpárek 2016-06-16 08:06:06 UTC
Spacewalk 2.5 was released.

Comment 4 Jiří Dostál 2016-11-10 17:51:52 UTC
*** Bug 1248713 has been marked as a duplicate of this bug. ***

Comment 5 Eric Herget 2017-09-28 18:09:00 UTC
This BZ closed some time during 2.5, 2.6 or 2.7.  Adding to 2.7 tracking bug.