Red Hat Satellite engineering is moving the tracking of its product development work on Satellite 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 "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. 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 "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-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 1095925 - Systems registering without a specified organization should land in the user's Default org
Summary: Systems registering without a specified organization should land in the user'...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Registration
Version: 6.0.4
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Eric Helms
QA Contact: Kedar Bidarkar
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-08 20:41 UTC by Mike McCune
Modified: 2019-09-26 14:31 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-07-02 14:06:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 6081 0 None None None 2016-04-22 16:31:39 UTC

Description Mike McCune 2014-05-08 20:41:53 UTC
Now that we have the ability to specify a default Organization and Location within a user's account we should send any systems being registered without an --organization parameter to land in these specified organizations.


This allows for parameter-less registrations to work:

# subscription-manager register

Comment 4 Eric Helms 2014-06-05 18:49:32 UTC
Created redmine issue http://projects.theforeman.org/issues/6081 from this bug

Comment 5 Michael Stead 2014-06-09 17:40:27 UTC
This issue will not be able to be fixed in katello alone.

When and subman's register command is invoked WITHOUT --organization, subman will lookup all orgs for the specified user before registering, and based on the resulting org list do one of the following:
1) No Orgs Found: Error
2) 1 org found: Proceed using this org.
3) Multiple found: Prompt the user for an org.

Because of this, changes to subscription-manager would be required to achieve parameter-less registration, and depending on the implementation, changes may also be required in candlepin.

Comment 6 Bryan Kearney 2014-06-10 10:59:09 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/6081 has been closed

Comment 9 Kedar Bidarkar 2014-06-17 16:21:33 UTC
[root@xxx ~]# subscription-manager register 
Username: admin
Password: 
Organization: ACME_Corporation
The system has been registered with ID: 59b30c20-f637-431f-b36b-fcb3a70589dd 
[root@xxxx ~]# subscription-manager unregister 
System has been unregistered.
[root@xxxx ~]# subscription-manager unregister 
This system is currently not registered.
[root@xxxx ~]# subscription-manager register 
Username: admin
Password: 
The system has been registered with ID: b241c898-37d9-4ff5-adac-de9ebfae7da2 

Testing with "No Orgs" is destructive testing, will test later.

Comment 10 Kedar Bidarkar 2014-06-17 16:34:10 UTC
Ok, tested with another setup.

the below content-host is trying to register with a sat6 which has "no orgs"

[root@xxxx ~]# subscription-manager register
Username: admin
Password: 
admin cannot register with any organizations.

Comment 11 Bryan Kearney 2014-07-02 14:06:29 UTC
This was delivered with 6.0.3, which is the Satellite 6 Beta.


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