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
Race when delete bundle. #802
Comments
I have a similar issue. # ctr run --id mytest -t docker.io/library/busybox:latest
/ # exit
# ctr run --id mytest -t docker.io/library/busybox:latest
/ # exit
# ctr run --id mytest -t docker.io/library/busybox:latest
ERRO[0000] console resize error="rpc error: code = 2 desc = bad file descriptor"
******block here******
# ps -ef |grep mytest
root 10762 7602 0 11:27 pts/1 00:00:00 ctr run --id mytest -t docker.io/library/busybox:latest
root 10803 10770 0 11:27 pts/5 00:00:00 runc --log /run/containerd/linux/mytest/log.json --log-format json start mytest
root 10812 10499 0 11:27 pts/10 00:00:00 grep --color=auto mytest The status is # ctr ls
ID PID STATUS
mytest 10787 STOPPED |
@Random-Liu you are using the shim right? |
Also how did you run with naive? Are you on OSX or something? Running on linux? |
@crosbymichael Yeah, I'm using the shim. And running on linux:
I'm testing on my own desktop, which doesn't have overlay working. So I use the naive plugin. |
@miaoyq are you using naive also? |
@Random-Liu outside of the naive issue that I'm looking into, how do you not have overlay working on a 4.4 ubuntu kernel? Without having devmapper in containerd, naive is basically the worst option you can pick, its not even compiled into containerd on linux and is no where close to anything that can or should be used in a production/dev setup. |
It's a google internal distribution, I've tried that containerd with overlay doesn't work. We won't use naive in the production environment, this is only for my own trial. Post the issue here because this may be a potential bug. |
@crosbymichael Yeah, I'm running containerd --log-level debug Running on linux also: Linux ubuntu 4.2.0-27-generic #32~14.04.1-Ubuntu SMP Fri Jan 22 15:32:26 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux |
@crosbymichael It's weird that I could not reproduce this anymore... Even with the version I was using... @miaoyq Do you still have this issue? |
@Random-Liu Yes, I still can reproduce this issue with the version #819 |
@miaoyq your error message is totally different and is a separate issue that has to do with IO, not with an EBUSY on the filesystem. |
@crosbymichael Indeed, I will create a new issue for it. |
Close this issue based on: |
When
Delete
a container, it quite frequently fails to delete the bundle with errordevice or resource busy
.https://github.com/containerd/containerd/blob/master/linux/runtime.go#L140-L144
I'm using naive snapshot plugin. This is very easy to reproduce in my environment, not sure about others.
The text was updated successfully, but these errors were encountered: