-
Notifications
You must be signed in to change notification settings - Fork 737
Closed as not planned
Closed as not planned
Copy link
Labels
bugSomething isn't workingSomething isn't workingduplicateThis issue or pull request already existsThis issue or pull request already existskind/externalkind/external/kata
Description
ctr can create a bind mount for kata:
# ctr run --rm --runtime=io.containerd.kata.v2 --mount type=bind,src=/foo,dst=/mnt,options=rbind:ro docker.io/library/alpine:latest foo cat /mnt/hello
helloBut nerdctl cannot:
# nerdctl run -it --rm --runtime=io.containerd.kata.v2 -v /foo:/mnt:ro alpine cat /mnt/hello
FATA[0004] failed to create shim task: ENOENT: No such file or directory: unknowndaemon logs:
time="2022-06-07T16:56:00.136765093+09:00" level=error msg="createContainer failed" error="rpc error: code = Internal desc = ENOENT: No such file or directory" name=containerd-shim-v2 pid=18204 san
dbox=e5ee2f21810d1728ae170093c2bdbc66c56632ea51a22feb288c8c55933c06fe source=virtcontainers subsystem=kata_agent
time="2022-06-07T16:56:00.139986567+09:00" level=error msg="container create failed" container=e5ee2f21810d1728ae170093c2bdbc66c56632ea51a22feb288c8c55933c06fe error="rpc error: code = Internal des
c = ENOENT: No such file or directory" name=containerd-shim-v2 pid=18204 sandbox=e5ee2f21810d1728ae170093c2bdbc66c56632ea51a22feb288c8c55933c06fe source=virtcontainers subsystem=container
time="2022-06-07T16:56:00.140813712+09:00" level=warning msg="Could not umount" container=e5ee2f21810d1728ae170093c2bdbc66c56632ea51a22feb288c8c55933c06fe error="no such file or directory" host-pat
h=/run/kata-containers/shared/sandboxes/e5ee2f21810d1728ae170093c2bdbc66c56632ea51a22feb288c8c55933c06fe/mounts/e5ee2f21810d1728ae170093c2bdbc66c56632ea51a22feb288c8c55933c06fe-66c24f7992fbdd0f-res
olv.conf name=containerd-shim-v2 pid=18204 sandbox=e5ee2f21810d1728ae170093c2bdbc66c56632ea51a22feb288c8c55933c06fe source=virtcontainers subsystem=container
time="2022-06-07T16:56:00.141915576+09:00" level=error msg="rollback failed unmountHostMounts()" container=e5ee2f21810d1728ae170093c2bdbc66c56632ea51a22feb288c8c55933c06fe error="no such file or di
rectory" name=containerd-shim-v2 pid=18204 sandbox=e5ee2f21810d1728ae170093c2bdbc66c56632ea51a22feb288c8c55933c06fe source=virtcontainers subsystem=container
time="2022-06-07T16:56:00.142611241+09:00" level=warning error="no such file or directory" name=containerd-shim-v2 pid=18204 sandbox=e5ee2f21810d1728ae170093c2bdbc66c56632ea51a22feb288c8c55933c06fe
share-dir=/run/kata-containers/shared/sandboxes/e5ee2f21810d1728ae170093c2bdbc66c56632ea51a22feb288c8c55933c06fe/mounts/e5ee2f21810d1728ae170093c2bdbc66c56632ea51a22feb288c8c55933c06fe/rootfs sour
ce=virtcontainers subsystem=mount
time="2022-06-07T16:56:00.143050562+09:00" level=warning msg="Could not remove container share dir" error="no such file or directory" name=containerd-shim-v2 pid=18204 sandbox=e5ee2f21810d1728ae170
093c2bdbc66c56632ea51a22feb288c8c55933c06fe share-dir=/run/kata-containers/shared/sandboxes/e5ee2f21810d1728ae170093c2bdbc66c56632ea51a22feb288c8c55933c06fe/mounts/e5ee2f21810d1728ae170093c2bdbc66c
56632ea51a22feb288c8c55933c06fe source=virtcontainers subsystem="filesystem share"
time="2022-06-07T16:56:00.313309291+09:00" level=warning msg="failed to cleanup network" error="failed to get netns /var/run/netns/cnitest-fe4d3b36-d71f-fd48-8dab-954a377fe5a0: failed to Statfs \"/
var/run/netns/cnitest-fe4d3b36-d71f-fd48-8dab-954a377fe5a0\": no such file or directory" id=/var/run/netns/cnitest-fe4d3b36-d71f-fd48-8dab-954a377fe5a0 name=containerd-shim-v2 pid=18204 sandbox=e5e
e2f21810d1728ae170093c2bdbc66c56632ea51a22feb288c8c55933c06fe source=katautils
INFO[2022-06-07T16:56:00.318329756+09:00] shim disconnected id=e5ee2f21810d1728ae170093c2bdbc66c56632ea51a22feb288c8c55933c06fe
WARN[2022-06-07T16:56:00.318493028+09:00] cleaning up after shim disconnected id=e5ee2f21810d1728ae170093c2bdbc66c56632ea51a22feb288c8c55933c06fe namespace=default
INFO[2022-06-07T16:56:00.318521476+09:00] cleaning up dead shim
ERRO[2022-06-07T16:56:00.380139510+09:00] failed to delete cmd="/opt/kata/bin/containerd-shim-kata-v2 -namespace default -address /run/containerd/containerd.sock -publi
sh-binary /usr/local/bin/containerd -id e5ee2f21810d1728ae170093c2bdbc66c56632ea51a22feb288c8c55933c06fe -bundle /run/containerd/io.containerd.runtime.v2.task/default/e5ee2f21810d1728ae170093c2bdbc
66c56632ea51a22feb288c8c55933c06fe delete" error="exit status 1"
WARN[2022-06-07T16:56:00.380258510+09:00] failed to clean up after shim disconnected error="time=\"2022-06-07T16:56:00+09:00\" level=warning msg=\"failed to cleanup container\" container=e5ee2f2
1810d1728ae170093c2bdbc66c56632ea51a22feb288c8c55933c06fe error=\"open /run/vc/sbs/e5ee2f21810d1728ae170093c2bdbc66c56632ea51a22feb288c8c55933c06fe: no such file or directory\" name=containerd-shim-v2 pid=18323 sandbox=e5ee2f21810d1728ae170093c2bdbc66c56632ea51a22feb288c8c55933c06fe source=containerd-kata-shim-v2\nio.containerd.kata.v2: open /run/vc/sbs/e5ee2f21810d1728ae170093c2bdbc66c56632
ea51a22feb288c8c55933c06fe: no such file or directory: exit status 1" id=e5ee2f21810d1728ae170093c2bdbc66c56632ea51a22feb288c8c55933c06fe namespace=default
ERRO[2022-06-07T16:56:00.380535611+09:00] copy shim log error="read /proc/self/fd/17: file already closed"
containerd: 1.6.6
nerdctl: b702a25
kata: 2.5.0-alpha1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingduplicateThis issue or pull request already existsThis issue or pull request already existskind/externalkind/external/kata