Bug 1138709

Summary: The list of packages that you can install on a system contains duplicates
Product: Red Hat Satellite 5 Reporter: Stephen Herr <sherr>
Component: ServerAssignee: Stephen Herr <sherr>
Status: CLOSED CURRENTRELEASE QA Contact: Tomas Lestach <tlestach>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: pstudeni, satqe-list, tlestach
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: spacewalk-java-2.3.8-11-sat Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1136526 Environment:
Last Closed: 2015-01-13 10:18:43 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: 1127215    

Description Stephen Herr 2014-09-05 13:32:39 UTC
+++ This bug was initially created as a clone of Bug #1136526 +++

Description of problem:
Systems -> <system> -> Software -> Packages -> Install page lists many duplicate entries for packages. A duplicate entry is created for every version of the package, regardless of if that version is available in channels this system is subscribed to or not. So you can have only 1 version available to this system but 19 other versions in other channels, and there will be 20 entries in the list to the same 1 package that is actually available.

Version-Release number of selected component (if applicable):
spacewalk-java-2.2.52-1 and higher

How reproducible:
always

Steps to Reproduce:
1. Go to page
2. See many duplicate packages 

Actual results:
See many duplicate packages 

Expected results:
Entries should be unique and all entries should be actually available to server.

Additional info:
It was broken in commit f5e644f6d0f5c194081073fd6a850918f393dea9

--- Additional comment from Stephen Herr on 2014-09-02 15:43:54 EDT ---

Committing to Spacewalk master:
b9a0468e8e51b0b99ac84192ad8ba5daca8895eb

Comment 3 Tomas Lestach 2015-01-08 13:40:58 UTC
Taking for verification ...

Comment 4 Tomas Lestach 2015-01-08 16:05:24 UTC
I took a system with zsh package *not installed*, but with zsh package available in its channels. I created an extra channel with 6 different zsh versions (both older and newer than the available package).

/rhn/systems/details/packages/InstallPackages.do?sid=<sid> correctly offers only the one available zsh package to be installed.

Note1: I see zlib-devel-1.2.3-29.el6 package offered to be installed twice, but there're two different architectures of the package available - what is correct.

Note2: Issue not reproducible on Sat5.6 (even if you try really hard), as it was broken in Spacewalk 2.2 only. ;-)


VERIFIED with Satellite-5.7.0-RHEL6-re20141218.2 (spacewalk-java-2.3.8-93.el6sat.noarch)

Comment 5 Pavel Studeník 2015-01-09 10:10:50 UTC
Reverified with spacewalk-java-2.3.8-93.el6sat.noarch 

Steps were same as Comment 4

Comment 6 Clifford Perry 2015-01-13 10:18:43 UTC
With the release of Red Hat Satellite 5.7 on January 12th 2015 this bug is
being moved to a Closed Current Release state. 

The Satellite 5.7 GA Errata:
 - https://rhn.redhat.com/errata/RHSA-2015-0033.html 

Satellite 5.7 Release Notes:
 -
https://access.redhat.com/documentation/en-US/Red_Hat_Satellite/5.7/html-single/Release_Notes/index.html

Satellite Customer Portal Blog announcement for release:
 - https://access.redhat.com/blogs/1169563/posts/1315743 

Cliff