Problem: I’m trying to register an RHEL7 machine to our Foreman Katello Server. Which is on the same network. While registering via subscription manager i get the below error message.
#subscription-manager register --org=“Orgname” --activationkey=“RHEL 7”
HTTP error (422 - Unknown): Validation failed: Name must match regex /^[a-zA-Z0-9-_]+$/
Expected outcome: It should register to the Foreman server. but it throws error. only on this particular server i have issue, rest all other RHEL 7 servers are registering without any issues.
Foreman and Proxy versions: Version 1.22.0 (this is not a proxy server)
Foreman and Proxy plugin versions: Version 1.22.0 (this is not a proxy server)
Other relevant data:
[e.g. logs from Foreman and/or the Proxy, modified templates, commands issued, etc]
(for logs, surround with three back-ticks to get proper formatting, e.g.)