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
Created redmine issue http://projects.theforeman.org/issues/6081 from this bug
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.
Moving to POST since upstream bug http://projects.theforeman.org/issues/6081 has been closed
[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.
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.
This was delivered with 6.0.3, which is the Satellite 6 Beta.