Bug 489901 - comparing to the profile shows too much differences
Summary: comparing to the profile shows too much differences
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: rhn-client-tools
Version: 5.3
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Milan Zázrivec
QA Contact: Jiri Kastner
URL:
Whiteboard: us=80466
Depends On:
Blocks: 543942
TreeView+ depends on / blocked
 
Reported: 2009-03-12 14:12 UTC by Jan Hutař
Modified: 2013-01-10 10:31 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 543942 (view as bug list)
Environment:
Last Closed: 2010-03-30 08:44:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
diff on RHN + `rpm -q acl aide at` on client (157.19 KB, image/png)
2009-03-12 14:12 UTC, Jan Hutař
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2010:0270 0 normal SHIPPED_LIVE rhn-client-tools bug fix and enhancement update 2010-03-29 15:02:35 UTC

Description Jan Hutař 2009-03-12 14:12:26 UTC
Created attachment 334930 [details]
diff on RHN + `rpm -q acl aide at` on client

Description of problem:
I have created a profile in the webqa, removed and added few packages and then compared system state to the stored profile and I see too many rows in the diff.
I would expect count of the rows in the resulting diff == number of (un)installed packages - is that right?
https://rhn.webqa.redhat.com/rhn/systems/details/packages/profiles/CompareProfiles.do?sid=1014485848&prid=8441 user: jhutarqa, pass: redhatqa
(I have removed pdksh,ash,acl and installed aide,ksh - but in the linked diff I see probably all packages - e.g. autofs, it says it is only in the profile, but I see it installed as well - I have not touched it)


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


How reproducible:
2 of 2 (x86_64 and ia64 systems with RHEL4-U6 recently updated to RHEL4-U7)


Steps to Reproduce:
1. Create profile
2. remove pdksh,ash,acl and install aide,ksh
3. up2date -p
4. compare stored profile with current system state


Actual results:
See attached screenshot


Expected results:
pdksh,ash,acl - only in the profile
aide,ksh - only on the system
no other changes in the diff


Additional info:
May be related to the bug 457423 and bug 458166

Comment 1 James Bowes 2009-04-17 15:22:54 UTC
This appears to be caused by the client side, and how it sends up a package profile during registration.

During registration the client does rpmUtils.getInstalledPackageList(getInfo=1)
All other times the client does rpmUtils.getInstalledPackageList(getArch=1)
getArch checks that the package has an arch field and if not, ignores it (for gpg keys, for instance).
getInfo checks that the package has both an arch and a cookie field, and if not, ignores it.

A lot of packages don't have a cookie, so they are ignored during registration, but added on further profile syncs.

afaik the cookie field is never used server side, so it should be safe to just have the client use getArch vs getInfo.

Comment 5 Milan Zázrivec 2009-12-03 14:56:25 UTC
This has been mistakenly assigned to RHEL-5 client component, although the
initial comment says up2date (RHEL-4). Clone of the problem for RHEL-4 is
available at bug #543942

Comment 6 Milan Zázrivec 2009-12-07 13:07:23 UTC
Following the advice from comment #1, using getArch=1 during client
registration.

spacewalk.git master: 77c7e858bebe5812f8565ef1fe995f1ab4c473fc

Comment 7 Milan Zázrivec 2009-12-07 13:22:41 UTC
Sending        src/bin/rhnreg_ks.py
Sending        src/up2date_client/rhnregGui.py
Sending        src/up2date_client/tui.py
Transmitting file data ...
Committed revision 189258.

Comment 13 errata-xmlrpc 2010-03-30 08:44:11 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-0270.html


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