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

stargz-snapshotter doesn't work #245

Open
maxpain opened this issue Oct 6, 2023 · 6 comments
Open

stargz-snapshotter doesn't work #245

maxpain opened this issue Oct 6, 2023 · 6 comments

Comments

@maxpain
Copy link

maxpain commented Oct 6, 2023

I installed this extension and tried to run a test pod with the estargz image:

apiVersion: v1
kind: Pod
metadata:
  name: nodejs
spec:
  containers:
    - name: nodejs-stargz
      image: ghcr.io/stargz-containers/node:17.8.0-esgz
      command: ["node"]
      args:
        - -e
        - var http = require('http');
          http.createServer(function(req, res) {
          res.writeHead(200);
          res.end('Hello World!\n');
          }).listen(80);
      ports:
        - containerPort: 80

Getting this error:
Error: failed to create containerd task: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "node": executable file not found in $PATH: unknown

I also see these errors in the ext-stargz-snapshotter service.

{"dir":"/var/lib/containerd-stargz-grpc/snapshotter/snapshots/68/fs","error":"specified path \"/var/lib/containerd-stargz-grpc/snapshotter/snapshots/68/fs\" isn't a mountpoint","level":"debug","msg":"failed to unmount","time":"2023-10-06T15:35:52.587369547Z"}
{"error":null,"key":"k8s.io/91/extract-195307888--2O1 sha256:2414385fd51d34e07d564ec6041ee66de902424f028528bce52743d92b1bc875","level":"info","mountpoint":"/var/lib/containerd-stargz-grpc/snapshotter/snapshots/64/fs","msg":"[fusermount fusermount3] not installed; trying direct mount","parent":"sha256:a3926353a4b2389bed133fe4b9f8bdb8439529ba6a965b37ef0c1a7921043a00","time":"2023-10-06T15:34:17.197856631Z"}
@maxpain
Copy link
Author

maxpain commented Oct 6, 2023

By the way I had the same problem even with fusermount binary and even using nydus-snapshotter

@maxpain
Copy link
Author

maxpain commented Oct 11, 2023

@rsmitty Have you tested if the stargz-snapshotter extension is working correctly?

@frezbo
Copy link
Member

frezbo commented Apr 3, 2024

@rsmitty is this relevant anymore?

@ruifung
Copy link

ruifung commented May 2, 2024

It doesn't just not work, it seems to break kubelet ImageGC, and then you'll eventually run out of space.

Warning  ImageGCFailed            2m4s (x2 over 7m4s)    kubelet          get filesystem info: Failed to get the info of the filesystem with mountpoint: failed to get device for dir "/var/lib/containerd/io.containerd.snapshotter.v1.stargz": stat failed on /var/lib/containerd/io.containerd.snapshotter.v1.stargz with error: no such file or directory

@rsmitty
Copy link
Member

rsmitty commented May 2, 2024

This is a bug in stargz-snapshotter (or even containerd). See containerd/stargz-snapshotter#1349

@rsmitty
Copy link
Member

rsmitty commented May 2, 2024

I was thinking that I may just cheese it and create that path as part of the extension, however. But that will come after I can get some time to figure out why we can't pull from a private registry :/

jfroy added a commit to jfroy/flatops that referenced this issue May 21, 2024
jfroy added a commit to jfroy/flatops that referenced this issue May 22, 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

4 participants