-
Notifications
You must be signed in to change notification settings - Fork 205
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
When using kubernetes and nydus,container failed to start with an error “target snapshot already exists” #1527
Comments
Cloud you try |
Need to ensure the pod using the image has been deleted first. |
I have already deleted all the pause images, but I still receive the same error. target snapshot "sha256:xxx": already exists |
Is this a work in progress (WIP)? I'm experiencing the same issue in kata 3.2.0. @imeoer |
This appears to be an inconsistency in containerd snapshot metadata, try the following commands:
But we still don't have an way to reproduce it. |
Way to reproduce:
@imeoer any suggestions about how to recover ? |
@YuxiJin-tobeyjin In step 4, the nydus root directory contains a snapshot metadata file, deleting this directory will result in snapshot inconsistency between containerd metadata and nydus snapshotter. The solution appears to be deleting the containerd containers, images, and the entire containerd root directory, or considering providing a tool to cleanup the inconsistent snapshot entries in containerd metadata. |
Additional Information
The following information is very important in order to help us to help you. Omission of the following details may delay your support request or receive no attention at all.
Version of nydus being used (nydusd --version)
Version of nydus-snapshotter being used (containerd-nydus-grpc --version)
Kernel information (uname -r)
GNU/Linux Distribution, if applicable (cat /etc/os-release)
command result: cat /etc/os-release
containerd-nydus-grpc command line used, if applicable (ps aux | grep containerd-nydus-grpc)
client command line used, if applicable (such as: nerdctl, docker, kubectl, ctr)
Screenshots (if applicable)
Details about issue
When I use nerdctl, such as
the container can be successfully created and run normally.
However, when I switch to Kubernetes, it gives me the following error:
I suspect this issue is related to the pause image because nerdctl, which doesn't involve the pause image, can start successfully. I have also tried using
but it doesn't work.
This is very confusing for me, especially because I was able to successfully launch pods using Kubernetes a while ago. However, after some time has passed, it is no longer able to start.
The text was updated successfully, but these errors were encountered: