Bug 956298 - subscription-manager fails when no org is passed, man page states it should work
Summary: subscription-manager fails when no org is passed, man page states it should work
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
unspecified
medium
Target Milestone: rc
: ---
Assignee: Deon Ballard
QA Contact: IDM QE LIST
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel510
TreeView+ depends on / blocked
 
Reported: 2013-04-24 15:27 UTC by Joe Ceresini
Modified: 2013-09-30 23:06 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
No description necessary
Clone Of:
Environment:
Last Closed: 2013-09-30 23:06:58 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:27:55 UTC
Description of problem:
man page states that no org is required when using activation keys if there is only 1 org, or if you use Customer Portal Subscription Management

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

but not passing an org results in an error:
$ subscription-manager register --activationkey xxxxxxxxx
Error: Must provide --org with activation keys.

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 no 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

Comment 1 RHEL Program Management 2013-04-29 17:37:10 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 2 Bryan Kearney 2013-05-01 18:34:45 UTC
This is correct. You need to provide an org for activation keys. this is a man page change then. Assigning to deon.

Comment 4 Sharath Dwaral 2013-05-22 19:40:51 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 "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"   as before

refer https://bugzilla.redhat.com/show_bug.cgi?id=956285#c0

VERIFIED

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