Skip to content
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

Missing labels when Mount is called on custom remote snapshotter #1834

Open
aochagavia opened this issue Oct 16, 2024 · 0 comments
Open

Missing labels when Mount is called on custom remote snapshotter #1834

aochagavia opened this issue Oct 16, 2024 · 0 comments

Comments

@aochagavia
Copy link

aochagavia commented Oct 16, 2024

I'm trying out the "Make your remote snapshotter" feature, mentioned in the overview, but I can't get it working.

Context

Here's what I've done:

  1. Create a type that implements the FileSystem interface (with Mount, Check and Unmount functions) and expose it through a gRPC server on unix:///dev/shm/test-snapshotter.sock.

  2. Configure containerd's config.toml, registering the snapshotter under the name mysnap:

    [proxy_plugins]
      [proxy_plugins.mysnap]
        type = "snapshot"
        address = "/dev/shm/test-snapshotter.sock"
  3. Run nerdctl pull debian --snapshotter mysnap

Problem

During nerdctl pull, the snapshotter receives a call to Mount. However, the only provided label is containerd.io/snapshot.ref, which is not enough information to retrieve the remote layer. Note that, if I pull using crictl pull, I do receive additional labels such as containerd.io/snapshot/cri.layer-digest.

Is there anything I need to configure to get this working? If it helps, I can create a repository that reproduces the issue.

@aochagavia aochagavia changed the title Custom remote snapshotter does not receive enough information when Mount is called Custom remote snapshotter is missing labels when Mount is called Oct 16, 2024
@aochagavia aochagavia changed the title Custom remote snapshotter is missing labels when Mount is called Missing labels when Mount is called on custom remote snapshotter Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant