| Summary: | “Install-num-migrate-to-rhsm “ command not working as expected for ppc64 box | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | spandey |
| Component: | subscription-manager | Assignee: | Alex Wood <awood> |
| Status: | CLOSED ERRATA | QA Contact: | Entitlement Bugs <entitlement-bugs> |
| Severity: | high | Docs Contact: | |
| Priority: | urgent | ||
| Version: | 5.8 | CC: | awood, cduryee, jmolet, jsefler, kbanerje, khong, mkhusid, msvoboda, skallesh, spandey |
| Target Milestone: | rc | Keywords: | ZStream |
| Target Release: | --- | ||
| Hardware: | ppc | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
On Red Hat Enterprise Linux 5, subscription management does not support software channels for 64-bit PowerPC architectures. Therefore, the "install-num-migrate-to-rhsm" utility did not work on these architectures, and users were not able to migrate their systems to Certificate-based Red Hat Network (RHN). With this update, the "install-num-migrate-to-rhsm" utility has been modified to use the supported PowerPC product certificates instead. Systems installed on 64-bit PowerPC architectures can now be migrated properly from Classic RHN to Certificate-based RHN.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-01-08 03:48:47 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | |||
| Bug Blocks: | 771748, 788661 | ||
|
Description
spandey
2012-02-01 13:39:55 UTC
Getting same issue with dry run [root@ibm-js22-vios-01-lp1 RHEL-5]# install-num-migrate-to-rhsm -d -i 20f91e3421ed551e ^^^^^^^^^^^ displays nothing Here's what happening.... install-num-migrate-to-rhsm uses the arch of the system as one of the filters to find the proper product certs in the channel-cert-mapping.txt file. Because there are only ppc channels supported on RHEL5, the product cert filenames in channel-cert-mapping.txt are not matching the ppc64 arch filter. Hence install-num-migrate-to-rhsm will not copy any product certs no matter what value of instnum is used on a ppc64 system. [root@jsefler-onprem-5server ~]# grep ppc64 /usr/share/rhsm/product/RHEL-5/channel-cert-mapping.txt [root@jsefler-onprem-5server ~]# ^^^ See no matches on ppc64 at all, however... [root@jsefler-onprem-5server ~]# grep ppc /usr/share/rhsm/product/RHEL-5/channel-cert-mapping.txt | grep pem rhel-ppc-server-5: Server-Server-ppc-0cab9c68a3a8-74.pem rhel-ppc-server-cluster-5: Server-Cluster-ppc-ec8e9360bb01-83.pem rhel-ppc-server-cluster-storage-5: Server-ClusterStorage-ppc-a3fea9e1dde3-90.pem rhel-ppc-server-fastrack-5: Server-Server-ppc-0cab9c68a3a8-74.pem rhel-ppc-server-supplementary-5: Server-Server-ppc-0cab9c68a3a8-74.pem rhn-tools-rhel-ppc-server-5: Server-Server-ppc-0cab9c68a3a8-74.pem ^^^ there are matches if the arch was ppc A possible solution for this problem is for the install-num-migrate-to-rhsm program to simply do a string replace of "ppc64" to "ppc" when it queries the system arch. THIS MUST ONLY BE DONE ON A RHEL5 SYSTEM! DO NOT DO THIS ON A RHEL6 SYSTEM BECAUSE RHEL6 HAS LEGITIMATE ppc64 CHANNELS. Committed 9d487b6e93eb31dfc327f6c4e3f799d7e6796c81 Available in 0.99.6+ Verifying Version targeted for RHEL58 z stream... [root@ibm-p750e-02-lp3 ~]# rpm -q subscription-manager-migration subscription-manager-migration-0.98.15-1.el5_8 [root@ibm-p750e-02-lp3 ~]# rpm -q subscription-manager-migration-data subscription-manager-migration-data-1.11-1.el5 [root@ibm-p750e-02-lp3 ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 5.8 (Tikanga) [root@ibm-p750e-02-lp3 ~]# uname -m ppc64 [root@ibm-p750e-02-lp3 ~]# [root@ibm-p750e-02-lp3 ~]# install-num-migrate-to-rhsm -d -i 20f91e3421ed551e Copying /usr/share/rhsm/product/RHEL-5/Server-Server-ppc-0cab9c68a3a8-74.pem to /etc/pki/product/74.pem [root@ibm-p750e-02-lp3 ~]# ^^^ VERIFIED case in comment 0 [root@ibm-p750e-02-lp3 ~]# cat /etc/sysconfig/rhn/install-num 49af89414d147589 [root@ibm-p750e-02-lp3 ~]# install-num-migrate-to-rhsm -d Copying /usr/share/rhsm/product/RHEL-5/Server-Server-ppc-0cab9c68a3a8-74.pem to /etc/pki/product/74.pem Copying /usr/share/rhsm/product/RHEL-5/Server-ClusterStorage-ppc-a3fea9e1dde3-90.pem to /etc/pki/product/90.pem Copying /usr/share/rhsm/product/RHEL-5/Server-Cluster-ppc-ec8e9360bb01-83.pem to /etc/pki/product/83.pem [root@ibm-p750e-02-lp3 ~]# ^^^ VERIFIED install-num-migrate-to-rhsm ON A ppc64 SYSTEM WILL NOW COPY THE ppc PRODUCT CERTS FOR MIGRATION
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:
On Red Hat Enterprise Linux 5, subscription management does not support software channels for 64-bit PowerPC architectures. Therefore, the "install-num-migrate-to-rhsm" utility did not work on these architectures, and users were not able to migrate their systems to Certificate-based Red Hat Network (RHN). With this update, the "install-num-migrate-to-rhsm" utility has been modified to use the supported PowerPC product certificates instead. Systems installed on 64-bit PowerPC architectures can now be migrated properly from Classic RHN to Certificate-based RHN.
Re-executing the verification steps in comment 7 against a subscription-manager-migration build targeted for RHEL59... [root@ibm-js22-vios-03-lp2 ~]# rpm -q subscription-manager-migration subscription-manager-migration-data subscription-manager-migration-1.0.13-1.el5 subscription-manager-migration-data-1.11.2.3-1.el5 [root@ibm-js22-vios-03-lp2 ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 5.9 Beta (Tikanga) [root@ibm-js22-vios-03-lp2 ~]# uname -m ppc64 [root@ibm-js22-vios-03-lp2 ~]# install-num-migrate-to-rhsm -d -i 20f91e3421ed551e Copying /usr/share/rhsm/product/RHEL-5/Server-Server-ppc-6aa45b71ce87-74.pem to /etc/pki/product/74.pem [root@ibm-js22-vios-03-lp2 ~]# subscription-manager list --installed +-------------------------------------------+ Installed Product Status +-------------------------------------------+ Product Name: Red Hat Enterprise Linux for IBM POWER Product ID: 74 Version: 5.9 Beta Arch: ppc Status: Not Subscribed Starts: Ends: ^^^ VERIFIED case in comment 0 [root@ibm-js22-vios-03-lp2 ~]# cat /etc/sysconfig/rhn/install-num 49af89414d147589 [root@ibm-js22-vios-03-lp2 ~]# install-num-migrate-to-rhsm Copying /usr/share/rhsm/product/RHEL-5/Server-Server-ppc-6aa45b71ce87-74.pem to /etc/pki/product/74.pem Copying /usr/share/rhsm/product/RHEL-5/Server-ClusterStorage-ppc-12a5f89b1fa9-90.pem to /etc/pki/product/90.pem Copying /usr/share/rhsm/product/RHEL-5/Server-Cluster-ppc-5febab4661c6-83.pem to /etc/pki/product/83.pem [root@ibm-js22-vios-03-lp2 ~]# subscription-manager list --installed +-------------------------------------------+ Installed Product Status +-------------------------------------------+ Product Name: Red Hat Enterprise Linux High Availability (for RHEL Server) Product ID: 83 Version: 5.9 Arch: ppc Status: Not Subscribed Starts: Ends: Product Name: Red Hat Enterprise Linux for IBM POWER Product ID: 74 Version: 5.9 Arch: ppc Status: Not Subscribed Starts: Ends: Product Name: Red Hat Enterprise Linux Resilient Storage (for RHEL Server) Product ID: 90 Version: 5.9 Arch: ppc Status: Not Subscribed Starts: Ends: [root@ibm-js22-vios-03-lp2 ~]# ^^^ VERIFIED install-num-migrate-to-rhsm ON A ppc64 SYSTEM WILL NOW COPY THE ppc PRODUCT CERTS FOR MIGRATION Moving to VERIFIED for RHEL59 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-0033.html |