Unable to register to Red Hat Satellite from a RHEL 8.10 image with python 3.6
hi,
I am trying to register a RHEL 8.10 host with python3 to RedHat Satellite Server - below are the server details
Server hostname:
hostname = subscription.rhsm.redhat.com
Server prefix:
prefix = /subscription
Server port:
port = 443
I have added http proxy server details as well in /etc/rhsm/rhsm.conf file.
I am getting the below error-
2024-07-19 17:46:12,930 [ERROR] subscription-manager:16707:MainThread @utils.py:337 - Error while checking server version: [Errno -2] Name or service not known
2024-07-19 17:46:12,930 [ERROR] subscription-manager:16707:MainThread @utils.py:339 - [Errno -2] Name or service not known
Traceback (most recent call last):
File "/usr/lib64/python3.6/site-packages/subscription_manager/utils.py", line 316, in get_server_versions
supported_resources = get_supported_resources(uep=cp)
File "/usr/lib64/python3.6/site-packages/subscription_manager/utils.py", line 222, in get_supported_resources
return uep.get_supported_resources()
File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 1106, in get_supported_resources
self._load_supported_resources()
File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 1094, in _load_supported_resources
resources_list = self.conn.request_get("/")
File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 1013, in request_get
return self._request("GET", method, headers=headers, cert_key_pairs=cert_key_pairs)
File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 1046, in _request
info=info, headers=headers, cert_key_pairs=cert_key_pairs)
File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 822, in _request
conn.request(request_type, handler, body=body, headers=final_headers)
File "/usr/lib64/python3.6/http/client.py", line 1273, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib64/python3.6/http/client.py", line 1319, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.6/http/client.py", line 1268, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.6/http/client.py", line 1044, in _send_output
self.send(msg)
File "/usr/lib64/python3.6/http/client.py", line 982, in send
self.connect()
File "/usr/lib64/python3.6/http/client.py", line 1433, in connect
super().connect()
File "/usr/lib64/python3.6/http/client.py", line 954, in connect
(self.host,self.port), self.timeout, self.source_address)
File "/usr/lib64/python3.6/socket.py", line 704, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
File "/usr/lib64/python3.6/socket.py", line 745, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known
2024-07-19 17:46:13,644 [ERROR] subscription-manager:16711:MainThread @utils.py:337 - Error while checking server version: [Errno -2] Name or service not known
2024-07-19 17:46:13,644 [ERROR] subscription-manager:16711:MainThread @utils.py:339 - [Errno -2] Name or service not known
Traceback (most recent call last):
Could you please help?
Thanks in advance