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

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

Closed
apostasie opened this issue Oct 7, 2024 · 3 comments
Closed
Labels
kind/unconfirmed-bug-claim Unconfirmed bug claim

Comments

@apostasie
Copy link
Contributor

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

@apostasie apostasie added the kind/unconfirmed-bug-claim Unconfirmed bug claim label Oct 7, 2024
@apostasie apostasie changed the title Layer not found issue likely impacting build as well content digest not found issue likely impacting build as well Oct 7, 2024
@apostasie
Copy link
Contributor Author

Correction: technically, the problem is not build, it is images filter, that are performing readblobs without guarantee that the layers are there.

@apostasie apostasie changed the title content digest not found issue likely impacting build as well content digest not found issue is impacting nerdctl images --filter Oct 7, 2024
@apostasie
Copy link
Contributor Author

Reproducer:

platform="${1:-linux/amd64}"
nerdctl rm -f $(nerdctl ps -aq) >/dev/null 2>&1
nerdctl rmi -f $(nerdctl images -q) >/dev/null 2>&1
nerdctl image pull ubuntu --platform "$platform" >/dev/null 2>&1
nerdctl run -d ubuntu >/dev/null 2>&1
nerdctl image rm -f ubuntu >/dev/null 2>&1

echo "Pulling again"
nerdctl pull ubuntu --platform "$platform" 2>&1 >/dev/null
nerdctl images --filter label=one=two

@apostasie
Copy link
Contributor Author

I believe this is fixed with 3530.

apostasie added a commit to apostasie/nerdctl that referenced this issue Oct 17, 2024
apostasie added a commit to apostasie/nerdctl that referenced this issue Oct 17, 2024
- containerd#3512 is likely fixed, so, deflaking test
- a couple of other circumstances failed the build (one of them with Docker) - commenting in-line

Signed-off-by: apostasie <[email protected]>
apostasie added a commit to apostasie/nerdctl that referenced this issue Oct 17, 2024
- containerd#3512 is likely fixed, so, deflaking test
- a couple of other circumstances failed the build (one of them with Docker) - commenting in-line
- marking another instance of containerd#3524

Signed-off-by: apostasie <[email protected]>
apostasie added a commit to apostasie/nerdctl that referenced this issue Oct 17, 2024
- containerd#3512 is likely fixed, so, deflaking test
- a couple of other circumstances failed the build (one of them with Docker) - commenting in-line
- marking another instance of containerd#3524

Signed-off-by: apostasie <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/unconfirmed-bug-claim Unconfirmed bug claim
Projects
None yet
Development

No branches or pull requests

1 participant