Bug 1613222
| Summary: | [BehindProxy]Cannot pull source repo for custom build | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Wenjing Zheng <wzheng> |
| Component: | Build | Assignee: | Ben Parees <bparees> |
| Status: | CLOSED ERRATA | QA Contact: | wewang <wewang> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.11.0 | CC: | aos-bugs, bparees, wewang, wzheng |
| Target Milestone: | --- | Keywords: | Regression |
| Target Release: | 3.11.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-10-11 07:24:00 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: | |||
|
Description
Wenjing Zheng
2018-08-07 09:05:35 UTC
> Actually custom build pod has included proxy envs which come from master-config.yaml
Are you saying you would not expect to see the HTTP_PROXY env vars set in the custom build pod and that their presence is breaking things?
I mean even the HTTP_PROXY and HTTPS_PROXY env vars set in the custom build pod, but it still cannot get source repo. Verified in openshift v3.11.0-0.24.0, custom build is complete behind proxy env steps: 1. Enable custom build $ oc adm policy add-cluster-role-to-group system:build-strategy-custom 2.Create apps $ oc new-app -f https://raw.githubusercontent.com/openshift/origin/master/examples/sample-app/application-template-custombuild.json $ oc get builds NAME TYPE FROM STATUS STARTED DURATION ruby-sample-build-1 Custom Git Complete 23 seconds ago 23 $ oc set env pods --list --all ^C [wewang@wen-local cucushift]$ [wewang@wen-local cucushift]$ oc set env pods --list --all |grep http BUILD={"kind":"Build","apiVersion":"build.openshift.io/v1","metadata":{"name":"ruby-sample-build-1","namespace":"wewang1","selfLink":"/apis/build.openshift.io/v1/namespaces/wewang1/builds/ruby-sample-build-1","uid":"c94e0d79-ab51-11e8-a63d-fa163ea877c4","resourceVersion":"34869","creationTimestamp":"2018-08-29T06:07:19Z","labels":{"app":"ruby-helloworld-sample","buildconfig":"ruby-sample-build","name":"ruby-sample-build","openshift.io/build-config.name":"ruby-sample-build","openshift.io/build.start-policy":"Serial","template":"application-template-custombuild"},"annotations":{"openshift.io/build-config.name":"ruby-sample-build","openshift.io/build.number":"1"},"ownerReferences":[{"apiVersion":"build.openshift.io/v1","kind":"BuildConfig","name":"ruby-sample-build","uid":"c93565d5-ab51-11e8-a63d-fa163ea877c4","controller":true}]},"spec":{"serviceAccount":"builder","source":{"type":"Git","git":{"uri":"https://github.com/openshift/ruby-hello-world.git","httpProxy":"http://file.rdu.redhat.com:3128","httpsProxy":"https://file.rdu.redhat.com:3128"}},"strategy":{"type":"Custom","customStrategy":{"from":{"kind":"DockerImage","name":"openshift/origin-custom-docker-builder@sha256:5931170ddf8dcdbbd482b44e8ec1ba156cf07423548a403b5dc1340ed7dfecea"},"env":[{"name":"OPENSHIFT_CUSTOM_BUILD_BASE_IMAGE","value":"openshift/origin-custom-docker-builder@sha256:5931170ddf8dcdbbd482b44e8ec1ba156cf07423548a403b5dc1340ed7dfecea"},{"name":"HTTP_PROXY","value":"http://file.rdu.redhat.com:3128"},{"name":"HTTPS_PROXY","value":"https://file.rdu.redhat.com:3128"}],"exposeDockerSocket":true}},"output":{"to":{"kind":"DockerImage","name":"docker-registry.default.svc:5000/wewang1/origin-ruby-sample:latest"},"pushSecret":{"name":"builder-dockercfg-nx627"}},"resources":{},"postCommit":{"args":["bundle","exec","rake","test"]},"nodeSelector":null,"triggeredBy":[{"message":"Build configuration change"}]},"status":{"phase":"New","outputDockerImageReference":"docker-registry.default.svc:5000/wewang1/origin-ruby-sample:latest","config":{"kind":"BuildConfig","namespace":"wewang1","name":"ruby-sample-build"},"output":{}}} SOURCE_REPOSITORY=https://github.com/openshift/ruby-hello-world.git SOURCE_URI=https://github.com/openshift/ruby-hello-world.git HTTP_PROXY=http://file.rdu.redhat.com:3128 HTTPS_PROXY=https://file.rdu.redhat.com:3128 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-2018:2652 |