Bug 1304747

Summary: Activation key cannot be used with rhn-migrate-classic-to-rhsm script on RHEL 5 but works with RHEL 6
Product: Red Hat Enterprise Linux 5 Reporter: Akshay Mankumbare <amankumb>
Component: subscription-managerAssignee: candlepin-bugs
Status: CLOSED WONTFIX QA Contact: John Sefler <jsefler>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 5.11CC: amankumb, bcourt, snag
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-04 20:19:42 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:

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.