Bug 1348945
Summary: | perl image cannot work well behind the http_proxy | |||
---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Wang Haoran <haowang> | |
Component: | ImageStreams | Assignee: | Ben Parees <bparees> | |
Status: | CLOSED ERRATA | QA Contact: | Wang Haoran <haowang> | |
Severity: | high | Docs Contact: | ||
Priority: | high | |||
Version: | 3.2.1 | CC: | aos-bugs, bparees, dyan, hripps, jokerman, mmccomas, sdodson, tdawson, wsun, xiuwang | |
Target Milestone: | --- | Keywords: | TestBlocker | |
Target Release: | 3.2.1 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Enhancement | ||
Doc Text: |
Feature:
Update Perl image to support proxy configuration
Reason:
Previously the image could not access remote resources if the customer network required a proxy be used.
Result:
The perl image will now respect the HTTP_PROXY environment variable for configuring the proxy to use when requesting remote resources during the build process.
|
Story Points: | --- | |
Clone Of: | ||||
: | 1349222 1349224 (view as bug list) | Environment: | ||
Last Closed: | 2016-09-27 09:38:40 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: |
Comment 1
Ben Parees
2016-06-22 14:27:01 UTC
Let's use this bug for the perl image and open new bugs for the eap and jws images. For perl, the image will need to be updated to auto-configure CPAN to use a proxy. CPAN configuration details are found here: http://perldoc.perl.org/CPAN.html#CONFIGURATION It should be lowercase, so http_proxy, not HTTP_PROXY. Can you please test it with lowercase? I believe https_proxy and no_proxy could be in lowercase as well, but http_proxy must be in lowercase. From curl man page: The environment variables can be specified in lower case or upper case. The lower case version has precedence. http_proxy is an exception as it is only available in lower case. So, can you please test with lowercase and report the results? I have opened a pull request that translates HTTP_PROXY to http_proxy, that should also help: https://github.com/sclorg/s2i-perl-container/pull/95 Also, just an fyi, I've realized that curl was actually doing ok, since it used https, which is fine in uppercase. But cpanm did not use the uppercase version, it was the one that failed. centos image has been updated, rhel will be updated when troy rebuilds. This has been merged and is in openshift3/perl-516-rhel7:5.16-43 or newer. Verified imageid: openshift3/perl-516-rhel7 latest bb6029bad868 this bug is fixed Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2016:1933 |