Bug 1920231

Summary: Global Registration: Registering client to capsule shows "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" .
Product: Red Hat Satellite Reporter: soham <smajumda>
Component: RegistrationAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Stephen Wadeley <swadeley>
Severity: high Docs Contact:
Priority: high    
Version: 6.9.0CC: ahumbe, dhjoshi, egolov, lstejska, rajukuma
Target Milestone: 6.9.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: foreman-2.3.1.5-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-12 09:03:24 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 soham 2021-01-25 20:59:15 UTC
Description of problem:
Registering client to capsule with global registration template shows "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" .

Though the client registers fine but it throws this error message.

This message is not thrown when registered to satellite with the global registration template or with the capsule using subscription-manager register command.

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


How reproducible:

Always


Steps to Reproduce:
1. Pick a client like vm249-175.gsslab.pnq2.redhat.com or vm253-200.gsslab.pnq2.redhat.com

2. Register it with the capsule server using global registration template.

3.

Actual results:
The system has been registered with ID: 6dacbe98-b794-4722-891e-cec36a69dc88
The registered system name is: vm253-200.gsslab.pnq2.redhat.com
Installed Product Current Status:
Product Name: Red Hat Software Collections (for RHEL Server)
Status:       Subscribed

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   241  100   177  100    64    696    251 --:--:-- --:--:-- --:--:--   696
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



Expected results: The below message should not show up.

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


Additional info:

Comment 1 Leos Stejskal 2021-02-05 13:03:06 UTC
*** Bug 1924229 has been marked as a duplicate of this bug. ***

Comment 2 Leos Stejskal 2021-02-05 13:25:52 UTC
*** Bug 1924863 has been marked as a duplicate of this bug. ***

Comment 3 Leos Stejskal 2021-02-05 15:46:47 UTC
Hi,
I'm trying to reproduce the issue, but on latest snap (12) registration through proxy works fine.

My pkg versions: foreman-2.3.1.5-1.el7sat.noarch & foreman-proxy-2.3.1-1.el7sat.noarch

My guess is that problem could be in global registration template, there were some changes to this issue,
can you check that you using default (latest) version of the template?

If you can still reproduce the issue, please attach:
- application log 
- smart proxy log
- global registration template content

Thank you!

Comment 4 soham 2021-02-05 18:17:04 UTC
Hello Leos,

My pkg versions were:
foreman-2.3.1.2-1.el7sat.noarch and foreman-proxy-2.3.1-1.el7sat.noarch . Its probably fixed in foreman-2.3.1.5-1.el7sat.noarch since you tested it out already.

- Soham Majumdar

Comment 5 Peter Ondrejka 2021-02-11 14:44:32 UTC
Probably a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1900694

Comment 6 Leos Stejskal 2021-02-12 09:03:24 UTC

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