Red Hat Bugzilla – Bug 585965
Incorrect Errata calculation/Update for multi-lib systems
Last modified: 2011-01-28 10:04:03 EST
Description of problem:
The option to upgrade existing packages from satellite web interface i.e System Profile -> Software -> Packages -> Upgrade this doesn't work as expected for x86_64 systems.
If i386 and x86_64 package is installed on the system with one being latest and other slightly old - still the older one wouldn't be listed as available for upgrade under the system profile.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. WebUI -> Systems
2. Select a x86_64 system
3. Software -> Upgrade
4. Make sure you are a list of package for both the arch available in the list
5. Select the i386 package only and update.
6. Repeat steps 1-3 and you will see that now it doesn't list the x86_64 package
Upgrade list doesnt show x86_64 package as available
It should show the package that was not upgraded
Reproduced locally on RHNS 530. It seems that entries for both the packages are removed from the cache when only one arch of the package is updated.
I think i have this figured out and fixed. The downside is that is requires a schema change in addition to a java side change.
Basically the query was not taking into consideration arch information on what was already installed. I changed it to take this into consideration and restrict by the Arch but this also caused an issue.
firstboot-tui's arch actually change during the RHEL 5 lifecycle, so it started off as a noarch package and became an x86_64 package. So i had to restrict by arch only when it was relevant.
It's amazing how confusing such a simple little thing can become....
Created attachment 419082 [details]
Schema upgrade script
channel rhel5 x86_64 on server contains:
rhel5 x86_64 client has:
yum on client shows:
openldap x86_64 2.3.43-12.el5_5.2 rhel-x86_64-server-5 303 k
openssl i686 0.9.8e-12.el5_4.6 rhel-x86_64-server-5 1.4 M
openssl x86_64 0.9.8e-12.el5_4.6 rhel-x86_64-server-5 1.4 M
Fixed in upstream by
585965 - rhnServerNeededView rewritten from scratch
it utilize rhnChannelNewestPackage cache table and new table for package upgrade
rhnPackageUpgradeArchCompat - an <package_arch> package can be upgraded by newer <package_upgrade_arch> package
Fixed in 'spacewalk-backend-1.2.10-1'. 'spacewalk-backend-1.2.11-1.el5sat'
included in compose 'Satellite-5.4.0-RHEL5-re20100910.2'.
Moving to ON_QA.
*** Bug 605242 has been marked as a duplicate of this bug. ***
Verified in stage (-> release_pending) with:
The 5.4.0 RHN Satellite and RHN Proxy release has occurred. This issue has been resolved with this release.
RHEA-2010:0801 - RHN Satellite Server 5.4.0 Upgrade
RHEA-2010:0803 - RHN Tools enhancement update
RHEA-2010:0802 - RHN Proxy Server 5.4.0 bug fix update
RHEA-2010:0800 - RHN Satellite Server 5.4.0
Docs are available:
*** Bug 566029 has been marked as a duplicate of this bug. ***