Re: cluster up - reuse registry address

2016-08-12 Thread v
Hey, for all the curious people out there: Just wanted to say that pulling via oc new-app or oc run did not work for my v1.2.1 cluster any more after I used this trick. On top of that this trick has permanently messed up something in my cluster because "oadm prune images --confirm" now randoml

Re: cluster up - reuse registry address

2016-08-11 Thread Clayton Coleman
This is the string flag bug again. We really need to fix this. On Aug 10, 2016, at 4:04 AM, Cesar Wong wrote: Lionel, So is it working for you now? On Aug 9, 2016, at 11:10 PM, Lionel Orellana wrote: Digging through the go libraries used for parsing the command options I found that setting

Re: cluster up - reuse registry address

2016-08-11 Thread Lionel Orellana
Yes. On 10 August 2016 at 18:04, Cesar Wong wrote: > Lionel, > > So is it working for you now? > > On Aug 9, 2016, at 11:10 PM, Lionel Orellana wrote: > > Digging through the go libraries used for parsing the command options I > found that setting the no_proxy variable like this works: > > -e \

Re: cluster up - reuse registry address

2016-08-10 Thread Cesar Wong
Lionel, So is it working for you now? > On Aug 9, 2016, at 11:10 PM, Lionel Orellana wrote: > > Digging through the go libraries used for parsing the command options I found > that setting the no_proxy variable like this works: > > -e \"no_proxy=172.17.0.3,172.17.0.4\" > > It all comes down

Re: cluster up - reuse registry address

2016-08-09 Thread Lionel Orellana
Digging through the go libraries used for parsing the command options I found that setting the no_proxy variable like this works: -e \"no_proxy=172.17.0.3,172.17.0.4\" It all comes down to https://golang.org/pkg/encoding/csv which is used by the pflag package. On Tue, 9 Aug 2016 at 10:31 PM, Lio

Re: cluster up - reuse registry address

2016-08-09 Thread Lionel Orellana
Setting the log level to 4 I found the following Starting OpenShift using container 'origin' I0809 22:21:26.415373 20151 run.go:143] Creating container named "origin" config: image: openshift/origin:v1.3.0-alpha.2 command: start --master-config=/var/lib/origin/openshift.local

Re: cluster up - reuse registry address

2016-08-08 Thread Lionel Orellana
I guess what I need is a way to configure the proxy as per https://docs.openshift.org/latest/install_config/http_proxies.html#configuring-hosts-for-proxies On Tue, 9 Aug 2016 at 10:05 AM, Lionel Orellana wrote: > It's been difficult to get a functional poc going with oc cluster up > behind a pro

Re: cluster up - reuse registry address

2016-08-08 Thread Lionel Orellana
It's been difficult to get a functional poc going with oc cluster up behind a proxy. I need to maintain the registry's address so I can add it to the no_proxy variable of the docker deamon. Clayton's procedure works for reusing the address . I will try --use-existing-config. But I also need to ad

Re: cluster up - reuse registry address

2016-08-08 Thread Clayton Coleman
Generally deep configuration is not the goal of oc cluster up - that's more the Ansible installs responsibility. oc cluster up is about getting a running cluster up for test / dev as quickly as possible, but we don't want to add fine grained tuning to it. On Mon, Aug 8, 2016 at 10:49 AM, Cesar Wo

Re: cluster up - reuse registry address

2016-08-08 Thread Cesar Wong
Hi Lionel, You can always reuse the same data/config dirs and keep your service ips: oc cluster up --host-data-dir=blah --host-config-dir=blah --use-existing-config > On Aug 7, 2016, at 9:17 PM, Lionel Orellana wrote: > > Thanks Clayton. > > Would be nice to have a way of setting the address

Re: cluster up - reuse registry address

2016-08-07 Thread Lionel Orellana
Thanks Clayton. Would be nice to have a way of setting the address when using cluster up though. On Mon, 8 Aug 2016 at 11:03 AM, Clayton Coleman wrote: > When you create the registry you can specify the service IP that is > assigned (as long as another service hasn't claimed it). > > $ oadm

Re: cluster up - reuse registry address

2016-08-07 Thread Clayton Coleman
When you create the registry you can specify the service IP that is assigned (as long as another service hasn't claimed it). $ oadm registry -o yaml > registry.yaml $ vi registry.yaml # Set the registry service `spec.clusterIP` field to a valid service IP (must be within the service CI

cluster up - reuse registry address

2016-08-07 Thread Lionel Orellana
Hi I'm facing a similar problem to this: https://github.com/openshift/origin/issues/7879 Basically I need to configure the NO_PROXY variable of the Docker deamon to include the registry address. Problem is with cluster up I can't control the ip address that will be assigned to the registry. Or at