Bug 1511870
Summary: | Failed to push image in proxy environment | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Gan Huang <ghuang> |
Component: | Installer | Assignee: | Fabian von Feilitzsch <fabian> |
Status: | CLOSED ERRATA | QA Contact: | Gan Huang <ghuang> |
Severity: | high | Docs Contact: | Johnny Liu <jialiu> |
Priority: | high | ||
Version: | 3.7.0 | CC: | aos-bugs, bkozdemb, david_hocky, dyan, haowang, jhocutt, jialiu, jokerman, kborup, klaas, mifiedle, mmariyan, mmccomas, sdodson |
Target Milestone: | --- | Keywords: | TestBlocker |
Target Release: | 3.7.z | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
Cause: Kubernetes service IP was not added to no_proxy list for the docker-registry
Consequence: Internal registry requests would be forced to use the proxy, preventing logins and pushes to the internal registry.
Fix: Added the kubernetes service IP to the no_proxy list
Result: The internal registry requests are no longer proxied, and logins and pushes to the internal registry succeed as expected.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2018-05-08 14:24: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: | 1527210, 1541625 | ||
Bug Blocks: |
Comment 2
Johnny Liu
2017-11-10 11:34:47 UTC
The registry version seems to be v2.6.2 # oc logs docker-registry-1-fc7f4 |grep distribution_version time="2017-11-13T08:15:29.183080643Z" level=info msg="start registry" distribution_version="v2.6.2+unknown" kubernetes_version=v1.7.6+a08f5eeb62 openshift_version=v3.7.7 I think this is a regression and therefore a blocker. I think the fix is to ensure that the kube service ip is added to the no_proxy list. There's another bug on this that's got more information, let me find that. I think this is a dupe of https://bugzilla.redhat.com/show_bug.cgi?id=1504464 and I think the correct way to fix this is to set KUBERNETES_MASTER='kubernetes.svc.default' on the registry whenever we configure a proxy so that it connects to the api server via dns name rather than ip address. Since we actually regressed this in 3.6.z this is by definition not a 3.7 blocker. We'll fix this ASAP however, ideally on 3.7 GA day. (In reply to Scott Dodson from comment #5) > I think this is a dupe of > https://bugzilla.redhat.com/show_bug.cgi?id=1504464 and I think the correct > way to fix this is to set KUBERNETES_MASTER='kubernetes.svc.default' on the I'm thinking that the correct route should be "kubernetes.default.svc" :) I tried with setting KUBERNETES_MASTER='kubernetes.default.svc', things still don't work. After appending `172.30.0.1` to NO_PROXY of docker-registry dc, build succeeded. # oc env dc/docker-registry NO_PROXY=<--snip-->,172.30.0.1 I think the fix should be backport to 3.7 branch, and fix this 3.7 bug, this is really a very basic functionality (sti build behind proxy) Before backport the PR to 3.7, pls fix Bug 1541625 together, Bug 1541625 is introduced by this PR. ACK, lets treat this as the bug to track the backport from master. Need to backport these two to release-3.7 for this bug https://github.com/openshift/openshift-ansible/pull/7055 https://github.com/openshift/openshift-ansible/pull/6215 *** Bug 1544073 has been marked as a duplicate of this bug. *** *** Bug 1544682 has been marked as a duplicate of this bug. *** In openshift-ansible-3.7.32-1 Verified this bug with openshift-ansible-3.9.0-0.48.0.git.0.2fb33db.el7.noarch, and PASS. # oc env dc docker-registry --list |grep -i proxy NO_PROXY=.centralci.eng.rdu2.redhat.com,.cluster.local,.svc,169.254.169.254,172.16.120.106,172.16.120.64,172.31.0.1 HTTP_PROXY=http://file.rdu.redhat.com:3128 HTTPS_PROXY=http://file.rdu.redhat.com:3128 kubernetes svc IP (172.31.0.1) is added into NO_PROXY list, sti build succeed. # oc get po -n install-test NAME READY STATUS RESTARTS AGE mongodb-1-4w6ln 1/1 Running 0 2h nodejs-mongodb-example-1-build 0/1 Completed 0 2h nodejs-mongodb-example-1-r5g6c 1/1 Running 0 2h Fixed in openshift-ansible-3.7.42-1 and later *** Bug 1575050 has been marked as a duplicate of this bug. *** |