Skip to content

nerdctl pull: failed to prepare extraction snapshot, parent snapshot does not exist (1.7.23 regression?) #10835

Closed

Description

@apostasie

Description

Looks like in certain circumstances, a simple pull in a clean namespace will trigger a failure from deep inside containerd.

@AkihiroSuda do you have an opinion on this?

=== RUN   TestRemove/Remove_image_with_created_container_-_with_-f
    image_remove_test.go:303: ======================== Pre-test cleanup ========================
    command.go:112: /usr/local/bin/nerdctl --namespace=testremove-private-a0b107b8 rm -f testremove-remove-image-with-created-container-with-f-1cdecc80
    image_remove_test.go:303: ======================== Test setup ========================
    command.go:112: /usr/local/bin/nerdctl --namespace=testremove-private-a0b107b8 pull ghcr.io/stargz-containers/nginx:1.19-alpine-org
    command.go:112: assertion failed: expect.ExitCode is not result.ExitCode: Expected exit code: 0
        
        Command:  /usr/local/bin/nerdctl --namespace=testremove-private-a0b107b8 pull ghcr.io/stargz-containers/nginx:1.19-alpine-org
        ExitCode: 1
        Error:    exit status 1
        Stdout:   
        Stderr:   time="2024-10-15T04:52:41Z" level=fatal msg="failed to prepare extraction snapshot \"extract-549308819-2Mnm sha256:1b4e58f0c6175a24a65c2434758f04fc39b962c9634fca3af65470cfc27eb0bc\": parent snapshot sha256:8ea3b23f387bedc5e3cee574742d748941443c328a75f511eb37b0d8b6164130 does not exist: not found"
        
        Env:
        HOSTNAME=f807fe8d3cc9
        SYSTEMD_EXEC_PID=47
        container=docker
        HOME=/root
        LANG=C.UTF-8
        INVOCATION_ID=acc9030803844f7d9d1f213be2cb868c
        TERM=xterm
        SHLVL=3
        CGO_ENABLED=0
        _=/usr/local/bin/gotestsum
        PATH=/usr/local/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
        ***
        DOCKER_CONFIG=/tmp/TestRemoveRemove_image_with_created_container_-_with_-f109564665/001
        NERDCTL_TOML=/tmp/TestRemoveRemove_image_with_created_container_-_with_-f109564665/001/nerdctl.toml
    case.go:164: ======================== Post-test cleanup ========================
    command.go:112: /usr/local/bin/nerdctl --namespace=testremove-private-a0b107b8 rm -f testremove-remove-image-with-created-container-with-f-1cdecc80
--- FAIL: TestRemove/Remove_image_with_created_container_-_with_-f (0.18s)

Steps to reproduce the issue

No response

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

Activity

  1. changed the title [-]`nerdctl pull`: `failed to prepare extraction snapshot` (containerd bug?)[/-] [+]`nerdctl pull`: `failed to prepare extraction snapshot, parent snapshot does not exist` (containerd bug?)[/+] on Oct 15, 2024
  2. apostasie commented on Oct 15, 2024

    @apostasie
    Author

    Rootful, ctd 1.7.23, ubuntu 22.04.

    First time I see this issue.
    Will look into 1.7.23 changeset just for sanity check.

    https://github.com/containerd/nerdctl/actions/runs/11339453186/job/31534264263?pr=3535#step:6:559

  3. apostasie commented on Oct 15, 2024

    @apostasie
    Author
  4. AkihiroSuda commented on Oct 15, 2024

    @AkihiroSuda
    Member

    Maybe? Does it happen with ctr or crictl too?

  5. apostasie commented on Oct 15, 2024

    @apostasie
    Author

    Maybe? Does it happen with ctr or crictl too?

    I think it is racy. Hard to repro on demand for now.
    Let's keep an eye on the CI and see if it pops-up again (since we moved to 1.7.23 one hour ago).

  6. changed the title [-]`nerdctl pull`: `failed to prepare extraction snapshot, parent snapshot does not exist` (containerd bug?)[/-] [+]`nerdctl pull`: `failed to prepare extraction snapshot, parent snapshot does not exist` (1.7.23 regression?)[/+] on Oct 15, 2024
  7. samuelkarp commented on May 29, 2025

    @samuelkarp
    Member

    @apostasie Have you seen this occur again?

  8. apostasie commented on May 29, 2025

    @apostasie
    Author

    @samuelkarp I have not seen it recently.
    Though, nerdctl no longer test v1.7 (we test v1.6 and v2), and I am no longer using v1.7 either, so...

    I am going to close this as it is not actionable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions