Bug 1220493
Summary: | rhn-migrate-classic-to-rhsm is failing when specifying a --destination-url | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | John Sefler <jsefler> |
Component: | subscription-manager | Assignee: | Alex Wood <awood> |
Status: | CLOSED NOTABUG | QA Contact: | John Sefler <jsefler> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.7 | CC: | bkearney, jsefler, tlavigne, wpoteat |
Target Milestone: | rc | Keywords: | Regression |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-05-14 20:57:51 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: | 1125249 |
Description
John Sefler
2015-05-11 16:31:51 UTC
The destination URL needs to be like so: --destination-url=subscription.rhn.stage.redhat.com:443/subscription The format requirements have not changed, so I do not believe this is a regression. Can you please test again and close this if it is not a bug? My apologies, I destructively configured a bad hostname, bad port, and bad prefix. Then I neglected to include a good port and good prefix within the --destination-url. Of course the steps in comment 0 failed. Retesting.... [root@jsefler-os6 ~]# subscription-manager config --server.hostname=bad-hostname.com --server.port=000 --server.prefix=/bad-prefix [root@jsefler-os6 ~]# rhn-migrate-classic-to-rhsm --destination-url=subscription.rhn.stage.redhat.com:443/subscription Legacy username: qa Legacy password: Destination username: stage_auto_testuser Destination password: Retrieving existing legacy subscription information... +-----------------------------------------------------+ System is currently subscribed to these legacy channels: +-----------------------------------------------------+ rhel-x86_64-server-6 +-----------------------------------------------------+ Installing product certificates for these legacy channels: +-----------------------------------------------------+ rhel-x86_64-server-6 Product certificates installed successfully to /etc/pki/product. Preparing to unregister system from legacy server... System successfully unregistered from legacy server. Attempting to register system to destination server... The system has been registered with ID: 82be1bc0-a06c-4b6f-92d3-710aa9cb6e2c Installed Product Current Status: Product Name: Red Hat Enterprise Linux Server Status: Subscribed System 'jsefler-os6' successfully registered. [root@jsefler-os6 ~]# VERIFIED: --destination-url should be of the format https://hostname:port/prefix VERIFIED (but not shown): --destination-url can exclude ":port" or "/prefix" when they are already configured properly in /etc/rhsm/rhsm.conf |