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

Load container images phase fails with permission denied #46

Open
xagent003 opened this issue Jun 6, 2022 · 0 comments
Open

Load container images phase fails with permission denied #46

xagent003 opened this issue Jun 6, 2022 · 0 comments

Comments

@xagent003
Copy link
Contributor

The load container images phase is failing with permission denied. Error is coming from the external containerd package where it tries to load the client:

client, err := containerd.New(constants.ContainerdSocket, containerd.WithDefaultPlatform(platform))

Is it a file permissions issue?

{"L":"INFO","T":"2022-06-06T21:08:50.227Z","C":"container_runtime/load_images.go:79","M":"Running Start of phase: Load user images to container runtime"}
{"L":"ERROR","T":"2022-06-06T21:08:50.230Z","C":"container_runtime/load_images.go:107","M":"could not load images from : /var/opt/pf9/images/images.tar.gz: failed to create container runtime client: failed to dial \"/run/containerd/containerd.sock\": connection error: desc = \"transport: error while dialing: dial unix /run/containerd/containerd.sock: connect: permission denied\""}
{"L":"WARN","T":"2022-06-06T21:08:50.230Z","C":"nodelet/nodelet.go:410","M":"Sunpike communication is disabled; not sending an update to sunpike-conductor."}
{"L":"WARN","T":"2022-06-06T21:08:50.231Z","C":"nodelet/nodelet.go:410","M":"Sunpike communication is disabled; not sending an update to sunpike-conductor."}
{"L":"WARN","T":"2022-06-06T21:08:50.231Z","C":"nodelet/nodelet.go:210","M":"Failed to start kube service at step: Load user images to container runtime"}
{"L":"WARN","T":"2022-06-06T21:08:50.231Z","C":"nodelet/nodelet.go:410","M":"Sunpike communication is disabled; not sending an update to sunpike-conductor."}
{"L":"WARN","T":"2022-06-06T21:08:50.232Z","C":"nodelet/nodelet.go:428","M":"Sunpike communication is disabled; not sending an update to sunpike-conductor."}
{"L":"INFO","T":"2022-06-06T21:08:50.233Z","C":"nodelet/nodelet.go:170","M":"Reconcile completed."}
^C

[root@arjunairc7801 ~]# ls -alh /var/opt/pf9/images/images.tar.gz
-rw-r--r--. 1 pf9 pf9group 116M Jun  6 21:05 /var/opt/pf9/images/images.tar.gz
[root@arjunairc7801 ~]# ls -alh /run/containerd/containerd.sock
srw-rw----. 1 root root 0 Jun  6 21:06 /run/containerd/containerd.sock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant