openshift / origin

Conformance test suite for OpenShift
http://www.openshift.org
Apache License 2.0
8.48k stars 4.7k forks source link

Unable to create new app behind proxy oc new app #21185

Closed winkidzz closed 6 years ago

winkidzz commented 6 years ago

The oc new image throws lookup error. The calls to pull image is not going through proxy but using guest dns.

oc new-app https://github.com/sclorg/cakephp-ex --build-env HTTP_PROXY=http://10.0.2.2:3128 --build-env HTTPS_PROXY=http://10.0.2.2:3128 warning: Cannot check if git requires authentication. W1005 15:21:17.153512 26905 dockerimagelookup.go:233] Docker registry lookup failed: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 10.2.217.17:53: no such host error: no tags found on matching image stream: "openshift/php"

The image stream "openshift/php" exists, but it has no tags.

Use --allow-missing-imagestream-tags to use this image stream

Version

[root@localhost vagrant]# docker version Client: Version: 1.13.1 API version: 1.26 Package version: docker-1.13.1-75.git8633870.el7.centos.x86_64 Go version: go1.9.4 Git commit: 8633870/1.13.1 Built: Fri Sep 28 19:45:08 2018 OS/Arch: linux/amd64

Server: Version: 1.13.1 API version: 1.26 (minimum version 1.12) Package version: docker-1.13.1-75.git8633870.el7.centos.x86_64 Go version: go1.9.4 Git commit: 8633870/1.13.1 Built: Fri Sep 28 19:45:08 2018 OS/Arch: linux/amd64 Experimental: false

[root@localhost vagrant]# oc version oc v3.10.0+0c4577e-1 kubernetes v1.10.0+b81c8f8 features: Basic-Auth GSSAPI Kerberos SPNEGO

Server https://10.25.82.191:8443 openshift v3.10.0+fd501dd-48 kubernetes v1.10.0+b81c8f8

Steps To Reproduce
  1. vagrant up

Vagrant.configure("2") do |config|

config.vm.box = "centos/7" config.vm.box_download_insecure = true config.vm.provision :shell, path: "bootstrap.sh" config.vm.network "public_network"

config.vm.synced_folder ".", "/guest_host", disabled: false

config.vm.provider "virtualbox" do |vb|

  vb.memory = "12024"
  vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]

end if Vagrant.has_plugin?("vagrant-proxyconf") config.proxy.http = "http://10.0.2.2:3128" config.proxy.https = "http://10.0.2.2:3128" config.proxy.no_proxy = "localhost,10.25.82.191,,127.0.0.,10.,192.168.,172.,*.company.com,localhost.localdomain,172.30.1.1"

  1. oc cluster up --public-hostname=10.25.82.191 --http-proxy 'http://10.0.2.2:3128' --https-proxy 'http://10.0.2.2:3128' --no-proxy '172.17.0.0/16,localhost,.company.com,127.0.0.,10.,192.168.,172.*,localhost.localdomain,172.30.1.1'

OpenShift server started.

The server is accessible via web console at: https://10.25.82.191:8443

  1. oc new-app https://github.com/sclorg/cakephp-ex --build-env HTTP_PROXY=http://10.0.2.2:3128 --build-env HTTPS_PROXY=http://10.0.2.2:3128 --loglevel=8 I1005 15:35:03.009943 31344 loader.go:357] Config loaded from file /root/.kube/config I1005 15:35:03.015336 31344 repository.go:388] Executing git ls-remote https://github.com/sclorg/cakephp-ex I1005 15:35:04.025179 31344 sourcelookup.go:92] https://github.com/sclorg/cakephp-ex is a valid remote git repository I1005 15:35:04.025208 31344 newapp.go:285] treating https://github.com/sclorg/cakephp-ex as possible source repo I1005 15:35:04.025401 31344 sourcelookup.go:582] No source ref specified, using shallow git clone I1005 15:35:04.025410 31344 repository.go:388] Executing git clone --depth=1 --recursive https://github.com/sclorg/cakephp-ex /tmp/gen177569337 I1005 15:35:05.861943 31344 sourcelookup.go:313] Checking if https://github.com/sclorg/cakephp-ex requires authentication I1005 15:35:05.861960 31344 repository.go:388] Executing git ls-remote --heads https://github.com/sclorg/cakephp-ex I1005 15:35:05.861975 31344 repository.go:397] Environment: I1005 15:35:05.861978 31344 repository.go:399] - HOME=/tmp/githome224199236 I1005 15:35:05.861981 31344 repository.go:399] - GIT_SSH=/dev/null I1005 15:35:05.861984 31344 repository.go:399] - GIT_CONFIG_NOSYSTEM=true I1005 15:35:05.861987 31344 repository.go:399] - GIT_ASKPASS=true I1005 15:35:05.887161 31344 repository.go:456] Error executing command: exit status 128 warning: Cannot check if git requires authentication. I1005 15:35:05.887535 31344 imagestreamlookup.go:61] checking ImageStreams myproject/php with ref "latest" I1005 15:35:05.887682 31344 round_trippers.go:383] GET https://10.25.82.191:8443/apis/image.openshift.io/v1/namespaces/myproject/imagestreams I1005 15:35:05.887688 31344 round_trippers.go:390] Request Headers: I1005 15:35:05.887692 31344 round_trippers.go:393] Accept: application/json, / I1005 15:35:05.887695 31344 round_trippers.go:393] User-Agent: oc/v1.10.0+b81c8f8 (linux/amd64) kubernetes/b81c8f8 I1005 15:35:05.887698 31344 round_trippers.go:393] Authorization: Bearer 772pxk34OCkaNfKsMitFTOSuYAEC7rQdHgRjyUwTaZQ I1005 15:35:05.901199 31344 round_trippers.go:408] Response Status: 200 OK in 13 milliseconds I1005 15:35:05.901214 31344 round_trippers.go:411] Response Headers: I1005 15:35:05.901218 31344 round_trippers.go:414] Cache-Control: no-store I1005 15:35:05.901221 31344 round_trippers.go:414] Cache-Control: no-store I1005 15:35:05.901225 31344 round_trippers.go:414] Content-Type: application/json I1005 15:35:05.901228 31344 round_trippers.go:414] Date: Fri, 05 Oct 2018 15:35:05 GMT I1005 15:35:05.901231 31344 round_trippers.go:414] Content-Length: 189 I1005 15:35:05.901254 31344 request.go:897] Response Body: {"kind":"ImageStreamList","apiVersion":"image.openshift.io/v1","metadata":{"selfLink":"/apis/image.openshift.io/v1/namespaces/myproject/imagestreams","resourceVersion":"13232"},"items":[]} I1005 15:35:05.901412 31344 imagestreamlookup.go:61] checking ImageStreams openshift/php with ref "latest" I1005 15:35:05.901458 31344 round_trippers.go:383] GET https://10.25.82.191:8443/apis/image.openshift.io/v1/namespaces/openshift/imagestreams I1005 15:35:05.901463 31344 round_trippers.go:390] Request Headers: I1005 15:35:05.901467 31344 round_trippers.go:393] Accept: application/json, / I1005 15:35:05.901470 31344 round_trippers.go:393] User-Agent: oc/v1.10.0+b81c8f8 (linux/amd64) kubernetes/b81c8f8 I1005 15:35:05.901474 31344 round_trippers.go:393] Authorization: Bearer 772pxk34OCkaNfKsMitFTOSuYAEC7rQdHgRjyUwTaZQ I1005 15:35:05.907110 31344 round_trippers.go:408] Response Status: 200 OK in 5 milliseconds I1005 15:35:05.907130 31344 round_trippers.go:411] Response Headers: I1005 15:35:05.907137 31344 round_trippers.go:414] Date: Fri, 05 Oct 2018 15:35:05 GMT I1005 15:35:05.907141 31344 round_trippers.go:414] Cache-Control: no-store I1005 15:35:05.907145 31344 round_trippers.go:414] Cache-Control: no-store I1005 15:35:05.907156 31344 round_trippers.go:414] Content-Type: application/json I1005 15:35:05.907906 31344 request.go:897] Response Body: {"kind":"ImageStreamList","apiVersion":"image.openshift.io/v1","metadata":{"selfLink":"/apis/image.openshift.io/v1/namespaces/openshift/imagestreams","resourceVersion":"13232"},"items":[{"metadata":{"name":"dotnet","namespace":"openshift","selfLink":"/apis/image.openshift.io/v1/namespaces/openshift/imagestreams/dotnet","uid":"27b4f58d-c817-11e8-a07b-525400c9c704","resourceVersion":"947","generation":2,"creationTimestamp":"2018-10-04T20:50:41Z","annotations":{"kubectl.kubernetes.io/last-applied-configuration":"{\"apiVersion\":\"image.openshift.io/v1\",\"kind\":\"ImageStream\",\"metadata\":{\"annotations\":{\"openshift.io/display-name\":\".NET Core\"},\"name\":\"dotnet\",\"namespace\":\"openshift\"},\"spec\":{\"tags\":[{\"annotations\":{\"description\":\"Build and run .NET Core applications on CentOS 7. For more information about using this builder image, including OpenShift considerations, see https://github.com/redhat-developer/s2i-dotnetcore/tree/master/2.0/build/README.md.\\n\\nWARNING: By selecting this ta [truncated 110534 chars] I1005 15:35:05.912878 31344 imagestreamlookup.go:77] unscored dotnet: 1 I1005 15:35:05.912900 31344 imagestreamlookup.go:77] unscored httpd: 1 I1005 15:35:05.912906 31344 imagestreamlookup.go:77] unscored jenkins: 1 I1005 15:35:05.912912 31344 imagestreamlookup.go:77] unscored mariadb: 1 I1005 15:35:05.912917 31344 imagestreamlookup.go:77] unscored mongodb: 1 I1005 15:35:05.912923 31344 imagestreamlookup.go:77] unscored mysql: 1 I1005 15:35:05.912928 31344 imagestreamlookup.go:77] unscored nginx: 1 I1005 15:35:05.912933 31344 imagestreamlookup.go:77] unscored nodejs: 1 I1005 15:35:05.912938 31344 imagestreamlookup.go:77] unscored perl: 1 I1005 15:35:05.912948 31344 imagestreamlookup.go:146] no image recorded for openshift/php:latest I1005 15:35:05.912963 31344 imagestreamlookup.go:116] Adding Image stream "php" in project "openshift" as component match for "php" with score 0.5 I1005 15:35:05.912974 31344 imagestreamlookup.go:77] unscored postgresql: 1 I1005 15:35:05.912979 31344 imagestreamlookup.go:77] unscored python: 1 I1005 15:35:05.912984 31344 imagestreamlookup.go:77] unscored redis: 1 I1005 15:35:05.912989 31344 imagestreamlookup.go:77] unscored ruby: 1 I1005 15:35:05.912994 31344 imagestreamlookup.go:77] unscored wildfly: 1 I1005 15:35:05.913247 31344 round_trippers.go:383] GET https://10.25.82.191:8443/apis/image.openshift.io/v1/namespaces/myproject/imagestreams I1005 15:35:05.913256 31344 round_trippers.go:390] Request Headers: I1005 15:35:05.913261 31344 round_trippers.go:393] Accept: application/json, / I1005 15:35:05.913266 31344 round_trippers.go:393] User-Agent: oc/v1.10.0+b81c8f8 (linux/amd64) kubernetes/b81c8f8 I1005 15:35:05.913270 31344 round_trippers.go:393] Authorization: Bearer 772pxk34OCkaNfKsMitFTOSuYAEC7rQdHgRjyUwTaZQ I1005 15:35:05.916728 31344 round_trippers.go:408] Response Status: 200 OK in 3 milliseconds I1005 15:35:05.916764 31344 round_trippers.go:411] Response Headers: I1005 15:35:05.916772 31344 round_trippers.go:414] Content-Type: application/json I1005 15:35:05.916777 31344 round_trippers.go:414] Date: Fri, 05 Oct 2018 15:35:05 GMT I1005 15:35:05.916782 31344 round_trippers.go:414] Content-Length: 189 I1005 15:35:05.916786 31344 round_trippers.go:414] Cache-Control: no-store I1005 15:35:05.916790 31344 round_trippers.go:414] Cache-Control: no-store I1005 15:35:05.916829 31344 request.go:897] Response Body: {"kind":"ImageStreamList","apiVersion":"image.openshift.io/v1","metadata":{"selfLink":"/apis/image.openshift.io/v1/namespaces/myproject/imagestreams","resourceVersion":"13232"},"items":[]} I1005 15:35:05.917048 31344 round_trippers.go:383] GET https://10.25.82.191:8443/apis/image.openshift.io/v1/namespaces/openshift/imagestreams I1005 15:35:05.917066 31344 round_trippers.go:390] Request Headers: I1005 15:35:05.917071 31344 round_trippers.go:393] Accept: application/json, / I1005 15:35:05.917076 31344 round_trippers.go:393] User-Agent: oc/v1.10.0+b81c8f8 (linux/amd64) kubernetes/b81c8f8 I1005 15:35:05.917081 31344 round_trippers.go:393] Authorization: Bearer 772pxk34OCkaNfKsMitFTOSuYAEC7rQdHgRjyUwTaZQ I1005 15:35:05.923714 31344 round_trippers.go:408] Response Status: 200 OK in 6 milliseconds I1005 15:35:05.923730 31344 round_trippers.go:411] Response Headers: I1005 15:35:05.923735 31344 round_trippers.go:414] Cache-Control: no-store I1005 15:35:05.923738 31344 round_trippers.go:414] Cache-Control: no-store I1005 15:35:05.923741 31344 round_trippers.go:414] Content-Type: application/json I1005 15:35:05.923744 31344 round_trippers.go:414] Date: Fri, 05 Oct 2018 15:35:05 GMT I1005 15:35:05.925106 31344 request.go:897] Response Body: {"kind":"ImageStreamList","apiVersion":"image.openshift.io/v1","metadata":{"selfLink":"/apis/image.openshift.io/v1/namespaces/openshift/imagestreams","resourceVersion":"13232"},"items":[{"metadata":{"name":"dotnet","namespace":"openshift","selfLink":"/apis/image.openshift.io/v1/namespaces/openshift/imagestreams/dotnet","uid":"27b4f58d-c817-11e8-a07b-525400c9c704","resourceVersion":"947","generation":2,"creationTimestamp":"2018-10-04T20:50:41Z","annotations":{"kubectl.kubernetes.io/last-applied-configuration":"{\"apiVersion\":\"image.openshift.io/v1\",\"kind\":\"ImageStream\",\"metadata\":{\"annotations\":{\"openshift.io/display-name\":\".NET Core\"},\"name\":\"dotnet\",\"namespace\":\"openshift\"},\"spec\":{\"tags\":[{\"annotations\":{\"description\":\"Build and run .NET Core applications on CentOS 7. For more information about using this builder image, including OpenShift considerations, see https://github.com/redhat-developer/s2i-dotnetcore/tree/master/2.0/build/README.md.\\n\\nWARNING: By selecting this ta [truncated 110534 chars] I1005 15:35:05.929052 31344 imagestreamlookup.go:389] Checking imagestream openshift/dotnet for supports annotation "php" I1005 15:35:05.929157 31344 imagestreamlookup.go:389] Checking imagestream openshift/httpd for supports annotation "php" I1005 15:35:05.929170 31344 imagestreamlookup.go:389] Checking imagestream openshift/jenkins for supports annotation "php" I1005 15:35:05.929177 31344 imagestreamlookup.go:389] Checking imagestream openshift/mariadb for supports annotation "php" I1005 15:35:05.929183 31344 imagestreamlookup.go:389] Checking imagestream openshift/mongodb for supports annotation "php" I1005 15:35:05.929189 31344 imagestreamlookup.go:389] Checking imagestream openshift/mysql for supports annotation "php" I1005 15:35:05.929196 31344 imagestreamlookup.go:389] Checking imagestream openshift/nginx for supports annotation "php" I1005 15:35:05.929227 31344 imagestreamlookup.go:389] Checking imagestream openshift/nodejs for supports annotation "php" I1005 15:35:05.929238 31344 imagestreamlookup.go:389] Checking imagestream openshift/perl for supports annotation "php" I1005 15:35:05.929245 31344 imagestreamlookup.go:389] Checking imagestream openshift/php for supports annotation "php" I1005 15:35:05.929253 31344 imagestreamlookup.go:389] Checking imagestream openshift/postgresql for supports annotation "php" I1005 15:35:05.929258 31344 imagestreamlookup.go:389] Checking imagestream openshift/python for supports annotation "php" I1005 15:35:05.929266 31344 imagestreamlookup.go:389] Checking imagestream openshift/redis for supports annotation "php" I1005 15:35:05.929271 31344 imagestreamlookup.go:389] Checking imagestream openshift/ruby for supports annotation "php" I1005 15:35:05.929280 31344 imagestreamlookup.go:389] Checking imagestream openshift/wildfly for supports annotation "php" I1005 15:35:05.929317 31344 dockerimagelookup.go:84] checking remote registry for "php" I1005 15:35:05.929699 31344 request.go:897] Request Body: {"kind":"ImageStreamImport","apiVersion":"image.openshift.io/v1","metadata":{"name":"newapp","creationTimestamp":null},"spec":{"import":false,"images":[{"from":{"kind":"DockerImage","name":"php"},"importPolicy":{},"referencePolicy":{"type":""}}]},"status":{}} I1005 15:35:05.929742 31344 round_trippers.go:383] POST https://10.25.82.191:8443/apis/image.openshift.io/v1/namespaces/myproject/imagestreamimports I1005 15:35:05.929748 31344 round_trippers.go:390] Request Headers: I1005 15:35:05.929751 31344 round_trippers.go:393] User-Agent: oc/v1.10.0+b81c8f8 (linux/amd64) kubernetes/b81c8f8 I1005 15:35:05.929755 31344 round_trippers.go:393] Authorization: Bearer 772pxk34OCkaNfKsMitFTOSuYAEC7rQdHgRjyUwTaZQ I1005 15:35:05.929759 31344 round_trippers.go:393] Content-Type: application/json I1005 15:35:05.929815 31344 round_trippers.go:393] Accept: application/json, / I1005 15:35:05.946824 31344 round_trippers.go:408] Response Status: 201 Created in 16 milliseconds I1005 15:35:05.946843 31344 round_trippers.go:411] Response Headers: I1005 15:35:05.946849 31344 round_trippers.go:414] Cache-Control: no-store I1005 15:35:05.946854 31344 round_trippers.go:414] Cache-Control: no-store I1005 15:35:05.946858 31344 round_trippers.go:414] Content-Type: application/json I1005 15:35:05.946874 31344 round_trippers.go:414] Date: Fri, 05 Oct 2018 15:35:05 GMT I1005 15:35:05.946880 31344 round_trippers.go:414] Content-Length: 838 I1005 15:35:05.946900 31344 request.go:897] Response Body: {"kind":"ImageStreamImport","apiVersion":"image.openshift.io/v1","metadata":{"name":"newapp","namespace":"myproject","selfLink":"/apis/image.openshift.io/v1/namespaces/myproject/imagestreamimports/newapp","uid":"3be4c2ca-c8b4-11e8-b4d1-525400c9c704","creationTimestamp":"2018-10-05T15:35:05Z"},"spec":{"import":false,"images":[{"from":{"kind":"DockerImage","name":"php"},"importPolicy":{},"referencePolicy":{"type":"Source"}}]},"status":{"images":[{"status":{"metadata":{},"status":"Failure","message":"Internal error occurred: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 10.2.217.17:53: no such host","reason":"InternalError","details":{"causes":[{"message":"Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 10.2.217.17:53: no such host"}]},"code":500},"tag":"latest"}]}} I1005 15:35:05.947189 31344 dockerimagelookup.go:227] image import failed: image.ImageImportStatus{Tag:"latest", Status:v1.Status{TypeMeta:v1.TypeMeta{Kind:"", APIVersion:""}, ListMeta:v1.ListMeta{SelfLink:"", ResourceVersion:"", Continue:""}, Status:"Failure", Message:"Internal error occurred: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 10.2.217.17:53: no such host", Reason:"InternalError", Details:(v1.StatusDetails)(0xc420aff980), Code:500}, Image:(image.Image)(nil)} W1005 15:35:05.947221 31344 dockerimagelookup.go:233] Docker registry lookup failed: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 10.2.217.17:53: no such host I1005 15:35:05.947230 31344 dockerimagelookup.go:103] checking local Docker daemon for "php" F1005 15:35:05.951150 31344 helpers.go:119] error: no tags found on matching image stream: "openshift/php"

The image stream "openshift/php" exists, but it has no tags.

Use --allow-missing-imagestream-tags to use this image stream

Current Result

error

Expected Result

new application created in os

winkidzz commented 6 years ago

Here is minishift having same error

From openshift web console:

An error occurred connecting to the server. Failed to get imagestreamtags/image.openshift.io/v1/wildfly:12.0 (status 404) Refresh

from oc command line

C:\minishift>oc new-app centos/ruby-22-centos7~https://github.com/openshift/ruby -ex.git -loglevel=8 W1008 10:31:08.394244 26748 dockerimagelookup.go:233] Docker registry lookup f ailed: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker. io on 10.0.2.3:53: no such host error: unable to locate any images in image streams, local docker images with na me "centos/ruby-22-centos7"

jwforres commented 6 years ago

@openshift/sig-developer-experience

bparees commented 6 years ago

W1005 15:21:17.153512 26905 dockerimagelookup.go:233] Docker registry lookup failed: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 10.2.217.17:53: no such host

If you want oc new-app to use a proxy to talk to docker.io, you need to set HTTP_PROXY/HTTPS_PROXY in the environment new-app is running under so it can reach docker.io. That is unrelated to the proxy arguments you are passing to new-app.

error: no tags found on matching image stream: "openshift/php" The image stream "openshift/php" exists, but it has no tags.

If you want new-app to use an imagestream, then you need to ensure your imagestreams are actually present+imported in your cluster, so you'll need to investigate why the php imagestream has not successfully imported tags.

winkidzz commented 6 years ago

Perfect! That was my understanding. The minishift is recreated with below proxy variables.

minishift.exe --vm-driver=virtualbox --docker-env HTTP_PROXY=http://user:pwd@host.company.com:80 --docker-env NO_PROXY=172.30.1.1 --docker-env HTTPS_PROXY=http://user:pwd@host.company.com:80 --http-proxy=http://user:pwd@host.company.com:80 --https-proxy=http://user:pwd@host.company.com:80 --iso-url b2d start

Here is my environment which holds both the proxy values.

docker@minishift:~$ env HTTPS_PROXY=http://user:mypassischaracter@host.company.com:80 no_proxy=localhost,127.0.0.1,172.30.1.1,192.168.99.100,192.168.99.1 SSH_CLIENT=10.0.2.2 60256 22 MAIL=/var/mail/docker USER=docker SHLVL=1 HOME=/home/docker NO_PROXY=localhost,127.0.0.1,172.30.1.1,192.168.99.100,192.168.99.1 SSH_TTY=/dev/pts/0 PAGER=less -EM PS1=\u@\h:\w\$ ENV=/home/docker/.ashrc BACKUP=1 https_proxy=http://user:mypassischaracter@host.company.com:80 LOGNAME=docker http_proxy=http://user:mypassischaracter@host.company.com:80 TERM=xterm PATH=/home/docker/.local/bin:/usr/local/sbin:/usr/local/bin:/apps/bin:/usr/sbin:/usr/bin:/sbin:/bin G_FILENAME_ENCODING=iso8859-1 LANG=C MANPAGER=less -isR SHELL=/bin/sh FLWM_TITLEBAR_COLOR=58:7D:AA PWD=/home/docker SSH_CONNECTION=10.0.2.2 60256 10.0.2.15 22 HTTP_PROXY=http://user:mypassischaracter@host.company.com:80 EDITOR=vi

The oc-newapp is notable to use this. I had this working last year with minikube unfortunately with latest version I am stuck. Please let me know if you would like more details or dumps and i would be happy to provide.

ngwmm commented 5 years ago

I have the same problem. I am with win10+hyperv+nat behind a corporate proxy.

Does anyone know how to fix the problem?

bparees commented 5 years ago

new-app uses nothing specific, standard golang libs which respect the traditional http/https proxy env vars.

the issue you are hitting is cluster-side. The imagestreamimport failed within the cluster because the cluster could not reach docker.io to do the import.

bparees commented 5 years ago
I0919 15:46:10.958038 5572 request.go:897] Response Body: {"kind":"ImageStreamImport","apiVersion":"image.openshift.io/v1","metadata":{"name":"newapp","namespace":"myproject","selfLink":"/apis/image.openshift.io/v1/namespaces/myproject/imagestreamimports/newapp","uid":"d632ab06-dae3-11e9-8b28-080027d1cfc5","creationTimestamp":"2019-09-19T13:46:09Z"},"spec":{"import":false,"images":[{"from":{"kind":"DockerImage","name":"nodejs"},"importPolicy":{},"referencePolicy":{"type":"Source"}}]},"status":{"images":[{"status":{"metadata":{},"status":"Failure","message":"Internal error occurred: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 10.0.2.3:53: no such host","reason":"InternalError","details":{"causes":[{"message":"Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 10.0.2.3:53: no such host"}]},"code":500},"tag":"latest"}]}}
I0919 15:46:10.960038 5572 dockerimagelookup.go:227] image import failed: image.ImageImportStatus{Tag:"latest", Status:v1.Status{TypeMeta:v1.TypeMeta{Kind:"", APIVersion:""}, ListMeta:v1.ListMeta{SelfLink:"", ResourceVersion:"", Continue:""}, Status:"Failure", Message:"Internal error occurred: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 10.0.2.3:53: no such host", Reason:"InternalError", Details:(*v1.StatusDetails)(0xc04373bda0), Code:500}, Image:(*image.Image)(nil)}
W0919 15:46:10.967038 5572 dockerimagelookup.go:233] Docker registry lookup failed: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 10.0.2.3:53: no such host
F0919 15:46:10.967538 5572 helpers.go:119] error: no tags found on matching image stream: "openshift/nodejs"