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.)
Pretty sure @aswath2saru has that plugin installed.
I don’t think that is a katello default plugin. Also, it is not 4 years old, but instead the last commit as well as the last (and only) version was August 2018.
If you want that functionality, you could probably install the plugin, but it does look somewhat unmaintained (maybe due to the fact it did not need updates in that last year). Maybe @TimoGoebel can answer whether it is abandonware or just did not need updates?
Still… if I am looking at the README right, it’s entire purpose is to use a regex to validate hostnames. If @aswath2saru has removed the regex completely, then the plugin doesn’t provide any [immediate] value.