Repository navigation
Closed
Description
I saw a CRI validation test failure:
[BeforeEach] [k8s.io] Image Manager
/home/travis/gopath/src/github.com/kubernetes-incubator/cri-tools/pkg/framework/framework.go:50
[BeforeEach] [k8s.io] Image Manager
/home/travis/gopath/src/github.com/kubernetes-incubator/cri-tools/pkg/validate/image.go:56
[It] listImage should get exactly 3 repoTags in the result image [Conformance]
/home/travis/gopath/src/github.com/kubernetes-incubator/cri-tools/pkg/validate/image.go:149
STEP: Remove image : gcr.io/cri-tools/test-image-tags:1
STEP: Remove image : gcr.io/cri-tools/test-image-tags:2
STEP: Remove image : gcr.io/cri-tools/test-image-tags:3
STEP: Pull image : gcr.io/cri-tools/test-image-tags:1
E0605 01:35:46.753391 21534 remote_image.go:108] PullImage "gcr.io/cri-tools/test-image-tags:1" from image service failed: rpc error: code = Unknown desc = failed to pull and unpack image "gcr.io/cri-tools/test-image-tags:1": failed to unpack image on snapshotter overlayfs: failed to prepare extraction snapshot "extract-731580600-yNJo sha256:fc7dabc612d929d4031ebbf977320d95b8408945bc8e096fb888aa54fb83b2ce": parent snapshot sha256:4febd3792a1fb2153108b4fa50161c6ee5e3d16aa483a63215f936a113a88e9a does not exist: not found
Jun 5 01:35:46.754: INFO: Unexpected error occurred: rpc error: code = Unknown desc = failed to pull and unpack image "gcr.io/cri-tools/test-image-tags:1": failed to unpack image on snapshotter overlayfs: failed to prepare extraction snapshot "extract-731580600-yNJo sha256:fc7dabc612d929d4031ebbf977320d95b8408945bc8e096fb888aa54fb83b2ce": parent snapshot sha256:4febd3792a1fb2153108b4fa50161c6ee5e3d16aa483a63215f936a113a88e9a does not exist: not found
[AfterEach] [k8s.io] Image Manager
/home/travis/gopath/src/github.com/kubernetes-incubator/cri-tools/pkg/framework/framework.go:51
• Failure [0.515 seconds]
[k8s.io] Image Manager
/home/travis/gopath/src/github.com/kubernetes-incubator/cri-tools/pkg/framework/framework.go:72
listImage should get exactly 3 repoTags in the result image [Conformance] [It]
/home/travis/gopath/src/github.com/kubernetes-incubator/cri-tools/pkg/validate/image.go:149
failed to pull image: rpc error: code = Unknown desc = failed to pull and unpack image "gcr.io/cri-tools/test-image-tags:1": failed to unpack image on snapshotter overlayfs: failed to prepare extraction snapshot "extract-731580600-yNJo sha256:fc7dabc612d929d4031ebbf977320d95b8408945bc8e096fb888aa54fb83b2ce": parent snapshot sha256:4febd3792a1fb2153108b4fa50161c6ee5e3d16aa483a63215f936a113a88e9a does not exist: not found
Expected error:
<*status.statusError | 0xc4204731d0>: {
Code: 2,
Message: "failed to pull and unpack image \"gcr.io/cri-tools/test-image-tags:1\": failed to unpack image on snapshotter overlayfs: failed to prepare extraction snapshot \"extract-731580600-yNJo sha256:fc7dabc612d929d4031ebbf977320d95b8408945bc8e096fb888aa54fb83b2ce\": parent snapshot sha256:4febd3792a1fb2153108b4fa50161c6ee5e3d16aa483a63215f936a113a88e9a does not exist: not found",
Details: nil,
}
rpc error: code = Unknown desc = failed to pull and unpack image "gcr.io/cri-tools/test-image-tags:1": failed to unpack image on snapshotter overlayfs: failed to prepare extraction snapshot "extract-731580600-yNJo sha256:fc7dabc612d929d4031ebbf977320d95b8408945bc8e096fb888aa54fb83b2ce": parent snapshot sha256:4febd3792a1fb2153108b4fa50161c6ee5e3d16aa483a63215f936a113a88e9a does not exist: not found
not to have occurred
/home/travis/gopath/src/github.com/kubernetes-incubator/cri-tools/pkg/framework/util.go:248
The containerd log https://gist.github.com/Random-Liu/6b9e9f794861b69f36df2d7dd7916a5e.
From the log, it seems that the parent snapshot 4febd3792a1fb2153108b4fa50161c6ee5e3d16aa483a63215f936a113a88e9a is removed as part of other image gcr.io/cri-tools/test-image-latest:latest before image gcr.io/cri-tools/test-image-tags:1 is unpacked. Shouldn't lease avoid that?
Metadata
Metadata
Assignees
Labels
No labels
Activity
Random-Liu commentedon Jun 5, 2018
@dmcgowan
dmcgowan commentedon Jun 5, 2018
Hmm, this kind of looks like (2) from #2331. The current problem is leases are only used for newly created objects, not to gain reference of an existing object. I solved that in the PR by removing the reliance on stat during unpack to see if the parent exists.
Random-Liu commentedon Jun 5, 2018
I saw this in a presubmit test yesterday in
cri, and containerd has been updated to 84bebdd which should have included #2331.We can keep this issue open, and I'll update if I see this again.
@dmcgowan This shouldn't be a permanent error, right? If the image is pulled again, the unpack may succeed. As long it is not a permanent error, and not happen frequently, kubelet should be able to tolerant it in some extent.
relyt0925 commentedon Oct 19, 2018
We've seen this as well in our IKS clusters.
I have a job that I thought I could periodically run to detect and fix this using crictl
But it doesn't appear to detect when the image is in this state.
crosbymichael commentedon May 22, 2019
This can be closed now
foWQL commentedon Mar 11, 2023
how to solve this , pls
nubunto commentedon Jun 7, 2023
resetting the earthly cache solved this for me: