Actions
Issue #7864
closedProxy settings not passed to Bandersnatch when syncing PyPi
Start date:
11/19/2020
Due date:
Estimated time:
Severity:
2. Medium
Version - Python:
Platform Release:
3.0.0
Target Release - Python:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:
Description
When setting up a remote with a proxy, the settings are not being passed to Bandersnatch. When syncing there are errors in journalctl like:
Connection timeout to host https://pypi.org/pypi
Updated by ByteSore about 4 years ago
gerrod> hey ByteSore, I'm looking into your issue https://pulp.plan.io/issues/7864, and I was wondering if you have HTTP_PROXY or HTTPS_PROXY environment variables set to anything?
- Yes, I did try with those environment vars. Also the all_proxy. But none of these worked out.
I've changed file site-packages/bandersnatch/master.py:81 to:
socks_connector = ProxyConnector.from_url("<proxy_url">)
Which bypasses self._check_for_socks_proxy()
Added by gerrod about 4 years ago
Updated by gerrod about 4 years ago
- Status changed from NEW to MODIFIED
Applied in changeset 4bb8201791309daf51407535b717085fee91c791.
Actions
Pulp Python now passes proxy settings to Bandersnatch when syncing
fixes: #7864 https://pulp.plan.io/issues/7864