Bug 1021662
Summary: | Pulp http proxy with authentication seems broken | |||
---|---|---|---|---|
Product: | [Retired] Pulp | Reporter: | Justin Sherrill <jsherril> | |
Component: | rpm-support | Assignee: | Sayli Karmarkar <skarmark> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> | |
Severity: | high | Docs Contact: | ||
Priority: | unspecified | |||
Version: | Master | CC: | cperry, pthomas, skarmark | |
Target Milestone: | --- | Keywords: | Triaged | |
Target Release: | 2.3.0 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1021669 1022662 (view as bug list) | Environment: | ||
Last Closed: | 2013-12-09 14:30:57 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 950743, 1017348, 1021669, 1022662 |
Description
Justin Sherrill
2013-10-21 18:19:10 UTC
This was a bug in python-requests when using the documented way to specify proxy authentication. They are working on fixing the issue, but meanwhile, we found an alternate way of handling this and implemented it. https://github.com/pulp/nectar/pull/12/ build: 2.3.0-0.24.beta seems like this is still an issue fails-qa [root@qe-blade-03 ~]# pulp-admin rpm repo create --repo-id rhel64-ks --feed https://cdn.redhat.com/content/dist/rhel/rhui/server/6/6.4/x86_64/kickstart/ --feed-ca-cert CDN/cdn.redhat.com-chain.crt --feed-cert CDN/1359391926_4512.crt --feed-key CDN/1359391926_4512.key --skip rpm,erratum --proxy-host http://pulp-proxy.usersys.redhat.com --proxy-port 8080 Successfully created repository [rhel64-ks] [root@qe-blade-03 ~]# [root@qe-blade-03 ~]# [root@qe-blade-03 ~]# pulp-admin rpm repo sync run --repo-id rhel64-ks +----------------------------------------------------------------------+ Synchronizing Repository [rhel64-ks] +----------------------------------------------------------------------+ This command may be exited by pressing ctrl+c without affecting the actual operation on the server. Downloading metadata... [-] ... failed Cannot connect to proxy. Socket error: Tunnel connection failed: 407 Proxy Authentication Required. [root@qe-blade-03 ~]# Without proxy auth [root@qe-blade-03 ~]# pulp-admin rpm repo create --repo-id rhel64-os --feed https://cdn.redhat.com/content/dist/rhel/rhui/server/6/6.4/x86_64/os/ --feed-ca-cert CDN/cdn.redhat.com-chain.crt --feed-cert CDN/1359391926_4512.crt --feed-key CDN/1359391926_4512.key --skip rpm,erratum --proxy-host http://pulp-upgrade-testing.usersys.redhat.com --proxy-port 3128 Successfully created repository [rhel64-os] [root@qe-blade-03 ~]# [root@qe-blade-03 ~]# [root@qe-blade-03 ~]# pulp-admin rpm repo sync run --repo-id rhel64-os+----------------------------------------------------------------------+ Synchronizing Repository [rhel64-os] +----------------------------------------------------------------------+ This command may be exited by pressing ctrl+c without affecting the actual operation on the server. Downloading metadata... [/] ... completed Downloading repository content... [==================================================] 100% RPMs: 0/0 items Delta RPMs: 0/0 items ^C[root@qe-blade-03 ~]# build: 2.3.0-0.26.beta [root@dell-pe2900-01 ~]# pulp-admin rpm repo create --repo-id rhel59-os --feed https://cdn.redhat.com/content/dist/rhel/rhui/server/5/5.9/x86_64/os/ --feed-ca-cert CDN/cdn.redhat.com-chain.crt --feed-cert CDN/1359391926_4512.crt --feed-key CDN/1359391926_4512.key --proxy-host http://pulp-proxy.usersys.redhat.com --proxy-port 8888 --proxy-user admin --proxy-pass admin Successfully created repository [rhel59-os] [root@hp-sl2x170zg6-01 ~]# pulp-admin rpm repo sync run --repo-id rhel59-os +----------------------------------------------------------------------+ Synchronizing Repository [rhel59-os] +----------------------------------------------------------------------+ This command may be exited by pressing ctrl+c without affecting the actual operation on the server. Downloading metadata... [|] ... completed Downloading repository content... [==================================================] 100% RPMs: 1623/1623 items Delta RPMs: 0/0 items ... completed Downloading distribution files... [==================================================] 100% Distributions: 19/19 items ... completed Importing errata... [|] ... completed Importing package groups/categories... [|] ... completed Publishing distributions... [==================================================] 100% Distributions: 19/19 items ... completed Publishing packages... [==================================================] 100% Packages: 15362/15362 items ... completed Generating metadata [\] ... completed Publishing repository over HTTPS [-] ... completed [root@hp-sl2x170zg6-01 ~]# [root@hp-sl2x170zg6-01 ~]# verified [root@hp-sl2x170zg6-01 ~]# rpm -qa pulp-server pulp-server-2.3.0-0.26.beta.el6.noarch [root@hp-sl2x170zg6-01 ~]# [root@hp-sl2x170zg6-01 ~]# pulp-admin rpm repo create --repo-id rhel62-os --feed https://cdn.redhat.com/content/dist/rhel/rhui/server/6/6.2/x86_64/os/ --feed-ca-cert CDN/cdn.redhat.com-chain.crt --feed-cert CDN/1359391926_4512.crt --feed-key CDN/1359391926_4512.key Successfully created repository [rhel62-os] [root@hp-sl2x170zg6-01 ~]# pulp-admin rpm repo sync run --repo-id rhel62-os+----------------------------------------------------------------------+ Synchronizing Repository [rhel62-os] +----------------------------------------------------------------------+ This command may be exited by pressing ctrl+c without affecting the actual operation on the server. Downloading metadata... [\] ... failed Cannot connect to proxy. Socket error: Tunnel connection failed: 407 Proxy Authentication Required. [root@hp-sl2x170zg6-01 ~]# pulp-admin rpm repo sync run --repo-id rhel62-os +----------------------------------------------------------------------+ Synchronizing Repository [rhel62-os] +----------------------------------------------------------------------+ This command may be exited by pressing ctrl+c without affecting the actual operation on the server. Downloading metadata... [-] ... completed Downloading repository content... [==================================================] 100% RPMs: 7281/7281 items Delta RPMs: 0/0 items ... completed Downloading distribution files... [==================================================] 100% Distributions: 6/6 items ... completed Importing errata... [/] ... completed Importing package groups/categories... [|] ... completed Publishing distributions... [==================================================] 100% Distributions: 6/6 items ... completed Publishing packages... [==================================================] 100% Packages: 7281/7281 items ... completed Generating metadata [/] ... completed Publishing repository over HTTPS [-] ... completed [root@hp-sl2x170zg6-01 ~]# cat /etc/pulp/server/plugins.conf.d/yum_importer.json { "num_threads" : 4, "proxy_host" : "http://pulp-proxy.usersys.redhat.com", "proxy_username": "admin", "proxy_password": "admin", "proxy_port" : 8888 } [root@hp-sl2x170zg6-01 ~]# [root@hp-sl2x170zg6-01 ~]# pulp-admin rpm repo create --repo-id zoo --feed http://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/zoo/ Successfully created repository [zoo] [root@hp-sl2x170zg6-01 ~]# [root@hp-sl2x170zg6-01 ~]# [root@hp-sl2x170zg6-01 ~]# [root@hp-sl2x170zg6-01 ~]# pulp-admin rpm repo sync run --repo-id zoo +----------------------------------------------------------------------+ Synchronizing Repository [zoo] +----------------------------------------------------------------------+ This command may be exited by pressing ctrl+c without affecting the actual operation on the server. Downloading metadata... [\] ... completed Downloading repository content... [==================================================] 100% RPMs: 32/32 items Delta RPMs: 0/0 items ... completed Downloading distribution files... [==================================================] 100% Distributions: 0/0 items ... completed Importing errata... [-] ... completed Importing package groups/categories... [-] ... completed Publishing packages... [==================================================] 100% Packages: 32/32 items ... completed Publishing distributions... [==================================================] 100% Distributions: 0/0 items ... completed Generating metadata [\] ... completed Publishing repository over HTTPS [-] ... completed [root@hp-sl2x170zg6-01 ~]# Pulp 2.3 released. |