Bug 1834750

Summary: During RHVH installation unable to register host via "Connect to Red Hat".
Product: Red Hat Enterprise Virtualization Manager Reporter: Ameya Charekar <achareka>
Component: redhat-virtualization-hostAssignee: Yuval Turgeman <yturgema>
Status: CLOSED DUPLICATE QA Contact: Qin Yuan <qiyuan>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.4.0CC: cshao, lsvaty, mavital, nlevy, peyu, qiyuan, sbonazzo, shlei, usurse, weiwang, yaniwang, yturgema
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-14 07:42:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Node RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ameya Charekar 2020-05-12 10:47:29 UTC
Description of problem:

During RHVH installation, registering host via "Connect to Red Hat" fails. Providing account "User name" and "Password" results in "Registration failed" with error message "You must specify an organization for new units".

Version-Release number of selected component (if applicable):
RHVH-4.4-20200417.0-RHVH-x86_64-dvd1.iso

How reproducible:
Always

Steps to Reproduce:
1. Begin Installation.
2. Configure Network.
3. Register host from "Connect to Red Hat" tab selecting "Account" as Authentication, providing "User name" and "Password".

Actual results:
Registration fails with error "You must specify an organization for new units".

Expected results:
Able to register host.

Additional info:
Error in rhsm.log:
~~~
2020-05-12 02:20:05,278 [ERROR] rhsm-service:2656:MainThread @util.py:41 - HTTP error (400 - Bad Request): You must specify an organization for new units.
Traceback (most recent call last):
  File "/usr/lib64/python3.6/site-packages/rhsmlib/dbus/util.py", line 38, in dbus_handle_exceptions
    ret = func(*args, **kwargs)
  File "/usr/lib64/python3.6/site-packages/rhsmlib/dbus/objects/register.py", line 123, in Register
    consumer = register_service.register(org, **options)
  File "/usr/lib64/python3.6/site-packages/rhsmlib/services/register.py", line 91, in register
    usage=usage
  File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 1021, in registerConsumer
    return self.conn.request_post(url, params)
  File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 729, in request_post
    return self._request("POST", method, params, headers=headers)
  File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 752, in _request
    info=info, headers=headers)
  File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 627, in _request
    self.validateResponse(result, request_type, handler)
  File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 689, in validateResponse
    raise RestlibException(response['status'], error_msg, response.get('headers'))
rhsm.connection.RestlibException: HTTP error (400 - Bad Request): You must specify an organization for new units.
~~~

Comment 2 cshao 2020-05-13 02:05:54 UTC
Seems the bug is dup with bug 1822880

Comment 4 Sandro Bonazzola 2020-05-14 07:42:25 UTC
Closing as duplicate of bug #1822880

*** This bug has been marked as a duplicate of bug 1822880 ***

Comment 5 Red Hat Bugzilla 2023-09-14 06:00:02 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days