Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1414522 - [Behind Proxy][3.3] Cannot use ssh for git repos when http/s proxy is set
[Behind Proxy][3.3] Cannot use ssh for git repos when http/s proxy is set
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Build (Show other bugs)
3.3.1
Unspecified Unspecified
medium Severity medium
: ---
: 3.3.1
Assigned To: Ben Parees
Wang Haoran
:
Depends On: 1397475
Blocks:
  Show dependency treegraph
 
Reported: 2017-01-18 13:02 EST by Scott Dodson
Modified: 2017-01-26 15:43 EST (History)
10 users (show)

See Also:
Fixed In Version: atomic-openshift-3.3.1.11-1.git.0.cba037c.el7
Doc Type: Bug Fix
Doc Text:
Cause: Proxy value validation prevented use of default cluster proxy settings with ssh git urls. Consequence: Buildconfigs that used ssh git urls in a cluster with default proxy settings would get a validation error unless the proxy value was explicitly set to empty string in the buildconfig. Fix: Validation will no longer reject buildconfigs that use ssh git urls and have a proxy value set. However the proxy value will not be used when an ssh git url is supplied. Result: Buildconfigs that specify ssh git urls will not get a validation error even if the cluster defines a default git proxy value.
Story Points: ---
Clone Of: 1397475
Environment:
Last Closed: 2017-01-26 15:43:45 EST
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 Knowledge Base (Solution) 2856901 None None None 2017-01-18 13:02 EST
Red Hat Product Errata RHBA-2017:0199 normal SHIPPED_LIVE OpenShift Container Platform 3.3.1.11 and 3.2.1.23 bug fix update 2017-01-26 20:41:56 EST

  None (edit)
Comment 2 Wenjing Zheng 2017-01-22 02:44:29 EST
Have test with below version,still can reproduce this bug:
openshift v3.3.1.9
kubernetes v1.3.0+52492b4
etcd 2.3.0+git

Here are my steps:
1. Create a buildconfig with http/s proxy set:
source:
    git:
      httpProxy: http://XXXXXXX:3128
      httpsProxy: https://XXXXXX:3128
      uri: git://github.com/openshift/ruby-hello-world.git
    type: Git
2. Build config cannot be saved with below error:
spec.source.git.uri: Invalid value: "git://github.com/openshift/ruby-hello-world.git": only http:// and https:// GIT protocols are allowed with HTTP or HTTPS proxy set

If I define gitHTTPProxy/gitHTTPSProxy in master-config.yaml, then start build with git repo, also met above error.
Comment 4 Wenjing Zheng 2017-01-22 22:45:30 EST
Verified on below version:
openshift v3.3.1.11
kubernetes v1.3.0+52492b4
etcd 2.3.0+git
Comment 6 errata-xmlrpc 2017-01-26 15:43:45 EST
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-2017:0199

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