This repository has been archived by the owner on May 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 373
delete sandbox failed and resource left when pod_container type container fail to start #2882
Labels
Comments
flyflypeng
added a commit
to flyflypeng/runtime
that referenced
this issue
Aug 8, 2020
fixes: kata-containers#2882 reason: If error happens after container create and before sandbox updateResouce in the `CreateContainer()`, then delete sandbox forcefully will return error because s.config.Containers config not flushed into persist store. Signed-off-by: jiangpengfei <[email protected]>
flyflypeng
added a commit
to flyflypeng/runtime
that referenced
this issue
Aug 11, 2020
fixes: kata-containers#2882 reason: If error happens after container create and before sandbox updateResouce in the `CreateContainer()`, then delete sandbox forcefully will return error because s.config.Containers config not flushed into persist store. Signed-off-by: jiangpengfei <[email protected]>
flyflypeng
added a commit
to flyflypeng/runtime
that referenced
this issue
Aug 11, 2020
fixes: kata-containers#2882 reason: If error happens after container create and before sandbox updateResouce in the `CreateContainer()`, then delete sandbox forcefully will return error because s.config.Containers config not flushed into persist store. Signed-off-by: jiangpengfei <[email protected]>
jcvenegas
pushed a commit
to jcvenegas/runtime
that referenced
this issue
Oct 19, 2020
fixes: kata-containers#2882 reason: If error happens after container create and before sandbox updateResouce in the `CreateContainer()`, then delete sandbox forcefully will return error because s.config.Containers config not flushed into persist store. Signed-off-by: jiangpengfei <[email protected]>
jcvenegas
pushed a commit
to jcvenegas/runtime
that referenced
this issue
Oct 19, 2020
fixes: kata-containers#2882 reason: If error happens after container create and before sandbox updateResouce in the `CreateContainer()`, then delete sandbox forcefully will return error because s.config.Containers config not flushed into persist store. Signed-off-by: jiangpengfei <[email protected]>
jcvenegas
pushed a commit
to jcvenegas/runtime
that referenced
this issue
Oct 20, 2020
fixes: kata-containers#2882 reason: If error happens after container create and before sandbox updateResouce in the `CreateContainer()`, then delete sandbox forcefully will return error because s.config.Containers config not flushed into persist store. Signed-off-by: jiangpengfei <[email protected]>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description of problem
delete sandbox failed and resource left when pod_container type container fail to start.
I mock the error in the following
virtcontainers/sandbox.go
to simulate error happens afterc.create()
:And then I do the following test:
Step 3
docker rm -f
command returns the error and cause the store persist sandbox dir/var/run/vc/sbs/<sandbox-id>
andqemu-kvm
process andkata-process
left in the machine.Process left:
store persist dir left:
/var/run/vc/sbs/e2869daa221f302ca23f2dae8a6a0b473386d7eae40f46a123f7f9b21bbabfbb # ls 5d978668c7b1bc88fcbe4d017b86ca1b9c42be03166c8b68763b56bb530e089f e2869daa221f302ca23f2dae8a6a0b473386d7eae40f46a123f7f9b21bbabfbb persist.json proxy.sock
mount point left:
Expected result
remove the whole sandbox successfully without resource left in the machine after pod_container type container fail to start
Actual result
as the above problem description
The text was updated successfully, but these errors were encountered: