Project

General

Profile

Actions

Bug #27251

closed

subscription-manager fails: HTTP error (422 - Unknown): Please unregister or remove hosts which match this host before registering: <hostname>

Added by Jeff Kalchik over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Foreman: 1.22.0
Katello: 3.12.0

While I've been working towards migrating from Spacewalk/RHSat5, I've been rebuilding hosts left & right. I've been making changes to the host records in TFM/Katello, triggering a host build, downloading a boot ISO, and rebuilding in place. The redhat-register provisioning template has been able to re-register and connect the host record.

Now, I'm finding that this registration is failing. Adding a --force option doesn't seem to make a difference:

root@<host> ~]# subscription-manager register --force --name="<FQhostname>" --org='Organization' --activationkey='dev-centos7,dev-mondorescue-el7'
HTTP error (422 - Unknown): Please unregister or remove hosts which match this host before registering: <FQhostname>
[root@<hostname> ~]# subscription-manager unregister
This system is currently not registered.
[root@<hostname> ~]# subscription-manager register --force --name="<FQhostname>" --org='Land_O_Lakes' --activationkey='dev-centos7,dev-mondorescue-el7'
HTTP error (422 - Unknown): Please unregister or remove hosts which match this host before registering: <FQhostname>

jturel suggested running "hammer host subscription unregister host <FQhostname>" on the TFM/Katello host prior to the rebuild. This work-around now lets me successfully register the host in place.

What other data or logs can I supply? /var/log/rhsm/* doesn't seem to supply much detail beyond the above.

Actions #1

Updated by Jonathon Turel over 4 years ago

  • Target version set to Katello 3.12.2
  • Triaged changed from No to Yes
Actions #2

Updated by Jonathon Turel over 4 years ago

  • Bugzilla link set to 1730146
Actions #3

Updated by Jonathon Turel over 4 years ago

  • Assignee set to Jonathon Turel
Actions #4

Updated by The Foreman Bot over 4 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/8232 added
Actions #5

Updated by The Foreman Bot over 4 years ago

  • Fixed in Releases Katello 3.14.0 added
Actions #6

Updated by Jonathon Turel over 4 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF