Translated message

A translation of this page exists in English.

Red Hat Satellite 5 を RHN から RHSM に移行できない

Solution Verified - Updated -

Issue

# rhn-migrate-classic-to-rhsm
[...]
Retrieving existing legacy subscription information...

+-----------------------------------------------------+
System is currently subscribed to these legacy channels:
+-----------------------------------------------------+
rhel-x86_64-server-6
rhn-tools-rhel-x86_64-server-6
redhat-rhn-satellite-5.7-server-x86_64-6

+-----------------------------------------------------+
Installing product certificates for these legacy channels:
+-----------------------------------------------------+
rhel-x86_64-server-6
rhn-tools-rhel-x86_64-server-6
redhat-rhn-satellite-5.7-server-x86_64-6


Product certificates installed successfully to /etc/pki/product.

Preparing to unregister system from legacy server...
System successfully unregistered from legacy server.
Stopping and disabling legacy services...

Attempting to register system to destination server...
Registering to: subscription.rhsm.redhat.com:443/subscription
Remote server error.Please check the connection details, or see /var/log/rhsm/rhsm.log for more information.

Unable to register.
For further assistance, please contact Red Hat Global Support Services.

以下は、/var/log/rhsm/rhsm.log のエントリーです。

2017-03-26 19:52:29,927 [INFO] subscription-manager:21465:MainThread @managercli.py:389 - Client Versions:{'python-rhsm':'1.18.6-1.el6', 'subscription-manager':'1.18.10-1.el6'}
2017-03-26 19:52:29,928 [INFO] subscription-manager:21465:MainThread @connection.py:758 - Connection built: host=subscription.rhsm.redhat.com port=443 handler=/subscription auth=identity_cert ca_dir=/etc/rhsm/ca/ insecure=False
2017-03-26 19:52:29,928 [INFO] subscription-manager:21465:MainThread @connection.py:758 - Connection built: host=subscription.rhsm.redhat.com port=443 handler=/subscription auth=none
2017-03-26 19:52:29,929 [INFO] subscription-manager:21465:MainThread @managercli.py:389 - Client Versions:{'python-rhsm':'1.18.6-1.el6', 'subscription-manager':'1.18.10-1.el6'}
2017-03-26 19:52:29,945 [INFO] subscription-manager:21465:MainThread @managercli.py:364 - Consumer Identity name=None uuid=None
2017-03-26 19:52:29,950 [INFO] subscription-manager:21465:MainThread @managercli.py:364 - Consumer Identity name=None uuid=None
2017-03-26 19:52:29,951 [INFO] subscription-manager:21465:MainThread @connection.py:758 - Connection built: host=subscription.rhsm.redhat.com port=443 handler=/subscription auth=basic username=user
2017-03-26 19:52:30,797 [INFO] subscription-manager:21465:MainThread @hwprobe.py:918 - collected virt facts: virt.is_guest=True, virt.host_type=vmware, virt.uuid=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx
2017-03-26 19:52:30,799 [INFO] subscription-manager:21465:MainThread @facts.py:139 - Loading custom facts from:/etc/rhsm/facts/migration.facts
2017-03-26 19:52:32,413 [INFO] subscription-manager:21465:MainThread @connection.py:525 - Response: status=200, request="GET /subscription/"
2017-03-26 19:52:34,310 [INFO] subscription-manager:21465:MainThread @connection.py:525 - Response: status=404, request="POST /subscription/consumers?owner=xxxx"
2017-03-26 19:52:34,311 [ERROR] subscription-manager:21465:MainThread @connection.py:554 - Response:404
2017-03-26 19:52:34,312 [ERROR] subscription-manager:21465:MainThread @connection.py:555 - JSON parsing error:No JSON object could be decoded
2017-03-26 19:52:34,313 [ERROR] subscription-manager:21465:MainThread @managercli.py:177 - Error during registration:Server error attempting a POST to /subscription/consumers?owner=6074387 returned status 404
2017-03-26 19:52:34,313 [ERROR] subscription-manager:21465:MainThread @managercli.py:178 - Server error attempting a POST to /subscription/consumers?owner=6074387 returned status 404
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/subscription_manager/managercli.py", line 1149, in _do_command
    content_tags=self.installed_mgr.tags)
  File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 856, in registerConsumer
    return self.conn.request_post(url, params)
  File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 626, in request_post
    return self._request("POST", method, params)
  File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 534, in _request
    self.validateResponse(result, request_type, handler)
  File "/usr/lib64/python2.6/site-packages/rhsm/connection.py", line 593, in validateResponse
    handler=handler)
RemoteServerException:Server error attempting a POST to /subscription/consumers?owner=xxxxx returned status 404
  • 移行に失敗すると、移行スクリプトを再実行することができません。
# rhn-migrate-classic-to-rhsm
Could not read legacy system id at /etc/sysconfig/rhn/systemid
  • 移行に失敗し、/var/log/rhsm/rhsm.log ファイルに ssl エラーが出力されます。
2017-03-24 19:37:47,782 [ERROR] rhn-migrate-classic-to-rhsm @migrate.py:367 - Traceback (most recent call last):
  File "/usr/share/rhsm/subscription_manager/migrate/migrate.py", line 364, in connect_to_rhn
    sk = sc.auth.login(credentials.username, credentials.password)
  File "/usr/lib/python2.4/site-packages/rhn/rpclib.py", line 654, in __call__
    return self._send(self._name, args)
  File "/usr/lib/python2.4/site-packages/rhn/rpclib.py", line 386, in _request
    self._handler, request, verbose=self._verbose)
  File "/usr/lib/python2.4/site-packages/rhn/transports.py", line 175, in request
    headers, fd = req.send_http(host, handler)
  File "/usr/lib/python2.4/site-packages/rhn/transports.py", line 727, in send_http
    headers=self.headers)
  File "/usr/lib64/python2.4/httplib.py", line 810, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib64/python2.4/httplib.py", line 833, in _send_request
    self.endheaders()
  File "/usr/lib64/python2.4/httplib.py", line 804, in endheaders
    self._send_output()
  File "/usr/lib64/python2.4/httplib.py", line 685, in _send_output
    self.send(msg)
  File "/usr/lib64/python2.4/httplib.py", line 664, in send
    self.sock.sendall(str)
  File "/usr/lib/python2.4/site-packages/rhn/SSL.py", line 217, in write
    sent = self._connection.send(data)
Error:[('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')]
  • RHN から RHSM に手動で移行すると、satellite-sync が失敗し、以下のエラーが出力されます。
# satellite-sync -l
21:50:08 Red Hat Satellite - live synchronization
21:50:08    url: https://satellite.rhn.redhat.com
21:50:08    debug/output level:1
21:50:09
21:50:09
ERROR: there was a problem synchronizing the information.
       Error message:
Error Message:
    Service not enabled for system profile:"satellite.example.com"
Error Class Code:31
Error Class Info:
     This system does not have a valid entitlement for Red Hat Network.
     Please visit https://rhn.redhat.com/rhn/systems/SystemEntitlements.do
     or login at https://rhn.redhat.com, and from the "Your RHN" tab,
     select "Subscription Management" to enable RHN service for this system.
Explanation:
     An error has occurred while processing your request.If this problem
     persists please enter a bug report at bugzilla.redhat.com.
     If you choose to submit the bug report, please be sure to include
     details of what you were trying to do when this error occurred and
     details on how to reproduce this problem.

Environment

  • Red Hat Satellite 5.6 または 5.7

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