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 1822880 - Failed to register to CDN with non organization admin user during installation
Summary: Failed to register to CDN with non organization admin user during installation
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: anaconda
Version: 8.2
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: rc
: 8.5
Assignee: Martin Kolman
QA Contact: Release Test Team
Shweta Naresh
URL:
Whiteboard:
: 1834750 1835281 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-04-10 09:28 UTC by Qin Yuan
Modified: 2024-06-13 22:33 UTC (History)
31 users (show)

Fixed In Version:
Doc Type: Known Issue
Doc Text:
.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.
Clone Of:
Environment:
Last Closed: 2021-05-14 16:49:17 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
logs in /tmp (645.90 KB, application/gzip)
2020-04-10 09:28 UTC, Qin Yuan
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 5728511 0 None None None 2021-01-22 14:52:39 UTC

Description Qin Yuan 2020-04-10 09:28:06 UTC
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.

Comment 3 Sandro Bonazzola 2020-04-21 07:40:51 UTC
Samantha can you please review?

Comment 4 Martin Kolman 2020-04-21 11:22:43 UTC
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)

Comment 5 Jesper Brouer 2020-05-13 15:29:36 UTC
*** Bug 1835281 has been marked as a duplicate of this bug. ***

Comment 6 Sandro Bonazzola 2020-05-14 07:42:25 UTC
*** Bug 1834750 has been marked as a duplicate of this bug. ***

Comment 7 Sandro Bonazzola 2020-05-26 07:37:46 UTC
Qin, can you test workarounds on comment #4

Comment 8 Qin Yuan 2020-05-26 07:53:08 UTC
Both of the two work around work fine.


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