kubekey icon indicating copy to clipboard operation
kubekey copied to clipboard

pull image failed: Failed to exec command: sudo -E /bin/bash -c "env PATH=$PATH crictl pull kubesphere/pause:3.8"

Open jiangxuhui opened this issue 2 years ago • 2 comments

What is version of KubeKey has the issue?

kk version: &version.Info{Major:"3", Minor:"0", GitVersion:"v3.0.7", GitCommit:"e755baf67198d565689d7207378174f429b508ba", GitTreeState:"clean", BuildDate:"2023-01-18T01:57:24Z", GoVersion:"go1.19.2", Compiler:"gc", Platform:"linux/amd64"}

What is your os environment?

Ubuntu 22.04.2 LTS

KubeKey config file

No response

A clear and concise description of what happend.

I install kubespehre+k8s, command below:

./kk create cluster --with-kubernetes v1.26.0 --with-kubesphere v3.3.2 --container-manager containerd

image

but, image

Relevant log output

14:01:50 CST [InstallContainerModule] Enable containerd
14:01:50 CST skipped: [master]
14:01:50 CST [PullModule] Start to pull images on all nodes
14:01:50 CST message: [master]
downloading image: kubesphere/pause:3.8
14:01:50 CST message: [master]
pull image failed: Failed to exec command: sudo -E /bin/bash -c "env PATH=$PATH crictl pull kubesphere/pause:3.8"
E0613 14:01:50.213000    1991 remote_image.go:218] "PullImage from image service failed" err="rpc error: code = Unimplemented desc = unknown service runtime.v1alpha2.ImageService" image="kubesphere/pause:3.8"
FATA[0000] pulling image: rpc error: code = Unimplemented desc = unknown service runtime.v1alpha2.ImageService: Process exited with status 1
14:01:50 CST retry: [master]
14:01:55 CST message: [master]
downloading image: kubesphere/pause:3.8
14:01:55 CST message: [master]
pull image failed: Failed to exec command: sudo -E /bin/bash -c "env PATH=$PATH crictl pull kubesphere/pause:3.8"
E0613 14:01:55.240377    2003 remote_image.go:218] "PullImage from image service failed" err="rpc error: code = Unimplemented desc = unknown service runtime.v1alpha2.ImageService" image="kubesphere/pause:3.8"
FATA[0000] pulling image: rpc error: code = Unimplemented desc = unknown service runtime.v1alpha2.ImageService: Process exited with status 1
14:01:55 CST retry: [master]
14:02:00 CST message: [master]
downloading image: kubesphere/pause:3.8
14:02:00 CST message: [master]
pull image failed: Failed to exec command: sudo -E /bin/bash -c "env PATH=$PATH crictl pull kubesphere/pause:3.8"
E0613 14:02:00.278042    2015 remote_image.go:218] "PullImage from image service failed" err="rpc error: code = Unimplemented desc = unknown service runtime.v1alpha2.ImageService" image="kubesphere/pause:3.8"
FATA[0000] pulling image: rpc error: code = Unimplemented desc = unknown service runtime.v1alpha2.ImageService: Process exited with status 1
14:02:00 CST failed: [master]
error: Pipeline[CreateClusterPipeline] execute failed: Module[PullModule] exec failed:
failed: [master] [PullImages] exec failed after 3 retires: pull image failed: Failed to exec command: sudo -E /bin/bash -c "env PATH=$PATH crictl pull kubesphere/pause:3.8"
E0613 14:02:00.278042    2015 remote_image.go:218] "PullImage from image service failed" err="rpc error: code = Unimplemented desc = unknown service runtime.v1alpha2.ImageService" image="kubesphere/pause:3.8"
FATA[0000] pulling image: rpc error: code = Unimplemented desc = unknown service runtime.v1alpha2.ImageService: Process exited with status 1
root@master:/usr/local/k8s# ./kk version
kk version: &version.Info{Major:"3", Minor:"0", GitVersion:"v3.0.7", GitCommit:"e755baf67198d565689d7207378174f429b508ba", GitTreeState:"clean", BuildDate:"2023-01-18T01:57:24Z", GoVersion:"go1.19.2", Compiler:"gc", Platform:"linux/amd64"}

Additional information

No response

jiangxuhui avatar Jun 13 '23 06:06 jiangxuhui

This could be that you are using an incorrect containerd configuration (maybe from a Docker install). you can refer to: https://github.com/containerd/containerd/blob/main/docs/cri/crictl.md#download-and-inspect-a-container-image. tips. When there is no CRI on your server, KK will automatically help you install it.

redscholar avatar Jun 14 '23 06:06 redscholar

same error. you can install crictl before ./kk create cluster .......

boot-vue avatar Aug 28 '23 14:08 boot-vue