Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1348945 - perl image cannot work well behind the http_proxy
perl image cannot work well behind the http_proxy
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Image (Show other bugs)
3.2.1
Unspecified Unspecified
high Severity high
: ---
: 3.2.1
Assigned To: Ben Parees
Wang Haoran
: TestBlocker
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-06-22 07:29 EDT by Wang Haoran
Modified: 2016-09-27 05:38 EDT (History)
10 users (show)

See Also:
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 05:38:40 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1933 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.3 Release Advisory 2016-09-27 09:24:36 EDT

  None (edit)
Comment 1 Ben Parees 2016-06-22 10:27:01 EDT
separate bug for each image please.
Comment 2 Ben Parees 2016-06-22 12:22:33 EDT
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
Comment 4 Martin Nagy 2016-07-19 08:06:16 EDT
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?
Comment 5 Martin Nagy 2016-07-20 05:17:34 EDT
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.
Comment 6 Ben Parees 2016-07-22 09:32:34 EDT
centos image has been updated, rhel will be updated when troy rebuilds.
Comment 7 Troy Dawson 2016-08-08 18:07:40 EDT
This has been merged and is in openshift3/perl-516-rhel7:5.16-43 or newer.
Comment 9 Dongbo Yan 2016-08-09 04:09:01 EDT
Verified
imageid:
openshift3/perl-516-rhel7        latest              bb6029bad868

this bug is fixed
Comment 12 errata-xmlrpc 2016-09-27 05:38:40 EDT
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

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