Bug 455759 - xmlrpc call delta_packages checks wrong list for package removals
xmlrpc call delta_packages checks wrong list for package removals
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: yum-rhn-plugin (Show other bugs)
5.0
All Linux
high Severity high
: rc
: ---
Assigned To: Pradeep Kilambi
:
Depends On:
Blocks: 455760
  Show dependency treegraph
 
Reported: 2008-07-17 12:24 EDT by Martin Poole
Modified: 2010-10-22 22:54 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2009-01-20 16:54:50 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2009:0195 normal SHIPPED_LIVE yum-rhn-plugin bug fix and enhancement update 2009-01-20 11:06:01 EST

  None (edit)
Description Martin Poole 2008-07-17 12:24:43 EDT
Description of problem:

changes to packages on client machines are communicated to satellite via the
xmlrpc call "delta_packages"  The data supplied with the call is in two lists
"added" and "removed"  Unfortunately satellite checks for the lists "added" and
"deleted" so it never sees when packages are removed leaving zombie entries in
the WebGUI (and DB).

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

5.1

How reproducible:

Always.

Steps to Reproduce:
1. yum remove yum-updatesd
2.
3.
  
Actual results:

package is not removed from installed list on satellite.

Expected results:

package should be removed from list.

Additional info:

on the clients in /usr/lib/yum-plugins/rhnplugin.py in the make_package_delta
function it initialises as follows.
    delta = {}
    delta["added"] = []
    delta["removed"] = []

on the server in /usr/share/rhn/server/handlers/xmlrpc/registration.py in the
delta_packages handler it retrieves
        added_packages = packages.get('added')
        removed_packages = packages.get('deleted')
Comment 13 errata-xmlrpc 2009-01-20 16:54:50 EST
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-2009-0195.html

Note You need to log in before you can comment on or make changes to this bug.