Bug 1129948
| Summary: | RHEV 3.4 channel mappings missing for rhn-migrate-classic-to-rhsm | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Julie <juwu> |
| Component: | subscription-manager-migration-data | Assignee: | candlepin-bugs |
| Status: | CLOSED ERRATA | QA Contact: | John Sefler <jsefler> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.5 | CC: | acarter, bkearney, dgregor, jesusr, tlavigne |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
no documentation required
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-10-14 07:48:21 UTC | Type: | Bug |
| 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: | 1014343 | ||
|
Description
Julie
2014-08-14 04:12:48 UTC
after using --force option, I run into conflicting product certificate error: [root@localhost ~]# rhn-migrate-classic-to-rhsm --force Red Hat account: rhn-engineering-ecscloud Password: Retrieving existing RHN Classic subscription information... +-----------------------------------------------------+ System is currently subscribed to these RHN Classic Channels: +-----------------------------------------------------+ rhel-x86_64-server-6 rhel-x86_64-server-supplementary-6 rhel-x86_64-server-6-rhevm-3.4 jbappplatform-6-x86_64-server-6-rpm +-----------------------------------------------------+ No product certificates are mapped to these RHN Classic channels: +-----------------------------------------------------+ rhel-x86_64-server-6-rhevm-3.4 +-----------------------------------------------------+ Unable to continue migration! +-----------------------------------------------------+ You are subscribed to channels that have conflicting product certificates. The following channels map to product ID 69: rhel-x86_64-server-6 rhel-x86_64-server-supplementary-6 Reduce the number of channels per product ID to 1 and run migration again. To remove a channel, use 'rhn-channel --remove --channel=<conflicting_channel>'. The rhel-x86_64-server-6-rhevm-3.4 channel mapping is already included in the latest build of subscription-manager-migration-data [root@jsefler-6 ~]# rpm -q subscription-manager-migration-data subscription-manager-migration-data-2.0.10-1.el6.noarch [root@jsefler-6 ~]# grep rhel-x86_64-server-6-rhevm-3.4 /usr/share/rhsm/product/RHEL-6/channel-cert-mapping.txt rhel-x86_64-server-6-rhevm-3.4: rhev-x86_64-6fea84ddccc2-150.pem rhel-x86_64-server-6-rhevm-3.4-debuginfo: rhev-x86_64-6fea84ddccc2-150.pem [root@jsefler-6 ~]# rct cat-cert /usr/share/rhsm/product/RHEL-6/rhev-x86_64-6fea84ddccc2-150.pem +-------------------------------------------+ Product Certificate +-------------------------------------------+ Certificate: Path: /usr/share/rhsm/product/RHEL-6/rhev-x86_64-6fea84ddccc2-150.pem Version: 1.0 Serial: 12750047592154745564 Start Date: 2014-05-13 23:35:03+00:00 End Date: 2034-05-08 23:35:03+00:00 Subject: CN: Red Hat Product ID [3a25ca17-68f2-421e-9ca8-6fea84ddccc2] Issuer: C: US CN: Red Hat Entitlement Product Authority O: Red Hat, Inc. OU: Red Hat Network ST: North Carolina emailAddress: ca-support Product: ID: 150 Name: Red Hat Enterprise Virtualization Version: 3.4 Arch: x86_64 Tags: Brand Type: Brand Name: [root@jsefler-6 ~]# (In reply to Julie from comment #1) > after using --force option, I run into conflicting product certificate error: [root@jsefler-6 ~]# rhn-migrate-classic-to-rhsm --help | grep force -f, --force ignore channels not available on RHSM The force option is working as designed. It will only ignore the channels not available on RHSM. In your case it was "rhel-x86_64-server-6-rhevm-3.4". Regarding the "You are subscribed to channels that have conflicting product certificates." situation was also true on subscription-manager-migration-data-2.0.5-1.el6.noarch... The fact that your system was consuming multiple channels (rhel-x86_64-server-6 and rhel-x86_64-server-supplementary-6 ) that are mapped to different product certs was true... [root@jsefler-6 ~]# rpm -q subscription-manager-migration-data subscription-manager-migration-data-2.0.5-1.el6.noarch [root@jsefler-6 ~]# egrep "^rhel-x86_64-server-6:|^rhel-x86_64-server-supplementary-6:" /usr/share/rhsm/product/RHEL-6/channel-cert-mapping.txt rhel-x86_64-server-6: Server-Server-x86_64-06e8bd9df3f0-69.pem rhel-x86_64-server-supplementary-6: Server-Server-x86_64-f676d2b3a0ae-69.pem [root@jsefler-6 ~]# You should probably follow the advice of the tool and run rhn-channel --remove --channel=rhel-x86_64-server-supplementary-6 and then try migrating again. In the latest build of subscription-manager-migration-data, these channels map to the same product cert... [root@jsefler-6 ~]# egrep "^rhel-x86_64-server-6:|^rhel-x86_64-server-supplementary-6:" /usr/share/rhsm/product/RHEL-6/channel-cert-mapping.txt rhel-x86_64-server-6: Server-Server-x86_64-06e8bd9df3f0-69.pem rhel-x86_64-server-supplementary-6: Server-Server-x86_64-06e8bd9df3f0-69.pem [root@jsefler-6 ~]# Hence this issue is already fixed too. Verifying Version... [root@jsefler-6 ~]# rpm -qa | grep subscription-manager-migration subscription-manager-migration-1.12.14-5.el6.x86_64 subscription-manager-migration-data-2.0.13-1.el6.noarch [root@jsefler-6 ~]# rhnreg_ks --serverUrl=https://xmlrpc.rhn.redhat.com/XMLRPC --username=qa --password=**** --norhnsd --nohardware --nopackages --novirtinfo [root@jsefler-6 ~]# rhn-channel --user=qa --add --channel=rhel-x86_64-server-supplementary-6 --channel=rhel-x86_64-server-6-rhevm-3.4 --channel=jbappplatform-6-x86_64-server-6-rpm Password: [root@jsefler-6 ~]# rhn-channel --list jbappplatform-6-x86_64-server-6-rpm rhel-x86_64-server-6 rhel-x86_64-server-6-rhevm-3.4 rhel-x86_64-server-supplementary-6 [root@jsefler-6 ~]# rhn-migrate-classic-to-rhsm --serverurl=subscription.rhn.redhat.com:443/subscription --redhat-user=qa --subscription-service-user=qa Red Hat password: Subscription Service password: Retrieving existing RHN Classic subscription information... +-----------------------------------------------------+ System is currently subscribed to these RHN Classic Channels: +-----------------------------------------------------+ rhel-x86_64-server-6 rhel-x86_64-server-supplementary-6 rhel-x86_64-server-6-rhevm-3.4 jbappplatform-6-x86_64-server-6-rpm +-----------------------------------------------------+ Installing product certificates for these RHN Classic channels: +-----------------------------------------------------+ rhel-x86_64-server-6 rhel-x86_64-server-supplementary-6 rhel-x86_64-server-6-rhevm-3.4 jbappplatform-6-x86_64-server-6-rpm Product certificates installed successfully to /etc/pki/product. Preparing to unregister system from RHN Classic... System successfully unregistered from RHN Classic. Attempting to register system to Red Hat Subscription Management... The system has been registered with ID: 37800dde-54d4-4ee4-824a-44a03af81f70 System 'jsefler-6.usersys.redhat.com' successfully registered to Red Hat Subscription Management. Attempting to auto-attach to appropriate subscriptions... Installed Product Current Status: Product Name: Red Hat Enterprise Linux Server Status: Subscribed Product Name: JBoss Enterprise Application Platform Status: Subscribed Product Name: Red Hat Enterprise Virtualization Status: Subscribed Please visit https://access.redhat.com/management/consumers/37800dde-54d4-4ee4-824a-44a03af81f70 to view the details, and to make changes if necessary. [root@jsefler-6 ~]# VERIFIED: subscription-manager-migration-data-2.0.13-1 fixes both comment 0 and comment 1 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-2014-1384.html |