Project

Profile

Help

Issue #7864

Proxy settings not passed to Bandersnatch when syncing PyPi

Added by ByteSore 7 months ago. Updated 5 months ago.

Status:
MODIFIED
Priority:
Normal
Assignee:
-
Sprint/Milestone:
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

Associated revisions

Revision 4bb82017 View on GitHub
Added by gerrod 7 months ago

Pulp Python now passes proxy settings to Bandersnatch when syncing

fixes: #7864 https://pulp.plan.io/issues/7864

History

#1 Updated by dalley 7 months ago

  • Project changed from Pulp to Python Support

#2 Updated by dalley 7 months ago

  • Triaged changed from No to Yes

#3 Updated by ByteSore 7 months 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()

#4 Updated by gerrod 7 months ago

  • Status changed from NEW to MODIFIED

#5 Updated by dalley 5 months ago

  • Sprint/Milestone set to 3.0 GA

#6 Updated by dalley 5 months ago

  • Platform Release set to 3.0.0

Also available in: Atom PDF