-
Notifications
You must be signed in to change notification settings - Fork 200
Remove directories for removed containers on the host #65
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
Comments
Per discussion with @IRCody yesterday, he thinks that the error relates to a path on the host instead of inside the microVM. When I look on the host, I do see what he's talking about:
I'm not sure what is supposed to clean up this directory, maybe the runtime? |
I think the runtime is supposed to clean it up. I think this comment is wrong and we actually do need to clean some stuff up here. Reading the docs it looks like there are two scenarios:
|
There appear to be additional leftover files in |
I was able to fix the non-deletion locally, but that seems to have exposed another bug where subsequent containers launched with the same ID seem to have the IO streams disconnected after launch (i.e., the firecracker and runtime processes remain running but ctr exits with an error). |
While we cannot repro firecracker-microvm#65 anymore, we'd like to have some tests to prevent regression. Closes firecracker-microvm#65. Signed-off-by: Kazuyoshi Kato <[email protected]>
We are not deleting the files associated with a container correctly, as firecracker-microvm#65 suggested. The existing test didn't unveil the issue since the shim is deleting the files along with the files associated with the shim.
We are not deleting the files associated with a container correctly, as firecracker-microvm#65 suggested. The existing test didn't unveil the issue since the shim is deleting the files along with the files associated with the shim. Signed-off-by: Kazuyoshi Kato <[email protected]>
Even though I've deleted the container (and its snapshot) on the host,
the microVM rootfsthe host retains the bundle directory that was created for the container. We shouldeitherclean up the bundle directory when the container is removed (or stopped?), or we should ensure that the microVM rootfs is read-only (or separate per microVM).The text was updated successfully, but these errors were encountered: