Bug 852001 - Can not register the system with option "--org"
Summary: Can not register the system with option "--org"
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: subscription-manager
Version: 5.9
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: beta
: 5.9
Assignee: Bryan Kearney
QA Contact: Entitlement Bugs
URL:
Whiteboard:
Depends On:
Blocks: 771748
TreeView+ depends on / blocked
 
Reported: 2012-08-27 09:50 UTC by xingge
Modified: 2021-04-21 18:56 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: subscription-manager identity was reporting a database id for the "org id" that was then being misinterpreted by the user as an "org key". Consequence: the user would try to register with --org option passing in an unknown value Fix: changed the value reported by subscription-manager identity to actually report the org key as the "org id". Result: user can now register using the reported org id value
Clone Of:
Environment:
Last Closed: 2013-01-08 03:59:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
rhsm.log when bug happened (8.46 KB, text/x-log)
2012-08-27 09:55 UTC, xingge
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:0033 0 normal SHIPPED_LIVE subscription-manager bug fix and enhancement update 2013-01-08 08:38:27 UTC

Comment 1 xingge 2012-08-27 09:55:14 UTC
Created attachment 607171 [details]
rhsm.log when bug happened

Comment 2 RHEL Program Management 2012-08-27 10:17:07 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 3 Bryan Kearney 2012-08-30 13:14:12 UTC
fixed in master at c27a5df05bdaa7dd985165c9bbbb5ff1631da0ef

Comment 6 John Sefler 2012-09-07 17:48:34 UTC
The value displayed for the org id has been changed from the schema id to the org's key value.  The key is more useful to the user than the id.  The key value is what should be supplied as the value for the --org option when registering.

Verifying Version...
[root@rhsm-accept-rhel5 ~]# rpm -q subscription-manager
subscription-manager-1.0.17-1.el5

[root@rhsm-accept-rhel5 ~]# subscription-manager config --server.hostname subscription.rhn.stage.redhat.com --server.port 443 --server.prefix /subscription

[root@rhsm-accept-rhel5 ~]# subscription-manager orgs --username=stage_test_12Password: 
+-------------------------------------------+
          stage_test_12 Organizations
+-------------------------------------------+

Name: 	stage_test_12 User
Key: 	6655634

[root@rhsm-accept-rhel5 ~]# subscription-manager register --username=stage_test_12 --org=6655634
Password: 
The system has been registered with id: e7eccf8b-7bc8-49f8-adc9-6f9532b82a89 
[root@rhsm-accept-rhel5 ~]# subscription-manager identity
Current identity is: e7eccf8b-7bc8-49f8-adc9-6f9532b82a89
name: rhsm-accept-rhel5.usersys.redhat.com
org name: stage_test_12 User
org id: 6655634


Movingto VERIFIED

Comment 8 errata-xmlrpc 2013-01-08 03:59:56 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-0033.html


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