Bug 1021669 - Pulp http proxy with authentication seems broken
Pulp http proxy with authentication seems broken
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Content Management (Show other bugs)
Unspecified Unspecified
unspecified Severity high (vote)
: Unspecified
: --
Assigned To: Mike McCune
Corey Welton
: Triaged
Depends On: 1021662 1022662
Blocks: 950743
  Show dependency treegraph
Reported: 2013-10-21 14:41 EDT by Mike McCune
Modified: 2014-09-11 08:19 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1021662
Last Closed: 2014-09-11 08:19:46 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Mike McCune 2013-10-21 14:41:18 EDT
+++ This bug was initially created as a clone of Bug #1021662 +++

Description of problem:

Attempting to configure pulp using the global auth file for yum content:


With either:

    "num_threads" : 4,
    "proxy_host" : "",
    "proxy_username": "admin",
    "proxy_password": "redhat",
    "proxy_port" : 8888


    "num_threads" : 4,
    "proxy_host" : "http://admin:redhat@",
    "proxy_port" : 8888


    "num_threads" : 4,
    "proxy_host" : "http://admin:redhat@",
    "proxy_port" : 8888

Does not seem to work. In most cases I get:

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/pulp_rpm/plugins/importers/yum/sync.py"
, line 109, in run
    metadata_files = self.get_metadata()
  File "/usr/lib/python2.6/site-packages/pulp_rpm/plugins/importers/yum/sync.py"
, line 194, in get_metadata
    raise FailedException(str(e))
FailedException: Proxy Authentication Required

According to my squid log, pulp isn't sending the auth user name

1382375504.460      0 TCP_DENIED/407 3969 GET http://lzap.fedorapeople.org/fakerepos/zoo5/repodata/repomd.xml - NONE/- text/html

whereas with curl (passing an incorrect password), i see:

1382375255.594      0 TCP_DENIED/407 4105 GET http://lzap.fedorapeople.org/fakerepos/zoo5/repodata/repomd.xml admin NONE/- text/html

Note 'admin' (the user) is missing when pulp tries to access it.

Note that it works fine using curl with the correct password.  

curl -X GET http://google.com/  --proxy http://admin:redhat@

It very well could be my proxy configuration, however I would expect it to work with basic or digest auth. 

If it 'works', it would be great to get some instructions for setting up a proxy requiring authentication that works with pulp.
Comment 1 RHEL Product and Program Management 2013-10-21 14:44:53 EDT
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.
Comment 3 Mike McCune 2013-10-23 16:22:24 EDT
pulp bug is MODIFIED, reflecting accordingly
Comment 6 Corey Welton 2014-08-20 11:37:29 EDT
Verified in Satellite-6.0.4-RHEL-6-20140813.2, against both auth and non-auth'd squid proxies.
Comment 7 Bryan Kearney 2014-09-11 08:19:46 EDT
This was delivered with Satellite 6.0 which was released on 10 September 2014.

Note You need to log in before you can comment on or make changes to this bug.