Bug 1459102
| Summary: | Standalone registry ignores proxy settings when pulling through | ||||||
|---|---|---|---|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Johan Swensson <jswensso> | ||||
| Component: | Installer | Assignee: | Kenny Woodson <kwoodson> | ||||
| Status: | CLOSED DUPLICATE | QA Contact: | Gan Huang <ghuang> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | 3.5.0 | CC: | aos-bugs, bleanhar, jokerman, jswensso, mfojtik, mmccomas, obulatov, yinzhou | ||||
| Target Milestone: | --- | ||||||
| Target Release: | 3.6.z | ||||||
| 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: | 2017-09-08 19:07:03 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: | |||||||
| Attachments: |
|
||||||
|
Description
Johan Swensson
2017-06-06 09:52:15 UTC
Does the http_proxy environment variable exist in the dockerregistry process?
```
$ sudo cat /proc/$(pidof dockerregistry)/environ | xargs -0 -I {} echo {} | grep -i proxy
http_proxy=127.0.0.1:8080
```
It does not exist in the pod registry.
master-config.yaml:
(this is from a different environment so some addresses are different from before):
admissionConfig:
pluginConfig:
BuildDefaults:
configuration:
apiVersion: v1
env:
- name: HTTP_PROXY
value: http://192.168.122.62:3128
- name: HTTPS_PROXY
value: https://192.168.122.62:3128
- name: NO_PROXY
value: .cluster.local,registry.example.com
- name: http_proxy
value: http://192.168.122.62:3128
- name: https_proxy
value: https://192.168.122.62:3128
- name: no_proxy
value: .cluster.local,registry.example.com
gitHTTPProxy: http://192.168.122.62:3128
gitHTTPSProxy: https://192.168.122.62:3128
gitNoProxy: .cluster.local,registry.example.com
kind: BuildDefaultsConfig
resources:
limits: {}
requests: {}
And from /etc/sysconfig/docker: HTTP_PROXY='http://192.168.122.62:3128' HTTPS_PROXY='https://192.168.122.62:3128' NO_PROXY='.cluster.local,registry.example.com' /etc/sysconfig/docker and BuildDefaults are not related to the registry. dockerregistry has to be in the registry pod, try to inspect it using this command: oc -n default rsh dc/docker-registry cat /proc/1/environ | xargs -n 1 -0 That was what I did and it's not set. If it's required to manually add it to the deploymentconfig even tho it's configured in the installer maybe this is a doc bug? # These options configure HTTP_PROXY, HTTPS_PROXY, and NOPROXY environment # variables for docker and master services. #openshift_http_proxy=http://USER:PASSWORD@IPADDR:PORT #openshift_https_proxy=https://USER:PASSWORD@IPADDR:PORT #openshift_no_proxy='.hosts.example.com,some-host.com' The registry is neither Docker nor a master service. And as I can see, the registry's environment variables are not tunable from the inventory file. So I guess you should manually add it to the deploymentconfig. If openshift.common.https_proxy or openshift.common.http_proxy != '' then we should set HTTP_PROXY, HTTPS_PROXY, and NO_PROXY to openshift.common.http_proxy openshift.common.https_proxy and openshift.common.no_proxy respectively. It's a duplication of https://bugzilla.redhat.com/show_bug.cgi?id=1401831? *** Bug 1401831 has been marked as a duplicate of this bug. *** *** This bug has been marked as a duplicate of bug 1401831 *** |