Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1157761

Summary: broken --destination-url option in rhn-migrate-rhn-classic-to-rhsm
Product: Red Hat Enterprise Linux 7 Reporter: John Sefler <jsefler>
Component: subscription-managerAssignee: Chris "Ceiu" Rog <crog>
Status: CLOSED ERRATA QA Contact: John Sefler <jsefler>
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.1CC: crog, wpoteat
Target Milestone: rcKeywords: 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-03-05 13:15:55 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: 1005618    

Description John Sefler 2014-10-27 16:04:31 UTC
Description of problem:
Similar to bug 1149007, using the newly renamed --destination-url command line option will throw an error "subscription-manager: error: no such option: --server-url"


Version-Release number of selected component (if applicable):
[root@jsefler-os7 ~]# rpm -q subscription-manager-migration
subscription-manager-migration-1.13.6-1.git.0.7c3a315.el7.x86_64


How reproducible:


Steps to Reproduce:
[root@jsefler-os7 ~]# rhnreg_ks --serverUrl=https://sat-56-server.usersys.redhat.com/XMLRPC --username=admin --password=**** --force --norhnsd --nohardware --nopackages --novirtinfo
[root@jsefler-os7 ~]# rhn-channel --list
rhel-x86_64-server-7
[root@jsefler-os7 ~]# rhn-migrate-classic-to-rhsm --destination-url=subscription.rhn.stage.redhat.com:443/subscription
Legacy username: admin
Legacy password: 
Destination username: qa
Destination password: 

Retrieving existing legacy subscription information...

+-----------------------------------------------------+
System is currently subscribed to these legacy channels:
+-----------------------------------------------------+
rhel-x86_64-server-7

+-----------------------------------------------------+
Installing product certificates for these legacy channels:
+-----------------------------------------------------+
rhel-x86_64-server-7

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...
Usage: subscription-manager register [OPTIONS]

subscription-manager: error: no such option: --server-url

Unable to register.
For further assistance, please contact Red Hat Global Support Services.
[root@jsefler-os7 ~]#




Actual results:
above
subscription-manager: error: no such option: --server-url

Expected results:
Successful migration to new destination server url.

Additional info:

Comment 2 Chris "Ceiu" Rog 2014-11-04 16:05:42 UTC
commit cd0ff8d782c9a1e27a0f2123426321bf6dc62071
Merge: 7d5406d 7c557fe
Author: Devan Goodwin <dgoodwin>
Date:   Tue Nov 4 09:30:02 2014 -0400

    Merge pull request #1059 from candlepin/crog/1157761
    
    1157761: Fixed incorrect option usage in migration tool.

Comment 4 John Sefler 2014-11-21 19:18:43 UTC
Verifying Version...
[root@jsefler-os7 ~]# rpm -q subscription-manager-migration
subscription-manager-migration-1.13.9-1.el7.x86_64



[root@jsefler-os7 ~]# rhnreg_ks --serverUrl=https://sat-56-server.usersys.redhat.com/XMLRPC --username=admin --password=*** --force --norhnsd --nohardware --nopackages --novirtinfo
[root@jsefler-os7 ~]# rhn-migrate-classic-to-rhsm --destination-url=subscription.rhn.stage.redhat.com:443/subscription
Legacy username: admin
Legacy password: 
Destination username: qa
Destination password: 

Retrieving existing legacy subscription information...

+-----------------------------------------------------+
System is currently subscribed to these legacy channels:
+-----------------------------------------------------+
rhel-x86_64-server-7

+-----------------------------------------------------+
Installing product certificates for these legacy channels:
+-----------------------------------------------------+
rhel-x86_64-server-7

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: b4c7c99a-ea61-40bf-877c-bd91d427b85f 

Installed Product Current Status:
Product Name: Red Hat Enterprise Linux Server
Status:       Subscribed

System 'jsefler-os7.usersys.redhat.com' successfully registered.

[root@jsefler-os7 ~]# 


VERIFIED: rhn-migrate-classic-to-rhsm to the specified --destination-url is now successful.

Comment 6 errata-xmlrpc 2015-03-05 13:15:55 UTC
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.

https://rhn.redhat.com/errata/RHBA-2015-0502.html