Host registration fails with error RestlibException: HTTP error (422 - Unknown): Please unregister or remove hosts which match this host before registering

Solution In Progress - Updated -

Issue

  • Host registration fails with following error:
2019-03-24 09:08:17,179 [ERROR] subscription-manager:35863:MainThread @managercli.py:1122 - HTTP error (422 - Unknown): Please unregister or remove hosts which match this host before regist
ering: server.example.com
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/subscription_manager/managercli.py", line 1119, in _do_command
    type=self.options.consumertype
  File "/usr/lib64/python2.7/site-packages/rhsmlib/services/register.py", line 80, in register
    type=type
  File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 969, in registerConsumer
    return self.conn.request_post(url, params)
  File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 696, in request_post
    return self._request("POST", method, params, headers=headers)
  File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 719, in _request
    info=info, headers=headers)
  File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 597, in _request
    self.validateResponse(result, request_type, handler)
  File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 656, in validateResponse
    raise RestlibException(response['status'], error_msg, response.get('headers'))
RestlibException: HTTP error (422 - Unknown): Please unregister or remove hosts which match this host before registering: server.example.com
2019-03-24 09:10:46,579 [INFO] yum:36523:MainThread @connection.py:871 - Connection built: host=satellite.example.com port=443 handler=/rhsm auth=identity_cert ca_dir=/etc/rhsm/ca/ ins
ecure=False

Environment

  • Red Hat Satellite 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content