Skip to content

[Bug] An error occurred when running an OCI image using nydus snapshotter: image layers are missing. #692

@mfrankm

Description

@mfrankm

Problem Description

Image Running the image using the `--snapshotter nydus` command resulted in an error, but using `--snapshotter overlayfs` did not report a "miss parents" error. Image

Expected Behavior

I've observed this phenomenon extensively in our cluster, specifically when using nydus snapshotter. While overlayfs pods run normally, using the ctr fetch command to repair the problematic image usually resolves the issue. Even with discard_unpacked_layers = false configured in containerd, the same problem persists.

Image Image

Actual Behavior

This problem arises from time to time; how can it be solved?

How to reproduce

The kubelet on the node triggers a threshold to delete images. The same pod contains both the nydus and oci images, and the problem can be reproduced by repeatedly starting the pod.

Environment Details

Version: v2.3.4
Git Commit: dragonflyoss/nydus@7886e18
Build Time: 2025-07-31T03:52:15.056860527Z
Profile: release
Rustc: rustc 1.84.0 (9fc6b4312 2025-01-07)

PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
containerd:1.7.22

Additional Information

How can this problem be automatically detected and resolved? Is there a new version that can solve this issue?

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions