Bug 603028
Summary: | rhn_check does not update packages whose architecture was changed from noarch to multiarch and vice-versa | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Martin Osvald 🛹 <mosvald> | ||||
Component: | rhn-client-tools | Assignee: | Jan Pazdziora <jpazdziora> | ||||
Status: | CLOSED ERRATA | QA Contact: | Martin Minar <mminar> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 5.6 | CC: | andrew.clements, cperry, jcavallaro, jhutar, jpazdziora, mkoci, mminar, mmraka, xdmoon | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | rhn-client-tools-0.4.20-40.el5 | Doc Type: | Bug Fix | ||||
Doc Text: |
Due to an error in the architecture checking, the rhn_register utility failed to update packages when their architecture had changed from "noarch" to "multiarch" or vice versa. With this update, the underlying source code has been modified to target this issue, and such packages are now updated as expected.
|
Story Points: | --- | ||||
Clone Of: | Environment: | ||||||
Last Closed: | 2011-01-14 00:10:18 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: | |||||||
Attachments: |
|
Description
Martin Osvald 🛹
2010-06-11 10:40:09 UTC
Taking for investigation. The proposed patch is: --- rhn-client-tools-svn-r191859/src/actions/errata.py.archchange 2010-06-11 12:24:52.959592767 +0200 +++ rhn-client-tools-svn-r191859/src/actions/errata.py.archchange 2010-06-11 12:27:45.177819621 +0200 @@ -49,6 +49,8 @@ def update(errataidlist): for p in packagelist: if current_packages_with_arch.has_key(p[0]+p[4]): u[p[0]+p[4]] = p + elif current_packages.has_key(p[0]): + u[p[0]] = p else: # 5.2 and older sats + hosted dont send arch for p in packagelist: However, that would effectively mean that we would ignore the arch values and revert the fix which was done for bug 476894. A more correct fix is: --- /usr/share/rhn/actions/errata.py.orig 2010-04-29 12:10:32.000000000 +0200 +++ /usr/share/rhn/actions/errata.py 2010-08-31 13:25:18.000000000 +0200 @@ -49,6 +49,10 @@ for p in packagelist: if current_packages_with_arch.has_key(p[0]+p[4]): u[p[0]+p[4]] = p + elif current_packages_with_arch.has_key(p[0]+"noarch"): + u[p[0]+p[4]] = p + elif p[4] == "noarch" and current_packages.has_key(p[0]): + u[p[0]] = p else: # 5.2 and older sats + hosted dont send arch for p in packagelist: which allows transition from any arch to noarch and from noarch to any arch, while preventing for example i386 -> x86_64 change. Incidentally, it was the change for bug 476894 (released for RHEL 5.4) which introduced this issue by adding a check for architecture. Note for QA: use Satellite 5.3+ to verify as that's the one which provides the arch data. Fix committed to Spacewalk master, 4da050d299f45cfdaaad643eff8be750eb9a8555. Sending rhn-client-tools/src/actions/errata.py Transmitting file data . Committed revision 195655. Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: Due to an error in the architecture checking, the rhn_register utility failed to update packages when their architecture had changed from "noarch" to "multiarch" or vice versa. With this update, the underlying source code has been modified to target this issue, and such packages are now updated as expected. 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-2011-0112.html |