Description of problem: When a user is under proxy environment, oc new-app command hangs when new-app command launches an implicit git process. Version-Release number of selected component (if applicable): How reproducible: Always under proxy environment Steps to Reproduce: 1. Execute new-app command under proxy environment. Assuming git proxy has configured correctly. $ oc new-app --name='grafana' --strategy='docker' https://github.com/bacek/openshift-prometheus.git Actual results: new-app commands hanged and timeouted. However, the app created after a timeout. Expected results: The app creates without a timeout. Additional info: This is because "oc new-app" commands launched an implicit git process to clone the repository. This implicit git process is executed to look into the repository. To workaround this issue, specify more command options to avoid launching implicit process. For the above command, this command works. $ oc new-app --name=grafana --strategy=docker grafana/grafana:4.2.0~https://github.com/bacek/openshift-prometheus.git
Guessing this is when we run git w/o the user's config to test if the repo is private or not. (When we run git normally, we use the user's config which should have any necessary proxy config in it). The right answer here is probably to copy the user's gitconfig and only remove the auth content, so we keep any proxy settings, when we are doing the "is this a private repo" check.
Pull request https://github.com/openshift/origin/pull/16187 has been submitted to resolve this issue.
pull request has merged.
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/RHSA-2017:3188