Bug 1006985
Summary: | rhn-migrate-classic-to-rhsm should abort when it encounters RHN channels that map to different products certs that share the same productId | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | John Sefler <jsefler> |
Component: | subscription-manager | Assignee: | Alex Wood <awood> |
Status: | CLOSED ERRATA | QA Contact: | John Sefler <jsefler> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.5 | CC: | jesusr, mreid |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
Cause:
Consequence:
migration script clobbers product certs when duplicates found.
Fix:
Abort migration when we detect different certs with the same ID.
Result:
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2013-11-21 21:29:02 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: | 862910 |
Description
John Sefler
2013-09-11 16:12:34 UTC
Adding mreid to help us with an informative message that states something like this: These currently subscribed RHN Classic Channels [%s] map to multiple product certs that have Product ID %s in common. Remove one or more of these conflicting RHN Classic Channels before attempting to migrate from RHN to RHSM. Aborting. Alex talked to me yesterday about this and I believe put in a PR with what we came up with. Are we still looking for a string on this? (In reply to Matt Reid from comment #3) > Alex talked to me yesterday about this and I believe put in a PR with what > we came up with. Are we still looking for a string on this? We're good. commit 5873b8421267854a96f1be83621e79fb6431d7ba Author: Alex Wood <awood> Date: Thu Sep 19 14:42:15 2013 -0400 1006985: Abort migration when we detect different certs with the same ID. Please note that this commit adds new strings! Verifying Version... [root@jsefler-6 ~]# rpm -q subscription-manager-migration subscription-manager-migration-1.9.9-1.el6.x86_64 [root@jsefler-6 ~]# rpm -q subscription-manager-migration-data subscription-manager-migration-data-2.0.4-1.el6.noarch [root@jsefler-6 ~]# rhnreg_ks --serverUrl=https://xmlrpc.rhn.code.stage.redhat.com/XMLRPC --username=qa --password=**** --force --norhnsd --nohardware --nopackages --novirtinfo [root@jsefler-6 ~]# rhn-channel --user qa --add -c rhel-x86_64-rhev-agent-6-server -c rhel-x86_64-rhev-agent-6-server-beta Password: [root@jsefler-6 ~]# rhn-migrate-classic-to-rhsm --serverurl=subscription.rhn.stage.redhat.com:443/subscription Red Hat account: qa Password: System Engine Username: qa Password: Retrieving existing RHN Classic subscription information... +-----------------------------------------------------+ System is currently subscribed to these RHN Classic Channels: +-----------------------------------------------------+ rhel-x86_64-server-6 rhel-x86_64-rhev-agent-6-server-beta rhel-x86_64-rhev-agent-6-server +-----------------------------------------------------+ 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-rhev-agent-6-server rhel-x86_64-rhev-agent-6-server-beta rhel-x86_64-server-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>'. [root@jsefler-6 ~]# ^^^^ VERIFIED: When consuming channels that map to different versions of the same product ID, the migration script aborts. Note: By inspecting the channel-cert-mapping.txt, we can see that these three channels map to three different hashed versions of 69.pem [root@jsefler-6 ~]# egrep "^rhel-x86_64-rhev-agent-6-server:|^rhel-x86_64-rhev-agent-6-server-beta:|^rhel-x86_64-server-6:" /usr/share/rhsm/product/RHEL-6/channel-cert-mapping.txt rhel-x86_64-rhev-agent-6-server: Server-Server-x86_64-23d36f276d57-69.pem rhel-x86_64-rhev-agent-6-server-beta: Server-Server-x86_64-e774841f1bf0-69.pem rhel-x86_64-server-6: Server-Server-x86_64-06e8bd9df3f0-69.pem 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-1659.html |