Bug 1529478
| Summary: | pods were in ContainerCreating status while enabling cri-o behind proxy | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Gan Huang <ghuang> |
| Component: | Installer | Assignee: | Giuseppe Scrivano <gscrivan> |
| Status: | CLOSED ERRATA | QA Contact: | Gan Huang <ghuang> |
| Severity: | high | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.9.0 | CC: | aos-bugs, jokerman, mmccomas, mpatel, sdodson, smilner, wmeng, xtian |
| Target Milestone: | --- | ||
| Target Release: | 3.9.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-03-28 14:17:25 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
Gan Huang
2017-12-28 09:44:56 UTC
The Environment= in the service file won't affect the syscontainer. Could you try adding the same information to the /var/lib/containers/atomic/cri-o.0/config.json file (under env) and restarting the cri-o service? Does that solve the problem? As I've opened a PR for using /etc/sysconfig/crio-storage and /etc/sysconfig/crio-network from within the system container. Just to be sure, Mrunal, passing these env variables is enough or is there need to do something more? link to the PR for CRI-O system containers: https://github.com/kubernetes-incubator/cri-o/pull/1245 (In reply to Giuseppe Scrivano from comment #2) > The Environment= in the service file won't affect the syscontainer. > > Could you try adding the same information to the > /var/lib/containers/atomic/cri-o.0/config.json file (under env) and > restarting the cri-o service? Does that solve the problem? > Thanks Giuseppe! That's helpful. Thanks for confirming it. I've opened a PR for openshift-ansible here: https://github.com/openshift/openshift-ansible/pull/6615 Tested in openshift-ansible-3.9.0-0.31.0.git.0.e0a0ad8.el7.noarch.rpm # crio --version crio version 1.9.1 The configurations have been added: # cat /etc/sysconfig/crio-network HTTP_PROXY=http://file.rdu.redhat.com:3128 HTTPS_PROXY=http://file.rdu.redhat.com:3128 NO_PROXY=.cluster.local,.svc,172.16.120.131,172.16.120.60 Pods are still in ContainerCreating status, same error as comment 1. @Gan, thanks for the info. Could you try to modify "/etc/sysconfig/crio-network" and set it to: export HTTP_PROXY=http://file.rdu.redhat.com:3128 export HTTPS_PROXY=http://file.rdu.redhat.com:3128 export NO_PROXY=.cluster.local,.svc,172.16.120.131,172.16.120.60 then restart cri-o. Does it make any difference? Yes, the pods running now. Thanks, I opened a PR here: https://github.com/openshift/openshift-ansible/pull/6933 The PR has been merged Verified in openshift-ansible-3.9.3-1.git.0.e166207.el7.noarch.rpm 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:0489 The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days |