Bug 1830084
Summary: | Network error, unable to connect to server. / ConnectionRefusedError: [Errno 111] Connection refused | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | John Sefler <jsefler> |
Component: | subscription-manager | Assignee: | candlepin-bugs |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Red Hat subscription-manager QE Team <rhsm-qe> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | --- | CC: | peasters, redakkan |
Target Milestone: | rc | ||
Target Release: | 8.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-12-15 09:16:35 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
John Sefler
2020-04-30 19:43:36 UTC
And here is another example that just occurred while I was removing repo overrides... # subscription-manager repo-override --remove-all Traceback (most recent call last): File "/usr/lib64/python3.6/site-packages/subscription_manager/entcertlib.py", line 119, in perform expected = self._get_expected_serials() File "/usr/lib64/python3.6/site-packages/subscription_manager/entcertlib.py", line 292, in _get_expected_serials exp = self.get_certificate_serials_list() File "/usr/lib64/python3.6/site-packages/subscription_manager/entcertlib.py", line 272, in get_certificate_serials_list reply = self.uep.getCertificateSerials(identity.uuid) File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 1301, in getCertificateSerials return self.conn.request_get(method) File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 726, in request_get return self._request("GET", method, headers=headers) File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 752, in _request info=info, headers=headers) File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 583, in _request conn.request(request_type, handler, body=body, headers=final_headers) File "/usr/lib64/python3.6/http/client.py", line 1254, in request self._send_request(method, url, body, headers, encode_chunked) File "/usr/lib64/python3.6/http/client.py", line 1300, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/usr/lib64/python3.6/http/client.py", line 1249, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/lib64/python3.6/http/client.py", line 1036, in _send_output self.send(msg) File "/usr/lib64/python3.6/http/client.py", line 974, in send self.connect() File "/usr/lib64/python3.6/http/client.py", line 1414, in connect super().connect() File "/usr/lib64/python3.6/http/client.py", line 946, in connect (self.host,self.port), self.timeout, self.source_address) File "/usr/lib64/python3.6/socket.py", line 724, in create_connection raise err File "/usr/lib64/python3.6/socket.py", line 713, in create_connection sock.connect(sa) ConnectionRefusedError: [Errno 111] Connection refused During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/sbin/subscription-manager", line 11, in <module> load_entry_point('subscription-manager==1.26.16', 'console_scripts', 'subscription-manager')() File "/usr/lib64/python3.6/site-packages/subscription_manager/scripts/subscription_manager.py", line 87, in main return managercli.ManagerCLI().main() File "/usr/lib64/python3.6/site-packages/subscription_manager/managercli.py", line 2996, in main ret = CLI.main(self) File "/usr/lib64/python3.6/site-packages/subscription_manager/cli.py", line 183, in main return cmd.main() File "/usr/lib64/python3.6/site-packages/subscription_manager/managercli.py", line 536, in main return_code = self._do_command() File "/usr/lib64/python3.6/site-packages/subscription_manager/managercli.py", line 2812, in _do_command self.entcertlib.update() File "/usr/lib64/python3.6/site-packages/subscription_manager/certlib.py", line 32, in update self.report = self.locker.run(self._do_update) File "/usr/lib64/python3.6/site-packages/subscription_manager/certlib.py", line 18, in run return action() File "/usr/lib64/python3.6/site-packages/subscription_manager/entcertlib.py", line 42, in _do_update return action.perform() File "/usr/lib64/python3.6/site-packages/subscription_manager/entcertlib.py", line 123, in perform raise Disconnected() subscription_manager.entcertlib.Disconnected The ConnectionRefusedError can happen at anytime regardless of my individual system's load on the Red Hat entitlement servers. My understanding is that the issue is caused by a recently applied GLOBAL connection load limit applied at the load balancer layer. During bursts of high incoming connection requests, the load balancer appears to refuse connections making subscription-manager fail. The only choice I have as a subscription-manager user is to... try again. The global rate limits causing the connection refused errors has been removed. Can you confirm if this is still happening? Moving this to VERIFIED. Automated tests are no longer encountering the ConnectionRefusedError. Final comment... There was no code change to component subscription-manager. This issue was introduced by IT infrastructure and addressed by IT infrastructure. |