Bug 498273
| Summary: | Package List never gets refreshed | ||
|---|---|---|---|
| Product: | Red Hat Satellite 5 | Reporter: | Mike McCune <mmccune> |
| Component: | WebUI | Assignee: | Shannon Hughes <shughes> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Sayli Karmarkar <skarmark> |
| Severity: | urgent | Docs Contact: | |
| Priority: | urgent | ||
| Version: | 530 | CC: | bperkins, cperry, mykleb, pkilambi, ssalevan |
| Target Milestone: | --- | Keywords: | Reopened |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | sat530 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 496655 | Environment: | |
| Last Closed: | 2009-09-10 20:36:10 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: | 456985 | ||
|
Description
Mike McCune
2009-04-29 17:26:24 UTC
Feel free to rope-in whoever you need to get this fixed soon along with the Spacewalk bug. both prad and I tested this on rhel5 and its working on satellite 530. Were you using channels created from satellite-sync? If so you are not thinking like a Spacewalk user :) The bug comes from Spacewalk so it is important to create channels with the GUI and rhnpush rhel5-u1 and rhel5-u2 into separate channels. I set this up on fjs-0-03.rhndev.redhat.com with 2 custom channels channels: mmccune-rhel5-u1: https://fjs-0-03.rhndev.redhat.com/rhn/channels/ChannelDetail.do?cid=141 mmccune-rhel5-u2 https://fjs-0-03.rhndev.redhat.com/rhn/channels/ChannelDetail.do?cid=142 I kickstarted fjs-0-16 to rhel5-i386-u1 and registered it to my u1 channel: rhnreg_ks --force --serverUrl=http://fjs-0-03.rhndev.redhat.com/XMLRPC --activationkey=1-mmccune-rhel5-u1 and the system indicates there are no new packages for it which is expected because it is at the same level as the channel. I then re-registered the system with a U2 key: rhnreg_ks --force --serverUrl=http://fjs-0-03.rhndev.redhat.com/XMLRPC --activationkey=1-mmccune-rhel5-u2 The GUI indicates: Packages: 147 although yum update indicates 299 but I'm guessing that is some discrepancy between the out of date packages and their deps. on the system details page. I ran: 'yum update' from the client and let it finish upgrading the u1 -> u2: Installed: dhcpv6-client.i386 0:1.0.10-4.el5 kernel.i686 0:2.6.18-92.el5 libhugetlbfs.i386 0:1.2-5.el5 Dependency Installed: device-mapper-event.i386 0:1.02.24-1.el5 gamin.i386 0:0.1.7-8.el5 gamin-python.i386 0:0.1.7-8.el5 hicolor-icon-theme.noarch 0:0.9-2.1 python-iniparse.noarch 0:0.2.3-4.el5 [...snip...] Replaced: dhcpv6_client.i386 0:0.10-33.el5 libhugetlbfs-lib.i386 0:1.0.1-1.el5 Complete! [root@fjs-0-16 ~]# GUI still shows: https://fjs-0-03.rhndev.redhat.com/rhn/systems/details/Overview.do?sid=1000010060 Packages: 147 Upgrade page still shows 147 packages available: https://fjs-0-03.rhndev.redhat.com/rhn/systems/details/packages/UpgradableList.do?sid=1000010060 bad index reference in backend code,
--- a/backend/server/rhnServer/server_packages.py
+++ b/backend/server/rhnServer/server_packages.py
@@ -317,8 +317,8 @@ def update_errata_cache(server_id):
# Delete unneeded packages
- non_null_errata = filter(lambda x: x[1] is not None, deleted_packages)
- null_errata = filter(lambda x: x[1] is None, deleted_packages)
+ non_null_errata = filter(lambda x: x[0] is not None, deleted_packages)
+ null_errata = filter(lambda x: x[0] is None, deleted_packages)
Thanks! This seems to have fixed it for us. mass move to onqa verified. RELEASE_PENDING from 7/24 build. 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/RHEA-2009-1434.html |