Bug 719271 - Cli : Not able to register using --orgs or --owner options.
Summary: Cli : Not able to register using --orgs or --owner options.
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: subscription-manager
Version: 6.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Bryan Kearney
QA Contact: John Sefler
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel62
TreeView+ depends on / blocked
 
Reported: 2011-07-06 10:09 UTC by spandey
Modified: 2015-04-23 23:57 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-07-06 13:02:11 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description spandey 2011-07-06 10:09:47 UTC
Description of problem:


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


How reproducible:
5/5

Prerequisites : 
candlepin : on-premises 
Client : i386 Rhel6.2 with following subscription manager 

subscription-manager-gnome-0.96.2-1.git.20.6f5b5f6.el6.i386

subscription-manager-firstboot-0.96.2-1.git.20.6f5b5f6.el6.i386

subscription-manager-0.96.2-1.git.20.6f5b5f6.el6.i386


Steps to verify : 
Register client to candlepin.

Expected Result : 
Client should register to candlepin .

Actual Result : 
[root@dhcp201-165 rhsm]# subscription-manager register --u admin --password admin --orgs admin

Usage: subscription-manager register [OPTIONS]



subscription-manager: error: no such option: --orgs

[root@dhcp201-165 rhsm]# subscription-manager register --u admin --password admin --owner admin

Usage: subscription-manager register [OPTIONS]



subscription-manager: error: no such option: --owner

[root@dhcp201-165 rhsm]# subscription-manager register --u testuser1 --password password --owner admin

Usage: subscription-manager register [OPTIONS]



subscription-manager: error: no such option: --owner

[root@dhcp201-165 rhsm]# subscription-manager register --u testuser1 --password password --orgs admin

Usage: subscription-manager register [OPTIONS]



subscription-manager: error: no such option: --orgs

Comment 2 John Sefler 2011-07-06 12:41:45 UTC
This is working as designed.  Syntax was changed...
In an effort to have more org and less owner, the --owner option was changed to --org.

[root@jsefler-onprem-62server ~]# subscription-manager register --u admin --password admin --org admin
The system has been registered with id: fc99e28d-f28a-42ca-b075-bedcdd8007b6 
[root@jsefler-onprem-62server ~]# 


[root@jsefler-onprem-62server ~]# subscription-manager register --help | grep org
  --org=ORG             register to one of multiple organizations for the user


[root@jsefler-onprem-62server ~]# rpm -q subscription-manager
subscription-manager-0.96.2-1.git.20.6f5b5f6.el6.x86_64

Comment 3 spandey 2011-07-06 13:02:11 UTC
yes John you was right 
after your step i am able to register .
So closing defect as "not a defect "


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