Bug 1924863

Summary: Global Registration: Getting error while registering a client to satellite even though the client is getting registered properly on satellite.
Product: Red Hat Satellite Reporter: raju kumar <rajukuma>
Component: RegistrationAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Stephen Wadeley <swadeley>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.9.0CC: lstejska
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-05 13:25:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description raju kumar 2021-02-03 18:57:48 UTC
Description of problem:
Getting below error while registering a client to satellite using the global registration method even though the client is getting registered properly on satellite.

~~~
ERROR: Validation failed: Name can't be blank, Name hostname can contain only lowercase letters, numbers, dashes and dots according to RFC921, RFC952 and RFC1123
~~~

Version-Release number of selected component (if applicable):

Satellite 6.9.0

How reproducible:
100%

Steps to Reproduce:
1.Generate curl command using Global registration method and execute it on the client system to register it. Client gets registered to the satellite and reflects on the WebUI as well, however we get below error during the registration:

~~~
[root@rajukuma-rhel7 ~]# curl -X GET "https://rajukuma-rhsat.syslab.pnq2.redhat.com:9090/register?activation_key=Global-Key&location_id=2&operatingsystem_id=1&organization_id=1&setup_insights=false&setup_remote_execution=false" -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjo0LCJpYXQiOjE2MTIzNzc0NTgsImp0aSI6ImI1OWE4MjAxMzUyMmU0ODJkNDkzZGQ4NzAzMzNmZTM3NzkzNTdkMmQ5MDIzOTQ0YWZjNGY1MDA2N2E0Zjc0YTYiLCJleHAiOjE2MTIzOTE4NTh9.JeAbsKHQSPkkPHqupFuvTxo81_GvoPwj3AMv3syTb5w' | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 10544  100 10544    0     0  46307      0 --:--:-- --:--:-- --:--:-- 46449
#
# Running registration
#
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  8612  100  8612    0     0  1411k      0 --:--:-- --:--:-- --:--:-- 1682k
Loaded plugins: product-id, search-disabled-repos, subscription-manager

This system is not registered with an entitlement server. You can use subscription-manager to register.

Examining /tmp/tmp.TrtmpJySvg.rpm: katello-ca-consumer-rajukuma-rhsat.syslab.pnq2.redhat.com-1.0-1.noarch
/tmp/tmp.TrtmpJySvg.rpm: does not update installed package.
Nothing to do
The system has been registered with ID: c327ddb0-f733-4aca-95e9-61f0bdc81981
The registered system name is: rajukuma-rhel7
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux Server
Status:       Subscribed

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   270  100   177  100    93    876    460 --:--:-- --:--:-- --:--:--   880
ERROR: Validation failed: Name can't be blank, Name hostname can contain only lowercase letters, numbers, dashes and dots according to RFC921, RFC952 and RFC1123

~~~

Actual results: 



Expected results: Since registration is getting completed successfully, this error message should not be reflected.

Comment 1 Leos Stejskal 2021-02-05 13:25:52 UTC

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