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.
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:
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.
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