Bug 719271

Summary: Cli : Not able to register using --orgs or --owner options.
Product: Red Hat Enterprise Linux 6 Reporter: spandey
Component: subscription-managerAssignee: Bryan Kearney <bkearney>
Status: CLOSED NOTABUG QA Contact: John Sefler <jsefler>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.2CC: jmolet, kbanerje, skallesh, spandey
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-06 13:02:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 682238    

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 "