Issue #7321

Updated by ppicka over 3 years ago

I had set up pulpcore and pulp_rpm and had working repos that I had synced successfully. 

 It stopped working when I upgraded pulp_core from v3.4.2 to v3.5.0. 

 Interestingly the error message does not mention the remote url the way it is in the remote object. 
 E.g. for this remote: 
   "pulp_href": "/pulp/api/v3/remotes/rpm/rpm/dcebc720-cec0-440d-8327-605ebefef778/", 
   "pulp_created": "2020-08-14T19:30:59.442292Z", 
   "name": "test", 
   "url": "", 
   "ca_cert": null, 
   "client_cert": null, 
   "client_key": null, 
   "tls_validation": true, 
   "proxy_url": http://<my own proxy>, 
   "username": null, 
   "password": null, 
   "pulp_last_updated": "2020-08-14T19:30:59.442315Z", 
   "download_concurrency": 20, 
   "policy": "immediate", 
   "sles_auth_token": null 
 Aug 14 21:49:42 chsss039 rq[303140]: aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host ssl:default [Connect call failed ('', 443)] 
 Aug 14 21:49:42 chsss039 rq[303140]: Traceback (most recent call last): 
 File "/var/lib/pulp/pulpvenv/lib64/python3.6/site-packages/aiohttp/", line 936, in _wrap_create_connection 
   return await self._loop.create_connection(*args, **kwargs)    # type: ignore    # noqa 
 File "/usr/lib64/python3.6/asyncio/", line 794, in create_connection 
   raise exceptions[0] 
 File "/usr/lib64/python3.6/asyncio/", line 781, in create_connection 
   yield from self.sock_connect(sock, address) 
 File "/usr/lib64/python3.6/asyncio/", line 439, in sock_connect 
   return (yield from fut) 
 File "/usr/lib64/python3.6/asyncio/", line 469, in _sock_connect_cb 
   raise OSError(err, 'Connect call failed %s' % (address,)) 
 Aug 14 21:49:42 chsss039 rq[303140]: TimeoutError: [Errno 110] Connect call failed ('', 443) 
 Aug 14 21:49:42 chsss039 rq[303140]: The above exception was the direct cause of the following exception: 
 Aug 14 21:49:42 chsss039 rq[303140]: Traceback (most recent call last): 
 File "/var/lib/pulp/pulpvenv/lib64/python3.6/site-packages/rq/", line 886, in perform_job 
   rv = job.perform() 
 File "/var/lib/pulp/pulpvenv/lib64/python3.6/site-packages/rq/", line 664, in perform 
   self._result = self._execute() 
 File "/var/lib/pulp/pulpvenv/lib64/python3.6/site-packages/rq/", line 670, in _execute 
   return self.func(*self.args, **self.kwargs) 
 File "/var/lib/pulp/pulpvenv/lib64/python3.6/site-packages/pulp_rpm/app/tasks/", line 211, in synchronize 
   remote_url = fetch_remote_url(remote) 
 File "/var/lib/pulp/pulpvenv/lib64/python3.6/site-packages/pulp_rpm/app/tasks/", line 136, in fetch_remote_url 
 File "/var/lib/pulp/pulpvenv/lib64/python3.6/site-packages/pulpcore/download/", line 160, in fetch 
   return done.pop().result() 
 File "/var/lib/pulp/pulpvenv/lib64/python3.6/site-packages/pulpcore/download/", line 227, in run 
   return await self._run(extra_data=extra_data) 
 File "/var/lib/pulp/pulpvenv/lib64/python3.6/site-packages/pulp_rpm/app/", line 41, in _run 
   async with self.session.get(url) as response: 
 File "/var/lib/pulp/pulpvenv/lib64/python3.6/site-packages/aiohttp/", line 1012, in __aenter__ 
   self._resp = await self._coro 
 File "/var/lib/pulp/pulpvenv/lib64/python3.6/site-packages/aiohttp/", line 483, in _request 
 File "/var/lib/pulp/pulpvenv/lib64/python3.6/site-packages/aiohttp/", line 523, in connect 
   proto = await self._create_connection(req, traces, timeout) 
 File "/var/lib/pulp/pulpvenv/lib64/python3.6/site-packages/aiohttp/", line 859, in _create_connection 
   req, traces, timeout) 
 File "/var/lib/pulp/pulpvenv/lib64/python3.6/site-packages/aiohttp/", line 1004, in _create_direct_connection 
   raise last_exc 
 File "/var/lib/pulp/pulpvenv/lib64/python3.6/site-packages/aiohttp/", line 986, in _create_direct_connection 
   req=req, client_error=client_error) 
 File "/var/lib/pulp/pulpvenv/lib64/python3.6/site-packages/aiohttp/", line 943, in _wrap_create_connection 
   raise client_error(req.connection_key, exc) from exc 


 It seems to be related to the proxy settings. When I try to synchronize I cannot see the traffic on the proxy server. 

 How to reproduce: 

 - On server where pulp is running block outgoing connection (e.g. ip of repo) to repository.  
 - Try to sync remote with proxy_url