Register fails with "unexpected message"

Latest response

I try to register a RHEL 7.3 VM. What I've done:

subscription-manager remove --all
subscription-manager unregister
subscription-manager clean
yum clean all
rm -rf /var/cache/yum/*
subscription-manager register

The file /var/log/rhsm/rhsm.log shows:
2020-05-07 13:59:39,869 [INFO] subscription-manager:31183:MainThread @managercli.py:384 - Client Versions: {'python-rhsm': '1.17.9-1.el7', 'subscription-manager': '1.17.15-1.el7'}
2020-05-07 13:59:39,870 [INFO] subscription-manager:31183:MainThread @connection.py:830 - Connection built: host=subscription.rhsm.redhat.com port=443 handler=/subscription auth=identity_cert ca_dir=/etc/rhsm/ca/ verify=True
2020-05-07 13:59:39,870 [INFO] subscription-manager:31183:MainThread @connection.py:830 - Connection built: host=subscription.rhsm.redhat.com port=443 handler=/subscription auth=none
2020-05-07 13:59:39,871 [INFO] subscription-manager:31183:MainThread @managercli.py:384 - Client Versions: {'python-rhsm': '1.17.9-1.el7', 'subscription-manager': '1.17.15-1.el7'}
2020-05-07 13:59:39,884 [INFO] subscription-manager:31183:MainThread @managercli.py:359 - Consumer Identity name=None uuid=None
2020-05-07 13:59:39,888 [INFO] subscription-manager:31183:MainThread @managercli.py:359 - Consumer Identity name=None uuid=None
2020-05-07 13:59:56,827 [INFO] subscription-manager:31183:MainThread @connection.py:830 - Connection built: host=subscription.rhsm.redhat.com port=443 handler=/subscription auth=basic username=
2020-05-07 13:59:57,098 [INFO] subscription-manager:31183:MainThread @hwprobe.py:916 - collected virt facts: virt.is_guest=True, virt.host_type=vmware, virt.uuid=
2020-05-07 13:59:57,446 [ERROR] subscription-manager:31183:MainThread @managercli.py:174 - Error during registration: unexpected message
2020-05-07 13:59:57,446 [ERROR] subscription-manager:31183:MainThread @managercli.py:175 - unexpected message
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/subscription_manager/managercli.py", line 1126, in _do_command
owner_key = self._determine_owner_key(admin_cp)
File "/usr/lib/python2.7/site-packages/subscription_manager/managercli.py", line 1271, in _determine_owner_key
owners = cp.getOwnerList(self.username)
File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 1126, in getOwnerList
return self.conn.request_get(method)
File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 694, in request_get
return self._request("GET", method)
File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 584, in _request
conn.request(request_type, handler, body=body, headers=headers)
File "/usr/lib64/python2.7/httplib.py", line 1017, in request
self._send_request(method, url, body, headers)
File "/usr/lib64/python2.7/httplib.py", line 1051, in _send_request
self.endheaders(body)
File "/usr/lib64/python2.7/httplib.py", line 1013, in endheaders
self._send_output(message_body)
File "/usr/lib64/python2.7/httplib.py", line 864, in _send_output
self.send(msg)
File "/usr/lib64/python2.7/httplib.py", line 826, in send
self.connect()
File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 250, in connect
sock.connect((self.host, self.port))
File "/usr/lib64/python2.7/site-packages/M2Crypto/SSL/Connection.py", line 185, in connect
ret = self.connect_ssl()
File "/usr/lib64/python2.7/site-packages/M2Crypto/SSL/Connection.py", line 178, in connect_ssl
return m2.ssl_connect(self.ssl, self._timeout)
SSLError: unexpected message

What's wrong, what should I do?

Regards
Burkhard Schultheis

Responses