Bug 985106 (sat6-proxy-bug)
Summary: | Proxy not properly configured for pulp repo syncs | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Justin Sherrill <jsherril> |
Component: | Installation | Assignee: | Eric Helms <ehelms> |
Status: | CLOSED DUPLICATE | QA Contact: | Tazim Kolhar <tkolhar> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.0.1 | CC: | bchardim, cwelton, flloreda, inecas, jmontleo, miguel, mmccune, pep, tkolhar, xdmoon |
Target Milestone: | Unspecified | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-06-16 21:32:44 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: | 1083818 | ||
Bug Blocks: |
Description
Justin Sherrill
2013-07-16 19:34:31 UTC
UPstream katello issue https://github.com/Katello/katello/issues/2090 Workaround: create /usr/lib/pulp/plugins/importers/yum_importer/yum_importer.conf with contents: { "proxy_url" : "http://localhost/", "proxy_port" : "12345" } (In reply to comment #1) > Workaround: > > create /usr/lib/pulp/plugins/importers/yum_importer/yum_importer.conf > with contents: > > { > "proxy_url" : "http://localhost/", > "proxy_port" : "12345" > } (...and "service httpd restart" for the change to take effect.) Please note that there is a typo in the original post (and the bugzillas that post was based off of). With that configuration syncing will work, but new repositories will fail upon creation. The correct syntax is: /usr/lib/pulp/plugins/importers/yum_importer/yum_importer.conf { "proxy_url" : "http://localhost/", "proxy_port" : 12345 } and then run 'service httpd restart' Note the proxy_port is an Integer and NOT a string (It should NOT be surrounded by quotes). Note new file location for pulp 2.3 in mdp2, this manual workaround should not be needed anymore though: https://github.com/Katello/katello-installer/pull/58 *** Bug 968265 has been marked as a duplicate of this bug. *** *** Bug 968390 has been marked as a duplicate of this bug. *** Moving this to be tested during MDP3, not critical for MDP2 success story This workaround does not appear to work on MDP2. MDP2 should fully support pulp proxy configuration with no workarounds needed. Simply specify the appropriate command line options to katello-configure. If you are experiencing an issue with it, please let us know either through the mdp2 mailing list or #satellite6-mdp on freenode. (There is a known issue using an HTTP Proxy with digest authentication though) Please provide verification steps Moving this back to Assigned as this broke during enginification. Edit: /etc/foreman/plugins/katello.yaml Under 'common:' Add: cdn_proxy: host: localhost port: 3128 user: login password: password for example: common: cdn_proxy: host: localhost port: 3128 user: login password: password This enables cdn communication via the proxy (used for enabling red hat repos). In order to actually use your proxy for syncing rpms: create a new file: /etc/pulp/server/plugins.conf.d/yum_importer.conf { "num_threads" : 4, "proxy_url" : "http://myproxy", "proxy_port" : 80 } correction, "proxy_url" should be "proxy_host": { "num_threads" : 4, "proxy_host" : "http://myproxy", "proxy_port" : 80 } Actually, looking at code at /usr/lib/python2.6/site-packages/pulp_rpm/plugins/importers/yum/importer.py I found that filename should be /etc/pulp/server/plugins.conf.d/yum_importer.conf My file contents are: { "proxy_host" : "http://localhost", "proxy_port" : 8118 } And it's working. Also we need a feature for proxy per-repo as if one of the repos it's internal and proxy is unable to resolve it it will fail. There is a workarround intalling a local proxy in the satellite server and configuring it with the correct rules to direct the HTTP querys to proxy o direct based in the destination. Thanks (In reply to Francisco Lloreda from comment #21) I mean /etc/pulp/server/plugins.conf.d/yum_importer.json Just to complement the info. In order to download ISO content from Satellite6-beta via proxy, an iso importer plugin must be configured: # cat /etc/pulp/server/plugins.conf.d/iso_importer.json { "proxy_host" : "http://localhost", "proxy_port" : 8118 } Then restart katello-service # katello-service restart This is resolved by 1083818 for the Satellite 6 Beta release. *** This bug has been marked as a duplicate of bug 1083818 *** The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days |