Bug 1304747 - Activation key cannot be used with rhn-migrate-classic-to-rhsm script on RHEL 5 but works with RHEL 6
Summary: Activation key cannot be used with rhn-migrate-classic-to-rhsm script on RHEL...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: subscription-manager
Version: 5.11
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: candlepin-bugs
QA Contact: John Sefler
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-04 14:18 UTC by Akshay Mankumbare
Modified: 2019-09-12 09:53 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-02-04 20:19:42 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Akshay Mankumbare 2016-02-04 14:18:47 UTC
Description of problem:

cannot migrate RHEL 5 client system from Satellite 5.7 to Satellite 6.x using activation key along with  rhn-migrate-classic-to-rhsm script.

But activation key along with rhn-migrate-classic-to-rhsm script works for all RHEL 6 client system, even though there is no options for it in man page.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. 

This syntax works on RHEL6:
# rhn-migrate-classic-to-rhsm --force --org="sysops" --activation-key="migration-rhel6-dev"

This syntax does not work on RHEL5 with error "no such option":
# rhn-migrate-classic-to-rhsm --org="sysops" --activation-key="migration-rhel5_x86-prod"
Usage: rhn-migrate-classic-to-rhsm [OPTIONS]

rhn-migrate-classic-to-rhsm: error: no such option: --activation-key

Actual results:

This syntax does not work on RHEL5 with error "no such option":
# rhn-migrate-classic-to-rhsm --org="sysops" --activation-key="migration-rhel5_x86-prod"
Usage: rhn-migrate-classic-to-rhsm [OPTIONS]

rhn-migrate-classic-to-rhsm: error: no such option: --activation-key


Expected results:

It should work

Additional info:

Comment 1 Barnaby Court 2016-02-04 20:19:42 UTC
This is a request to port new functionality back to RHEL 5. RHEL 5 is currently supporting security fixes only so we are closing this issue.

Comment 2 Barnaby Court 2016-02-04 20:29:45 UTC
one option would be to run the migration tool while disabling auto attach, "rhn-migrate-classic-to-rhsm --no-auto" and then perform a registration manually with "subscription-manager register --force  --activation-key <key>" after the migration script is run.


Note You need to log in before you can comment on or make changes to this bug.