RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
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:
Embargoed:


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.