Re: Source Code repository could not be cloned when creating a new app from a quickstart

From: Aaron Knister <aaron knister gmail com>

To: Piccaluga Julien <Julien Piccaluga nagra com>

Cc: users lists openshift redhat com

Subject: Re: Source Code repository could not be cloned when creating a new app from a quickstart

Date: Wed, 11 Dec 2013 10:25:54 -0500

I had an openshift cluster on a network that required a proxy server and I could never get quickstarts from external repos to successfully clone. By setting proxy variables in /etc/openshift/env/* I was able to get most everything else to work (pip, cpan, gem). I ended up mirroring the quick starts locally. Maybe that would work for you, and you could just update the URL in quickstarts.json. Looking back at it now I wonder if setting http.proxy in /etc/gitconfig would have done the trick.

Ok I make shells script http_proxy.sh and https_proxy.sh for node1,node2 and broker. Then I restart the whole infrastructure for make sure all user accounts are load with new profile. I still have the same issue. I am wondering if ruby set the proxy by another config file which override the system env variables.

That clone must be running from a different context than the gear user - mcollective. In fact, I forgot to mention - restart (ruby193-)mcollective on the node and see if that makes a difference.

If not, you might need to make it more system-wide by creating a shell script in /etc/profile.d/ to export the variable or something like that - sorry, I don't have a system that requires an http proxy or I would test it rather than just speculate...

So I don't know where this issue is throw during the process? In my understood the git clone is perform inside the gear.So I try to create a simple php app, connect to ssh and proceed a "git clone https://github.com/openshift/wordpress-example.git" and here it's works. So why it still failed when trying to create an wordpress app from the web console?

This has come up before and I believe the answer was to set http_proxy and https_proxy environment variables on the node (since that's where the clone happens). I *believe* you can do this globally by putting your proxy in /etc/openshift/env/http{,s}_proxy.

I think I have to configure openshift to use my corporate proxy to be able to clone this github repository. My problem is that I have no idea on how to configure it in the openshift platform. Someone can point me to right config file?