Re: OCP: Failed to push image: unauthorized: authentication req, uired

2017-10-26 Thread Lionel Orellana
Ah I think when I first installed the Origin cluster there were all these problems with the registry ip and the proxy so I created the registry form a yml file (to keep the ip consistent) and that yml file didn't set the proxy vars. These problems are gone now that the default registry is set to th

Re: OCP: Failed to push image: unauthorized: authentication req, uired

2017-10-26 Thread Ben Parees
On Thu, Oct 26, 2017 at 10:45 PM, Lionel Orellana wrote: > I have an Origin 3.6 cluster and the proxy vars are not set in the > registry pod at all. > > -bash-4.2$ oc rsh docker-registry-9-c9mgd env | grep PROXY > > -bash-4.2$ > > Whereas in the OCP 3.6 cluster they are. > > -bash-4.2$ oc rsh doc

Re: OCP: Failed to push image: unauthorized: authentication req, uired

2017-10-26 Thread Lionel Orellana
I have an Origin 3.6 cluster and the proxy vars are not set in the registry pod at all. -bash-4.2$ oc rsh docker-registry-9-c9mgd env | grep PROXY -bash-4.2$ Whereas in the OCP 3.6 cluster they are. -bash-4.2$ oc rsh docker-registry-1-9z8p2 env | grep PROXY NO_PROXY=.x,.cluster.local,.svc,17

Re: OCP: Failed to push image: unauthorized: authentication req, uired

2017-10-26 Thread Ben Parees
On Thu, Oct 26, 2017 at 12:43 PM, Lionel Orellana wrote: > This works.Would have thought the api server address was added > automatically to NO_PROXY? > it's supposed to be, but i do think there is a bug open where people have seen it not be added: https://bugzilla.redhat.com/show_bug.cgi?id=150

Re: OCP: Failed to push image: unauthorized: authentication req, uired

2017-10-26 Thread Lionel Orellana
This works.Would have thought the api server address was added automatically to NO_PROXY? -bash-4.2$ oc rsh docker-registry-1-9z8p2 sh-4.2$ export NO_PROXY=$NO_PROXY,172.23.192.1 sh-4.2$ oc whoami system:serviceaccount:default:registry sh-4.2$ On 26 October 2017 at 20:54, Ben Parees wrote: > >

Re: OCP: Failed to push image: unauthorized: authentication req, uired

2017-10-26 Thread Ben Parees
On Thu, Oct 26, 2017 at 11:50 AM, Lionel Orellana wrote: > I didn't put it there. > > I another cluster this works. > > -bash-4.2$ oc rsh docker-registry-9-c9mgd oc whoami > system:serviceaccount:default:registry > > -bash-4.2$ oc rsh docker-registry-9-c9mgd which oc > /usr/bin/oc > > ok, it look

Re: OCP: Failed to push image: unauthorized: authentication req, uired

2017-10-26 Thread Lionel Orellana
I didn't put it there. I another cluster this works. -bash-4.2$ oc rsh docker-registry-9-c9mgd oc whoami system:serviceaccount:default:registry -bash-4.2$ oc rsh docker-registry-9-c9mgd which oc /usr/bin/oc On 26 October 2017 at 20:37, Ben Parees wrote: > > > On Thu, Oct 26, 2017 at 10:53 AM

Re: OCP: Failed to push image: unauthorized: authentication req, uired

2017-10-26 Thread Ben Parees
On Thu, Oct 26, 2017 at 10:53 AM, Lionel Orellana wrote: > Interestingly > > -bash-4.2$ oc rsh router-1-bf95x oc whoami > system:serviceaccount:default:router > -bash-4.2$ oc rsh docker-registry-1-9z8p2 oc whoami > Unable to connect to the server: Service Unavailable > command terminated with exi

Re: OCP: Failed to push image: unauthorized: authentication req, uired

2017-10-26 Thread Lionel Orellana
Interestingly -bash-4.2$ oc rsh router-1-bf95x oc whoami system:serviceaccount:default:router -bash-4.2$ oc rsh docker-registry-1-9z8p2 oc whoami Unable to connect to the server: Service Unavailable command terminated with exit code 1 On 26 October 2017 at 19:50, Lionel Orellana wrote: > Well t

Re: OCP: Failed to push image: unauthorized: authentication req, uired

2017-10-26 Thread Lionel Orellana
Well this works from one of the hosts (using a token from oc whoami) curl -X GET -H "Authorization: Bearer $TOKEN" https://172.23.192.1/oapi/v1/users/~ In the error msg msg="*invalid token*: Get https://172.23.192.1:443/oapi/v1/users/~ : Service Unavailable"

Re: OCP: Failed to push image: unauthorized: authentication req, uired

2017-10-26 Thread Ben Parees
On Thu, Oct 26, 2017 at 8:11 AM, Lionel Orellana wrote: > Hi, > > In a new OCP 3.6 installation I'm trying to deploy JBoss EAP 7.0 from the > catalog. > > This is in a project for which I am the admin. > > It's failing to push the image to the registry > > Pushing image docker-registry.default.sv

Re: OCP: Failed to push image: unauthorized: authentication req, uired

2017-10-26 Thread Lionel Orellana
I've seen the issue where this error happens on the first build attempt. However I'm getting the error on subsequent builds. This is the first cluster I configure with the openshift-ovs-multitenant plugin. Could that be interf

OCP: Failed to push image: unauthorized: authentication req,uired

2017-10-25 Thread Lionel Orellana
Hi, In a new OCP 3.6 installation I'm trying to deploy JBoss EAP 7.0 from the catalog. This is in a project for which I am the admin. It's failing to push the image to the registry Pushing image docker-registry.default.svc:5000/bimorl/jboss-eap70:latest ... Registry server Address: Registry ser