Bug 1302198
Summary: | remote package upgrade saying newer package is installed, but it is not | ||
---|---|---|---|
Product: | [Community] Spacewalk | Reporter: | Jan Hutař <jhutar> |
Component: | Clients | Assignee: | Jiří Dostál <jdostal> |
Status: | CLOSED DUPLICATE | QA Contact: | Red Hat Satellite QA List <satqe-list> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 2.4 | CC: | jdostal, tony |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-02-19 11:36:44 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
Jan Hutař
2016-01-27 06:36:48 UTC
With this debugging code added, this is the output: --- usr/share/rhn/actions/packages.py.ORIG 2016-01-26 22:01:10.002192351 +0100 +++ usr/share/rhn/actions/packages.py 2016-01-26 22:04:56.623616475 +0100 @@ -344,6 +344,10 @@ found = False for pkg in pkgs: + current = pkg.returnEVR() + print "Current:", current.epoch, current.version, current.release + print "Candidate:", evr.epoch, evr.version, evr.release + print "Comparasion:", current.compare(evr) if pkg.returnEVR().compare(evr) == 0: log.log_debug('Package %s already installed' \ % _yum_package_tup(package)) this was shown by rhn_check: [...] D: Called update[['openssl', '0.9.8e', '37.el5_11', '', 'i686']] Current: 0 0.9.8e 36.0.1.el5_11 Candidate: None 0.9.8e 37.el5_11 Comparasion: 1 D: More recent version of package openssl-0:0.9.8e-37.el5_11.i686 is already installed [...] And this is a python console session possibly touching the issue: # python Python 2.4.3 (#1, Jan 9 2013, 06:49:54) [GCC 4.1.2 20080704 (Red Hat 4.1.2-54)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import yum.packages >>> current = yum.packages.PackageEVR(None, '0.9.8e', '36.0.1.el5_11') >>> new = yum.packages.PackageEVR(None, '0.9.8e', '37.el5_11') >>> current.compare(new) -1 >>> new = yum.packages.PackageEVR('', '0.9.8e', '37.el5_11') >>> current.compare(new) 1 >>> (sorry for attempt with epoch 0 missing) Also on mine reproducer I do not see updates showing on webUI for that system. With both OLD and NEW openssl versions installed I'm getting: # rpm -q openssl --qf "%{EPOCH}\n" (none) I think this may be a duplicate with bug 1292288 Marking this one as duplicate of 1292288. Please check 1292288 for update. *** This bug has been marked as a duplicate of bug 1292288 *** This BZ closed some time during 2.5, 2.6 or 2.7. Adding to 2.7 tracking bug. |