Skip to content

content digest not found issue is impacting nerdctl images --filter #3512

@apostasie

Description

@apostasie

Description

ok  	github.com/containerd/nerdctl/v2/cmd/nerdctl/image	40.188s
ok  	github.com/containerd/nerdctl/v2/cmd/nerdctl/image	33.235s
ok  	github.com/containerd/nerdctl/v2/cmd/nerdctl/image	41.313s
ok  	github.com/containerd/nerdctl/v2/cmd/nerdctl/image	38.859s
ok  	github.com/containerd/nerdctl/v2/cmd/nerdctl/image	42.244s
ok  	github.com/containerd/nerdctl/v2/cmd/nerdctl/image	38.793s
ok  	github.com/containerd/nerdctl/v2/cmd/nerdctl/image	40.892s
ok  	github.com/containerd/nerdctl/v2/cmd/nerdctl/image	41.808s
ok  	github.com/containerd/nerdctl/v2/cmd/nerdctl/image	42.223s
ok  	github.com/containerd/nerdctl/v2/cmd/nerdctl/image	41.142s
ok  	github.com/containerd/nerdctl/v2/cmd/nerdctl/image	35.809s
ok  	github.com/containerd/nerdctl/v2/cmd/nerdctl/image	38.968s
ok  	github.com/containerd/nerdctl/v2/cmd/nerdctl/image	43.957s
test target: "nerdctl"
Waiting for port to become available... 80
Waiting for port to become available... 80
Waiting for port to become available... 80
Waiting for port to become available... 80
Waiting for port to become available... 80
Waiting for port to become available... 80
--- FAIL: TestImagesFilter (2.10s)
    image_list_test.go:271: ======================== Pre-test cleanup ========================
    command.go:112: /usr/local/bin/nerdctl --namespace=nerdctl-test builder prune --all --force
    command.go:112: /usr/local/bin/nerdctl --namespace=nerdctl-test rmi taggedimage:one-fragment-one
    command.go:112: /usr/local/bin/nerdctl --namespace=nerdctl-test rmi taggedimage:two-fragment-two
    command.go:112: /usr/local/bin/nerdctl --namespace=nerdctl-test rmi testimagesfilter-2a4e0faa
    image_list_test.go:271: ======================== Test setup ========================
    command.go:112: /usr/local/bin/nerdctl --namespace=nerdctl-test pull ghcr.io/stargz-containers/alpine:3.13-org
    command.go:112: /usr/local/bin/nerdctl --namespace=nerdctl-test tag ghcr.io/stargz-containers/alpine:3.13-org taggedimage:one-fragment-one
    command.go:112: /usr/local/bin/nerdctl --namespace=nerdctl-test tag ghcr.io/stargz-containers/alpine:3.13-org taggedimage:two-fragment-two
    image_list_test.go:271: ======================== Test Run ========================
    command.go:112: /usr/local/bin/nerdctl --namespace=nerdctl-test build -t testimagesfilter-2a4e0faa /tmp/TestImagesFilter1507030512/002
    image_list_test.go:271: ======================== Processing subtests ========================
    --- FAIL: TestImagesFilter/label=foo=bar (0.03s)
        image_list_test.go:271: ======================== Pre-test cleanup ========================
        image_list_test.go:271: ======================== Test setup ========================
        image_list_test.go:271: ======================== Test Run ========================
        command.go:112: /usr/local/bin/nerdctl --namespace=nerdctl-test images --filter label=foo=bar
        command.go:112: assertion failed: expect.ExitCode is not result.ExitCode: Expected exit code: 0

            Command:  /usr/local/bin/nerdctl --namespace=nerdctl-test images --filter label=foo=bar
            ExitCode: 1
            Error:    exit status 1
            Stdout:
            Stderr:   time="2024-10-07T10:16:39-07:00" level=fatal msg="content digest sha256:cca0da61026468d95dd977ed993ee25a92ba38f632b55f83f3c35d873431fd46: not found"

            Env:
            SHELL=/bin/bash
            LOGNAME=dmp
            XDG_SESSION_TYPE=tty
            HOME=/home/dmp.linux
            LANG=C.UTF-8
            SSH_CONNECTION=192.168.5.2 51297 192.168.5.15 22
            LESSCLOSE=/usr/bin/lesspipe %s %s
            XDG_SESSION_CLASS=user
            TERM=xterm-256color
            LESSOPEN=| /usr/bin/lesspipe %s
            USER=dmp
            SHLVL=2
            XDG_SESSION_ID=2
            XDG_RUNTIME_DIR=/run/user/501
            SSH_CLIENT=192.168.5.2 51297 22
            XDG_DATA_DIRS=/usr/local/share:/usr/share:/var/lib/snapd/desktop
            DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/501/bus
            SSH_TTY=/dev/pts/1
            OLDPWD=/Users/dmp
            _=/usr/local/go/bin/go
            PATH=/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/sbin:/sbin:/usr/sbin:/sbin:/usr/sbin:/sbin:/usr/local/go/bin:/usr/sbin:/sbin:/usr/local/go/bin:/home/dmp.linux/go/bin
            PWD=/Users/dmp/Projects/go/nerd/nerdctl/cmd/nerdctl/image
            NERDCTL_TOML=/tmp/TestImagesFilterlabel=foo=bar561801387/001/nerdctl.toml
            DOCKER_CONFIG=/tmp/TestImagesFilterlabel=foo=bar561801387/001
        case.go:164: ======================== Post-test cleanup ========================
    case.go:164: ======================== Post-test cleanup ========================
    command.go:112: /usr/local/bin/nerdctl --namespace=nerdctl-test rmi taggedimage:one-fragment-one
    command.go:112: /usr/local/bin/nerdctl --namespace=nerdctl-test rmi taggedimage:two-fragment-two
    command.go:112: /usr/local/bin/nerdctl --namespace=nerdctl-test rmi testimagesfilter-2a4e0faa
    command.go:112: /usr/local/bin/nerdctl --namespace=nerdctl-test builder prune --all --force
Waiting for port to become available... 80
Waiting for port to become available... 80
Waiting for port to become available... 80
Waiting for port to become available... 80
Waiting for port to become available... 80
FAIL
FAIL	github.com/containerd/nerdctl/v2/cmd/nerdctl/image	45.666s
FAIL
FAIL

Steps to reproduce the issue

na

Describe the results you received and expected

na

What version of nerdctl are you using?

main

Are you using a variant of nerdctl? (e.g., Rancher Desktop)

None

Host information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions