Description of problem: subscription-manager register and subscription-manager register --autosubscribefails saying "You must specify an organization/owner for new consumers." Version-Release number of selected component (if applicable): subscription-manager-firstboot-0.96.4-1.git.70.a18d152.el6.x86_64 subscription-manager-gnome-0.96.4-1.git.70.a18d152.el6.x86_64 subscription-manager-0.96.4-1.git.70.a18d152.el6.x86_64 How reproducible: Steps to Reproduce: 1.subscription-manager register 2.Username: testuser1 Password: 3. Actual results: You must specify an organization/owner for new consumers. Expected results: It should ask for the owner/org and then get registered Additional info:
Moving this to a 5.8 RFE.
This request was not resolved in time for the current release. Red Hat invites you to ask your support representative to propose this request, if still desired, for consideration in the next release of Red Hat Enterprise Linux.
This request was erroneously removed from consideration in Red Hat Enterprise Linux 6.4, which is currently under development. This request will be evaluated for inclusion in Red Hat Enterprise Linux 6.4.
This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Since we are unable to provide this feature at this time, it has been proposed for the next release of Red Hat Enterprise Linux.
It would be great if we could prompt interactively for org when needed. Right now if I type "# subscription-manager register", enter in my username and then my password, I get booted out with "You must specify an organization for new consumers." Since we prompt for username and password if they don't specify, if they need an org, could we display the list of available orgs as a numbered list in the terminal and let them enter 1/2/3/etc to select an org? For Example: # subscription-manager register Username: admin Password: Select an Organization: 1. Snow White (snowwhite) 2. Donald Duck (donaldduck) 3. Admin Owner (admin) Enter the number of your desired org: 1 The system has been registered with id: blah-blah-blah # Current process is not ideal, and the current string doesn't mention that they can check orgs with subscription-manager orgs or that they can manually specify one with register --org. Is it possible to prompt interactively for org during registration through cli?
Once we figure this out, it should also be used for "subscription-manager environments". Current Functionality: # subscription-manager environments Error: This command requires that you specify an organization with --org # subscription-manager environments --org=ACME_Corporation Username: admin Password: ENVIRONMENT INFO OUTPUT Desired Functionality: # subscription-manager environments Username: Password: Select an Organization: 1. Snow White (snowwhite) 2. Donald Duck (donaldduck) 3. Admin Owner (admin) Enter the number of your desired org: 1 ENVIRONMENT INFO OUTPUT I can file a bz separately if desired.
At this point, we're just going to implement a prompt like asking for their username/password, as comment 1 describes, for when users are trying to register through the CLI. Down the road, we may want to investigate making it org key/name agnostic, as I think that can be a point of confusion.
commit bfe381405afcb0e7d748a52923b49b307a8e4c97 Author: Alex Wood <awood> Date: Wed Dec 12 11:03:56 2012 -0500 727092: Read in the org key during registration if none is given. commit b6f4324f6e3b6a04aaf65c6e879bbd92c94f2442 Author: Alex Wood <awood> Date: Thu Dec 13 16:44:52 2012 -0500 Ask for the org in environments and service-level modules. The register, service-level, and environments modules should all now ask for an organization if necessary. Note that in the service-level module, an org is only required when performing a list when the client is unregistered.
Fixed in the 1.8.2 version of subscription-manager or python-rhsm
# rpm -qa | egrep "subscription-manager|python-rhsm" python-rhsm-1.8.3-1.el7.x86_64 subscription-manager-gui-1.8.3-1.el7.x86_64 subscription-manager-migration-1.8.3-1.el7.x86_64 subscription-manager-debuginfo-1.8.3-1.el7.x86_64 subscription-manager-1.8.3-1.el7.x86_64 subscription-manager-firstboot-1.8.3-1.el7.x86_64 python-rhsm-debuginfo-1.8.3-1.el7.x86_64 # subscription-manager register Username: testuser1 Password: Organization: snowwhite The system has been registered with id: 5e2a70e1-16d7-4b2f-b4d9-548a5f0838b8 VERIFIED
# subscription-manager register --autosubscribe Username: testuser1 Password: Organization: snowwhite The system has been registered with id: 89d07c23-c19a-4811-b0d1-757b9550142c Installed Product Current Status: Product Name: Awesome OS for S390 Bits Status: Not Subscribed Product Name: Stackable with Awesome OS for x86_64 Bits Status: Subscribed Product Name: Awesome OS Developer Basic Status: Not Subscribed Product Name: Awesome OS for x86_64/i686/ia64/ppc/ppc64/s390x/s390 Bits Status: Subscribed Product Name: Awesome OS Workstation Bits Status: Subscribed Product Name: Red Hat Enterprise Linux Server Status: Not Subscribed Product Name: Awesome OS Developer Bits Status: Not Subscribed Product Name: Management Bits Status: Subscribed Product Name: Large File Support Bits Status: Subscribed Product Name: Awesome OS Modifier Bits Status: Subscribed Product Name: Clustering Bits Status: Subscribed Product Name: Shared Storage Bits Status: Subscribed Product Name: Awesome OS Server Bits Status: Subscribed Product Name: Awesome OS Premium Architecture Bits Status: Not Subscribed Product Name: Awesome OS for ia64 Bits Status: Not Subscribed Product Name: Awesome OS for i686 Bits Status: Not Subscribed Product Name: Awesome OS for x86_64 Bits Status: Subscribed Product Name: Awesome OS for ppc64 Bits Status: Not Subscribed Product Name: Awesome OS for S390X Bits Status: Not Subscribed Product Name: Awesome OS for i386 Bits Status: Not Subscribed Product Name: Awesome OS for x86 Bits Status: Not Subscribed Product Name: Shared File System Bits Status: Subscribed Product Name: Multiplier Product Bits Status: Not Subscribed Product Name: RAM Limiting Product Status: Not Subscribed Product Name: Load Balancing Bits Status: Subscribed VERIFIED for --autosubscribe option as well