Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
.Registration fails for user accounts that belong to multiple organizations
Currently, when you attempt to register a system with a user account that belongs to multiple organizations, the registration process fails with the error message *You must specify an organization for new units*.
To work around this problem, you can either:
* Use a different user account that does not belong to multiple organizations.
* Use the *Activation Key* authentication method available in the Connect to Red Hat feature for GUI and Kickstart installations.
* Skip the registration step in Connect to Red Hat and use Subscription Manager to register your system post-installation.
Created attachment 1677764[details]
logs in /tmp
Description of problem:
During rhvh installation, use a non organization admin user to register to CDN, registration failed with the following error:
08:54:08,504 INFO rhsm-service:ERROR [rhsmlib.dbus.util:41] HTTP error (400 - Bad Request): You must specify an organization for new units.
08:54:08,504 INFO rhsm-service:Traceback (most recent call last):
08:54:08,504 INFO rhsm-service: File "/usr/lib64/python3.6/site-packages/rhsmlib/dbus/util.py", line 38, in dbus_handle_exceptions
08:54:08,504 INFO rhsm-service: ret = func(*args, **kwargs)
08:54:08,504 INFO rhsm-service: File "/usr/lib64/python3.6/site-packages/rhsmlib/dbus/objects/register.py", line 123, in Register
08:54:08,504 INFO rhsm-service: consumer = register_service.register(org, **options)
08:54:08,504 INFO rhsm-service: File "/usr/lib64/python3.6/site-packages/rhsmlib/services/register.py", line 91, in register
08:54:08,504 INFO rhsm-service: usage=usage
08:54:08,504 INFO rhsm-service: File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 1021, in registerConsumer
08:54:08,504 INFO rhsm-service: return self.conn.request_post(url, params)
08:54:08,504 INFO rhsm-service: File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 729, in request_post
08:54:08,504 INFO rhsm-service: return self._request("POST", method, params, headers=headers)
08:54:08,504 INFO rhsm-service: File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 752, in _request
08:54:08,504 INFO rhsm-service: info=info, headers=headers)
08:54:08,504 INFO rhsm-service: File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 627, in _request
08:54:08,504 INFO rhsm-service: self.validateResponse(result, request_type, handler)
08:54:08,504 INFO rhsm-service: File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 689, in validateResponse
08:54:08,504 INFO rhsm-service: raise RestlibException(response['status'], error_msg, response.get('headers'))
08:54:08,504 INFO rhsm-service:rhsm.connection.RestlibException: HTTP error (400 - Bad Request): You must specify an organization for new units.
08:54:08,505 WARNING org.fedoraproject.Anaconda.Modules.Subscription:DEBUG:anaconda.modules.subscription.installation:RHSM: failed to register with username and password: {"exception": "RestlibException", "severity": "error", "message": "You must specify an organization for new units."}
Version-Release number of selected component (if applicable):
RHVH-4.4-20200409.0-RHVH-x86_64-dvd1.iso
How reproducible:
100%
Steps to Reproduce:
1. Install RHVH-4.4-20200409.0-RHVH-x86_64-dvd1.iso
2. Enable network, and go to CONNECT TO RED HAT screen.
3. Adopt the following settings:
Authentication: Account
User name: a non organization admin user's name
Password: the password of the non organization admin user
Purpose: uncheck
Insights: uncheck
Options: no setting
4. Click Register
Actual results:
1. Registration failed, a warning popped up saying "You must specify an organization for new units"
Expected results:
1. Registration should succeed.
Additional info:
1. It succeeds to register to CDN with the same non organization admin user on an installed rhvh 4.4 system.
So what is happening there if you get the "You must specify an organization for new units." error from subscription manager during an install time resgistration attempt is that the Red Hat account you are using is a member of two (or more) organizations. This is currently not supported due to missing subscription manager API needed by Anaconda to handle this case.
For RHEL 8.3 the missing subscription manager DBus API should be in place and we should be able to fix this issue, by presenting the user with a list of organizations to choose from if we find that they Red Hat account is a member of multiple organizations.
In the meantime there are two options to work around this issue:
- use a different account, that is not member of multiple organizations
- use the organization id + activation key authentication method (available both from GUI & kickstart)
Created attachment 1677764 [details] logs in /tmp Description of problem: During rhvh installation, use a non organization admin user to register to CDN, registration failed with the following error: 08:54:08,504 INFO rhsm-service:ERROR [rhsmlib.dbus.util:41] HTTP error (400 - Bad Request): You must specify an organization for new units. 08:54:08,504 INFO rhsm-service:Traceback (most recent call last): 08:54:08,504 INFO rhsm-service: File "/usr/lib64/python3.6/site-packages/rhsmlib/dbus/util.py", line 38, in dbus_handle_exceptions 08:54:08,504 INFO rhsm-service: ret = func(*args, **kwargs) 08:54:08,504 INFO rhsm-service: File "/usr/lib64/python3.6/site-packages/rhsmlib/dbus/objects/register.py", line 123, in Register 08:54:08,504 INFO rhsm-service: consumer = register_service.register(org, **options) 08:54:08,504 INFO rhsm-service: File "/usr/lib64/python3.6/site-packages/rhsmlib/services/register.py", line 91, in register 08:54:08,504 INFO rhsm-service: usage=usage 08:54:08,504 INFO rhsm-service: File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 1021, in registerConsumer 08:54:08,504 INFO rhsm-service: return self.conn.request_post(url, params) 08:54:08,504 INFO rhsm-service: File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 729, in request_post 08:54:08,504 INFO rhsm-service: return self._request("POST", method, params, headers=headers) 08:54:08,504 INFO rhsm-service: File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 752, in _request 08:54:08,504 INFO rhsm-service: info=info, headers=headers) 08:54:08,504 INFO rhsm-service: File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 627, in _request 08:54:08,504 INFO rhsm-service: self.validateResponse(result, request_type, handler) 08:54:08,504 INFO rhsm-service: File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 689, in validateResponse 08:54:08,504 INFO rhsm-service: raise RestlibException(response['status'], error_msg, response.get('headers')) 08:54:08,504 INFO rhsm-service:rhsm.connection.RestlibException: HTTP error (400 - Bad Request): You must specify an organization for new units. 08:54:08,505 WARNING org.fedoraproject.Anaconda.Modules.Subscription:DEBUG:anaconda.modules.subscription.installation:RHSM: failed to register with username and password: {"exception": "RestlibException", "severity": "error", "message": "You must specify an organization for new units."} Version-Release number of selected component (if applicable): RHVH-4.4-20200409.0-RHVH-x86_64-dvd1.iso How reproducible: 100% Steps to Reproduce: 1. Install RHVH-4.4-20200409.0-RHVH-x86_64-dvd1.iso 2. Enable network, and go to CONNECT TO RED HAT screen. 3. Adopt the following settings: Authentication: Account User name: a non organization admin user's name Password: the password of the non organization admin user Purpose: uncheck Insights: uncheck Options: no setting 4. Click Register Actual results: 1. Registration failed, a warning popped up saying "You must specify an organization for new units" Expected results: 1. Registration should succeed. Additional info: 1. It succeeds to register to CDN with the same non organization admin user on an installed rhvh 4.4 system.