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

Bug 538213

Summary: profile.comparePackages() doesn't return correct set
Product: Red Hat Satellite 5 Reporter: Justin Sherrill <jsherril>
Component: APIAssignee: Justin Sherrill <jsherril>
Status: CLOSED ERRATA QA Contact: Garik Khachikyan <gkhachik>
Severity: medium Docs Contact:
Priority: low    
Version: 530CC: cperry, gkhachik, mkoci
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-01-08 10:03:08 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:
Bug Depends On:    
Bug Blocks: 518256    

Description Justin Sherrill 2009-11-17 22:42:50 UTC
Due to the fix in this bug: https://bugzilla.redhat.com/show_bug.cgi?id=527724

the profile.comparPackages() api call doesn't return the correct items.  Create two profiles with the following package profiles:

ProfileA:
Package1
Package2

ProfileB:
Package2
Package3


Then call profile.comparePackages(key, "profilea", "profileb")

You would expect each list to only have one package in it, but each list includes two.

This was uncovered by a unit test.

Fixed master: 8bbff5f02a384fc63e6d052e19d72901ad507688

Comment 2 Garik Khachikyan 2009-12-21 17:23:23 UTC
Actually the method is: kickstart.profile.comparePackages and compares packages of two kickstart profiles.

Comment 5 Garik Khachikyan 2010-01-02 19:56:58 UTC
# VERIFIED

Following version of packages fixed the issue described in bug description:
spacewalk-java-0.5.44-62.el[4,5]sat
spacewalk-java-lib-0.5.44-62.el[4,5]sat
spacewalk-java-config-0.5.44-62.el[4,5]sat
spacewalk-taskomatic-0.5.44-62.el[4,5]sat

Now the method call returns only the missed packages in both kickstart profile's software package list.

Comment 7 errata-xmlrpc 2010-01-08 10:03:08 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2010-0021.html