Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kube-ovn 的pod 一直显示 ImageInspectError,无法拉去镜像 #2730

Closed
ARPmt opened this issue Apr 27, 2023 · 3 comments · Fixed by #2746
Closed

kube-ovn 的pod 一直显示 ImageInspectError,无法拉去镜像 #2730

ARPmt opened this issue Apr 27, 2023 · 3 comments · Fixed by #2746
Assignees
Projects

Comments

@ARPmt
Copy link

ARPmt commented Apr 27, 2023

Expected Behavior

部署 kube-ovn ,kube-ovn 的pod 一直显示 ImageInspectError,通过 Install.sh 脚本部署
kubectl describe 查看pod,提示 Failed to inspect image "kubeovn/kube-ovn:v1.11.3": rpc error: code = Unknown desc = short-name "kubeovn/kube-ovn:v1.11.0" did not resolve to an alias and no unqualified-search registries are defined in "/etc/containers/registries.conf"

kubectl get pods -A -o wide

NAMESPACE     NAME                           READY   STATUS              RESTARTS   AGE   IP             NODE   NOMINATED NODE   READINESS GATES
kube-system   coredns-787d4945fb-bfs5h       0/1     ContainerCreating   0          21m   <none>         t119   <none>           <none>
kube-system   coredns-787d4945fb-f2fzz       0/1     ContainerCreating   0          21m   <none>         t119   <none>           <none>
kube-system   etcd-t119                      1/1     Running             29         21m   172.16.1.119   t119   <none>           <none>
kube-system   kube-apiserver-t119            1/1     Running             14         21m   172.16.1.119   t119   <none>           <none>
kube-system   kube-controller-manager-t119   1/1     Running             2          21m   172.16.1.119   t119   <none>           <none>
kube-system   kube-proxy-2r299               1/1     Running             0          21m   172.16.1.119   t119   <none>           <none>
kube-system   kube-scheduler-t119            1/1     Running             101        21m   172.16.1.119   t119   <none>           <none>
kube-system   ovn-central-b487f6c8-jnzpt     0/1     ImageInspectError   0          3m    172.16.1.119   t119   <none>           <none>
kube-system   ovs-ovn-kshkp                  0/1     ImageInspectError   0          3m    172.16.1.119   t119   <none>           <none>

kubectl describe -n kube-system pod ovn-central-b487f6c8-jnzpt

...
Events:
  Type     Reason         Age               From               Message
  ----     ------         ----              ----               -------
  Normal   Scheduled      18s               default-scheduler  Successfully assigned kube-system/ovn-central-b487f6c8-jnzpt to t119
  Warning  InspectFailed  5s (x3 over 18s)  kubelet            Failed to inspect image "kubeovn/kube-ovn:v1.11.3": rpc error: code = Unknown desc = short-name "kubeovn/kube-ovn:v1.11.0" did not resolve to an alias and no unqualified-search registries are defined in "/etc/containers/registries.conf"
  Warning  Failed         5s (x3 over 18s)  kubelet            Error: ImageInspectError

Actual Behavior

Steps to Reproduce the Problem

  1. 初始化k8s集群
    kubeadm init --apiserver-advertise-address 172.16.1.119 --kubernetes-version 1.26.0 --service-cidr 10.20.0.0/16

  2. 安装kubu-ovn
    wget https://raw.githubusercontent.com/kubeovn/kube-ovn/release-1.11/dist/images/install.sh
    bash install.sh

Additional Info

  • Kubernetes version:

    Output of kubectl version:

v1.26.0


- kube-ovn version:

v1.111.3


- operation-system/kernel version:

Linux t119 5.15.0-71-generic #78-Ubuntu SMP Tue Apr 18 09:00:29 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux


<!-- Any other additional information -->
@ARPmt
Copy link
Author

ARPmt commented Apr 27, 2023

测试部署机器网络正常

root@t119:/opt/kube-ovn# ping www.google.com
PING www.google.com (172.217.24.228) 56(84) bytes of data.
64 bytes from hkg12s34-in-f4.1e100.net (172.217.24.228): icmp_seq=1 ttl=115 time=1.20 ms
64 bytes from hkg12s34-in-f4.1e100.net (172.217.24.228): icmp_seq=2 ttl=115 time=1.18 ms
^C
--- www.google.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 1.182/1.190/1.199/0.008 ms
root@t119:/opt/kube-ovn# ^C
root@t119:/opt/kube-ovn# ping www.github.com
PING github.com (20.205.243.166) 56(84) bytes of data.
64 bytes from 20.205.243.166 (20.205.243.166): icmp_seq=1 ttl=110 time=34.8 ms
64 bytes from 20.205.243.166 (20.205.243.166): icmp_seq=2 ttl=110 time=34.8 ms
64 bytes from 20.205.243.166 (20.205.243.166): icmp_seq=3 ttl=110 time=34.8 ms
^C
--- github.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 34.808/34.811/34.816/0.003 ms
root@t119:/opt/kube-ovn# ping www.baidu.com
PING www.wshifen.com (103.235.46.40) 56(84) bytes of data.
64 bytes from 103.235.46.40 (103.235.46.40): icmp_seq=1 ttl=52 time=2.27 ms
64 bytes from 103.235.46.40 (103.235.46.40): icmp_seq=2 ttl=52 time=2.26 ms
64 bytes from 103.235.46.40 (103.235.46.40): icmp_seq=3 ttl=52 time=2.19 ms
^C
--- www.wshifen.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2004ms
rtt min/avg/max/mdev = 2.194/2.239/2.265/0.031 ms

@zhangzujian
Copy link
Member

参考:Container image short names in Podman

@oilbeater oilbeater added this to To do in 2023-5 via automation May 3, 2023
@oilbeater oilbeater self-assigned this May 3, 2023
@oilbeater
Copy link
Collaborator

@ARPmt Please change the REGISTRY in the install.sh to docker.io/kubeovn

2023-5 automation moved this from To do to Done May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

3 participants