Katello - 422 error register vm

Hi, we have a problem when we trying to register another vm. The message is:
HTTP error (422 - Unknown): Please unregister or remove hosts which match this host before registering: [machineHostname]

This machine Hostname it’s a machine name that have to be in our foreman. We think this ocurrs because we had used the same vm template, but the hostname has changed and we changed the machine-id too on the vm we have tried to register.

How can we solved this?

Foreman and Katello versions:
1.22.2, 1.0.1


Hi @victormr

Looks like you may be coming across this bug which was fixed in Katello 3.14.0. I’d recommend upgrading to the latest Foreman & Katello.