Bug 956285 - subscription-manager with activationkey fails when using "Customer Portal Subscription Management"
Summary: subscription-manager with activationkey fails when using "Customer Portal Sub...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: subscription-manager
Version: 5.10
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: 5.10
Assignee: Deon Ballard
QA Contact: IDM QE LIST
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel510
TreeView+ depends on / blocked
 
Reported: 2013-04-24 15:14 UTC by Joe Ceresini
Modified: 2013-09-30 23:06 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
No description necessary
Clone Of:
Environment:
Last Closed: 2013-09-30 23:06:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:1332 0 normal SHIPPED_LIVE subscription-manager bug fix and enhancement update 2013-09-30 22:49:24 UTC

Description Joe Ceresini 2013-04-24 15:14:40 UTC
Description of problem:
When attempting to use activation keys I get a generic authentication error as seen below:

subscription-manager register --activationkey xxxxxxxxxxx --org "xxxxxxx"

Invalid username or password. To create a login, please visit https://www.redhat.com/wapps/ugc/register.html


Version-Release number of selected component (if applicable):
subscription-manager: 1.1.23-1.el6
python-rhsm: 1.1.8-1.el6

How reproducible:
Happens every time

Steps to Reproduce:
1. Run subscription-manager as described above with valid activationkey and org
2. Get error message listed above

  
Actual results:
System is unregistered

Expected results:
No error message, system registered

Additional info:
We are using the Customer Portal, not our own SAM installation

Excerpt from man page:

       --activationkey=KEYS
              Gives a comma-separated list of product keys to use to redeem or apply specific subscriptions to
              the  system.  This  is used generally for preconfigured systems, which may already have products
              installed and subscriptions attached to that system.

              When the --activationkey option is used, it is not necessary to use the --username  and  --pass-
              word options, because the authentication information is implicit in the activation key.

              When  there  is  a single organization or when using the Customer Portal Subscription Management
              service, it is not necessary to specify an organization with the --org  option,  but  in  multi-
              organization environments, this is required.

              For example:
              subscription-manager register --org="IT Dept" --activationkey=1234abcd

              Giving  the org name is not necessary when there is a single organization or when using the Cus-
              tomer Portal Subscription Management service.

Comment 1 Bryan Kearney 2013-04-25 20:18:57 UTC
Activation keys are not supported by the custoemr portal.

Comment 2 Joe Ceresini 2013-04-25 21:10:01 UTC
The man page seems to indicate that they are.              

Under the activationkeys section of the man page:
"Giving  the org name is not necessary when there is a single organization or when using the Customer Portal Subscription Management service."

If they are unsupported, this statement is irrelevant.

Also the example doesn't show the use of serverurl:

"subscription-manager register --org="IT Dept" --activationkey=1234abcd"

Is there documentation to say that it is unsupported?

Comment 3 Bryan Kearney 2013-04-29 15:12:05 UTC
ok.. I will make this a doco request.

Comment 4 Joe Ceresini 2013-04-29 18:20:55 UTC
Do activation keys server another purpose? I have the ability to make them in the Red Hat Customer Portal:

http://joeceresini.com/dump/uploads/rhel-activation-keys.png

Comment 5 Bryan Kearney 2013-04-29 18:47:31 UTC
The customer portal is combining RHN Classic functionality (which has activation keys) with subsciption management which does not.

Comment 6 RHEL Program Management 2013-05-08 19:38:48 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux release.  Product Management has
requested further review of this request by Red Hat Engineering, for
potential inclusion in a Red Hat Enterprise Linux release for currently
deployed products.  This request is not yet committed for inclusion in
a release.

Comment 9 Sharath Dwaral 2013-05-22 19:38:06 UTC
Version:
Brew Build
# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.8.7-1
subscription-manager: 1.8.8-1.el5
python-rhsm: 1.8.11-1.el5_9


Verification:

 --activationkey=KEYS
              Gives  a  comma-separated  list  of product keys to use to redeem or apply specific subscriptions to the system. This is used for preconfigured systems, which may already have
              products installed and subscriptions attached to that system. Activation keys are issued by an on-premise subscription management service, such as Subscription Asset  Manager.

              When the --activationkey option is used, it is not necessary to use the --username and --password options, because the authentication information is implicit in the activation
              key.

              For example:
              subscription-manager register --org="IT Dept" --activationkey=1234abcd


The above is updated man page for "subscription-manager" -> "register options" -> "--activation-key"

It no longer mentions "Customer Portal Subscription Management"

VERIFIED

Comment 10 Sharath Dwaral 2013-05-22 19:42:27 UTC
Refer bug description (https://bugzilla.redhat.com/show_bug.cgi?id=956285#c0) for previous man page on --activation-key.

Comment 12 errata-xmlrpc 2013-09-30 23:06:52 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.

http://rhn.redhat.com/errata/RHBA-2013-1332.html


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