Re: Why I don't have debug information in DockerRegistry logs?

2016-10-24 Thread Philippe Lafoucrière
See: https://github.com/openshift/openshift-ansible/issues/2648
The registry is not logging anything because the ssl handshake failed.
​
___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


Re: Why I don't have debug information in DockerRegistry logs?

2016-10-23 Thread Skarbek, John
In my opinion, I don’t believe this is an auth issue.

If it were an auth issue, you would’ve seen something from the builder 
indicating a failure to push with incorrect credentials. Instead you are 
looking at what appears as his inability to talk to the registry entirely.

Your log output you produce is from two different spans of time. I would 
suggest gathering the logs from the same time range and let’s take another look.


--
John Skarbek


On October 23, 2016 at 06:19:37, Stéphane Klein 
(cont...@stephane-klein.info) wrote:

I see some debug message here 
https://github.com/openshift/origin/blob/master/pkg/dockerregistry/server/token.go#L60

Why I didn't see it in container logs ?

2016-10-23 11:41 GMT+02:00 Stéphane Klein 
>:
Hi,

I've some auth issue with my OpenShift DockerRegistry:

I1023 08:54:24.043049   1 docker.go:118] Pushing image 
172.30.201.95:5000/openshift/ta-s2i-base-prod:latest
 ...
E1023 08:54:24.046357   1 dockerutil.go:86] push for image 
172.30.201.95:5000/openshift/base-prod:latest
 failed, will retry in 5s ...
E1023 08:54:29.051732   1 dockerutil.go:86] push for image 
172.30.201.95:5000/openshift/base-prod:latest
 failed, will retry in 5s ...
E1023 08:54:34.054921   1 dockerutil.go:86] push for image 
172.30.201.95:5000/openshift/base-prod:latest
 failed, will retry in 5s ...
E1023 08:54:39.058377   1 dockerutil.go:86] push for image 
172.30.201.95:5000/openshift/base-prod:latest
 failed, will retry in 5s ...
E1023 08:54:44.061671   1 dockerutil.go:86] push for image 
172.30.201.95:5000/openshift/base-prod:latest
 failed, will retry in 5s ...
E1023 08:54:49.064716   1 dockerutil.go:86] push for image 
172.30.201.95:5000/openshift/base-prod:latest
 failed, will retry in 5s ...
E1023 08:54:54.067985   1 dockerutil.go:86] push for image 
172.30.201.95:5000/openshift/base-prod:latest
 failed, will retry in 5s ...
F1023 08:54:59.068275   1 builder.go:204] Error: build error: Failed to 
push image: unable to ping registry endpoint 

Re: Why I don't have debug information in DockerRegistry logs?

2016-10-23 Thread Stéphane Klein
I see some debug message here
https://github.com/openshift/origin/blob/master/pkg/dockerregistry/server/token.go#L60

Why I didn't see it in container logs ?

2016-10-23 11:41 GMT+02:00 Stéphane Klein :

> Hi,
>
> I've some auth issue with my OpenShift DockerRegistry:
>
> I1023 08:54:24.043049   1 docker.go:118] Pushing image
> 172.30.201.95:5000/openshift/ta-s2i-base-prod:latest ...
> E1023 08:54:24.046357   1 dockerutil.go:86] push for image
> 172.30.201.95:5000/openshift/base-prod:latest failed, will retry in 5s ...
> E1023 08:54:29.051732   1 dockerutil.go:86] push for image
> 172.30.201.95:5000/openshift/base-prod:latest failed, will retry in 5s ...
> E1023 08:54:34.054921   1 dockerutil.go:86] push for image
> 172.30.201.95:5000/openshift/base-prod:latest failed, will retry in 5s ...
> E1023 08:54:39.058377   1 dockerutil.go:86] push for image
> 172.30.201.95:5000/openshift/base-prod:latest failed, will retry in 5s ...
> E1023 08:54:44.061671   1 dockerutil.go:86] push for image
> 172.30.201.95:5000/openshift/base-prod:latest failed, will retry in 5s ...
> E1023 08:54:49.064716   1 dockerutil.go:86] push for image
> 172.30.201.95:5000/openshift/base-prod:latest failed, will retry in 5s ...
> E1023 08:54:54.067985   1 dockerutil.go:86] push for image
> 172.30.201.95:5000/openshift/base-prod:latest failed, will retry in 5s ...
> F1023 08:54:59.068275   1 builder.go:204] Error: build error: Failed
> to push image: unable to ping registry endpoint
> https://172.30.201.95:5000/v0/
> v2 ping attempt failed with error: Get https://172.30.201.95:5000/v2/:
> http: server gave HTTP response to HTTPS client
>  v1 ping attempt failed with error: Get https://172.30.201.95:5000/v1/
> _ping: http: server gave HTTP response to HTTPS client
>
> In DockerRegistry logs I have only this informations:
>
> 10.1.3.1 - - [23/Oct/2016:09:38:35 +] "GET /healthz HTTP/1.1" 200 0 ""
> "Go-http-client/1.1"
> 10.1.3.1 - - [23/Oct/2016:09:38:45 +] "GET /healthz HTTP/1.1" 200 0 ""
> "Go-http-client/1.1"
> 10.1.3.1 - - [23/Oct/2016:09:38:45 +] "GET /healthz HTTP/1.1" 200 0 ""
> "Go-http-client/1.1"
> 10.1.3.1 - - [23/Oct/2016:09:38:55 +] "GET /healthz HTTP/1.1" 200 0 ""
> "Go-http-client/1.1"
> 10.1.3.1 - - [23/Oct/2016:09:38:55 +] "GET /healthz HTTP/1.1" 200 0 ""
> "Go-http-client/1.1"
> 10.1.4.1 - - [23/Oct/2016:09:39:05 +] "GET / HTTP/1.1" 200 0 ""
> "check_http/v2.0 (monitoring-plugins 2.0)"
> 10.1.3.1 - - [23/Oct/2016:09:39:05 +] "GET /healthz HTTP/1.1" 200 0 ""
> "Go-http-client/1.1"
> 10.1.3.1 - - [23/Oct/2016:09:39:05 +] "GET /healthz HTTP/1.1" 200 0 ""
> "Go-http-client/1.1"
> 10.1.3.1 - - [23/Oct/2016:09:39:15 +] "GET /healthz HTTP/1.1" 200 0 ""
> "Go-http-client/1.1"
> 10.1.3.1 - - [23/Oct/2016:09:39:15 +] "GET /healthz HTTP/1.1" 200 0 ""
> "Go-http-client/1.1"
> 10.1.3.1 - - [23/Oct/2016:09:39:25 +] "GET /healthz HTTP/1.1" 200 0 ""
> "Go-http-client/1.1"
> 10.1.3.1 - - [23/Oct/2016:09:39:25 +] "GET /healthz HTTP/1.1" 200 0 ""
> "Go-http-client/1.1"
>
> But I've this in DockerRegistry config file:
>
> $ cat /config.yml
> version: 0.1
> log:
>   level: debug
> http:
>   addr: :5000
> storage:
>   cache:
> layerinfo: inmemory
>   filesystem:
> rootdirectory: /registry
>   delete:
> enabled: true
> auth:
>   openshift:
> realm: openshift
> middleware:
>   repository:
> - name: openshift
>   options:
> pullthrough: true
>
> Why I don't have debug information in log?
>
> Best regards,
> Stéphane
> --
> Stéphane Klein 
> blog: http://stephane-klein.info
> cv : http://cv.stephane-klein.info
> Twitter: http://twitter.com/klein_stephane
>



-- 
Stéphane Klein 
blog: http://stephane-klein.info
cv : http://cv.stephane-klein.info
Twitter: http://twitter.com/klein_stephane
___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users