Unable to create application due to docker registry TLS handshake timeout
[provide a description of the issue]
Version
oc v3.11.0+62803d0-1 kubernetes v1.11.0+d4cacc0 features: Basic-Auth GSSAPI Kerberos SPNEGO
Server https://db6okdmaster2:8443 openshift v3.11.0+e5dbec2-186 kubernetes v1.11.0+d4cacc0
Steps To Reproduce
- Install OKD 3.11 using Advanced installation method with 1 master, 1 infra and 1 worker node
- Create a new project and a new sample application
##### Current Result
Cloning "https://github.com/openshift/httpd-ex.git " ...
Commit: 0ac6da93a1f65fe9175cb1b7838cfca7b23d5fbe (Merge pull request #15 from adambkaplan/sclorg-rename)
Author: Honza Horak <[email protected]>
Date: Fri Aug 3 13:08:12 2018 +0200
pulling image error : Get https://docker-registry.default.svc:5000/v2/: net/http: TLS handshake timeout
error: build error: unable to get docker-registry.default.svc:5000/openshift/httpd@sha256:d1256b39182b0ac5290c946dc44fc11055524683113a1b5e3a55d83044a185cb
Expected Result
OKD should be creating and running the pod successfully
Additional Information
[root@db6okdmaster2 ~]# oc get svc
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
dancer-ex ClusterIP 172.30.59.126 <none> 8080/TCP 1h
docker-registry ClusterIP 172.30.51.148 <none> 5000/TCP 2d
dotnet-example ClusterIP 172.30.48.132 <none> 8080/TCP 55m
httpd-ex ClusterIP 172.30.1.29 <none> 8080/TCP 54m
kubernetes ClusterIP 172.30.0.1 <none> 443/TCP,53/UDP,53/TCP 2d
registry-console ClusterIP 172.30.240.45 <none> 9000/TCP 2d
router ClusterIP 172.30.85.194 <none> 80/TCP,443/TCP,1936/TCP 2d
[root@db6okdmaster2 ~]# oc get pods
NAME READY STATUS RESTARTS AGE
dancer-ex-1-build 0/1 Error 0 1h
docker-registry-1-8zt2j 1/1 Running 0 2d
httpd-ex-1-build 0/1 Error 0 55m
httpd-ex-2-build 0/1 Error 0 49m
registry-console-1-ljvj7 1/1 Running 0 2d
router-1-dhvrw 1/1 Running 0 2d
[root@db6okdnode2 ~]# nslookup docker-registry.default.svc
Server: 172.16.0.27
Address: 172.16.0.27#53
Name: docker-registry.default.svc.cluster.local
Address: 172.30.51.148
[root@db6okdinfra2 ~]# docker exec -it ae03baf3babd find /registry
/registry
[root@db6okdinfra2 ~]# docker login docker-registry.default.svc:5000
Username: admin
Password:
Error response from daemon: Get https://docker-registry.default.svc:5000/v2/: unauthorized: authentication required
[root@db6okdmaster2 ~]# docker login -u admin -p <key>172.30.51.148
Error response from daemon: Get https://172.30.51.148/v1/users/: dial tcp 172.30.51.148:443: connect: no route to host
[root@db6okdnode2 ~]# curl -k -v https://docker-registry.default.svc:5000
* About to connect() to docker-registry.default.svc port 5000 (#0)
* Trying 172.30.51.148...
* Connected to docker-registry.default.svc (172.30.51.148) port 5000 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* Operation timed out after 300457 milliseconds with 0 out of 0 bytes received
* Closing connection 0
curl: (28) Operation timed out after 300457 milliseconds with 0 out of 0 bytes received
@deevya2000 looks like you ran the new-app in the default namespace - in general this is not recommended.
Do you run into this issue if you create a new project first?
$ oc new-project test-httpd
$ oc new-app ...
I am getting this error even in a different namespace
[root@db6okdmaster2 ~]# oc get pods -n demo1
NAME READY STATUS RESTARTS AGE
phpdemo-1-build 0/1 Error 0 2d
phpdemo-2-build 0/1 Error 0 1h
Issues go stale after 90d of inactivity.
Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.
If this issue is safe to close now please do so with /close.
/lifecycle stale
Stale issues rot after 30d of inactivity.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.
If this issue is safe to close now please do so with /close.
/lifecycle rotten /remove-lifecycle stale
Rotten issues close after 30d of inactivity.
Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.
/close
@openshift-bot: Closing this issue.
In response to this:
Rotten issues close after 30d of inactivity.
Reopen the issue by commenting
/reopen. Mark the issue as fresh by commenting/remove-lifecycle rotten. Exclude this issue from closing again by commenting/lifecycle frozen./close
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.