Project

Profile

Help

Issue #7864

closed

Proxy settings not passed to Bandersnatch when syncing PyPi

Added by ByteSore about 4 years ago. Updated almost 4 years 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
Actions #1

Updated by dalley about 4 years ago

  • Project changed from Pulp to Python Support
Actions #2

Updated by dalley about 4 years ago

  • Triaged changed from No to Yes
Actions #3

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 almost 4 years ago

Revision 4bb82017 | View on GitHub

Pulp Python now passes proxy settings to Bandersnatch when syncing

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

Actions #4

Updated by gerrod almost 4 years ago

  • Status changed from NEW to MODIFIED
Actions #5

Updated by dalley almost 4 years ago

  • Sprint/Milestone set to 3.0 GA
Actions #6

Updated by dalley almost 4 years ago

  • Platform Release set to 3.0.0

Also available in: Atom PDF