Skip to content

Issues related to missing layer (likely caused by https://github.com/containerd/containerd/issues/8973 ) #3425

Closed

Description

@apostasie

Activity

  1. apostasie commented on Sep 10, 2024

    @apostasie
    ContributorAuthor

    Tagging @lingdie who likely has a good understanding of whats going on.

  2. apostasie commented on Sep 10, 2024

    @apostasie
    ContributorAuthor

    @AkihiroSuda while this is still murky, I feel this is bad enough given the number of issues.
    Do you think this could be added to the v2 milestone?

  3. added this to the v2.0.0 milestone on Sep 10, 2024
  4. added
    bug
    and removed
    kind/unconfirmed-bug-claim
    on Sep 10, 2024
  5. apostasie commented on Sep 18, 2024

    @apostasie
    ContributorAuthor

    @AkihiroSuda containerd/containerd#8973 is stale, despite pings.

    What is your opinion?

    • do you think this should be a blocker for containerd v2 release? Or otherwise any chance to get eyeballs on it?
    • or should we try harder to work around it here (not sure this is even feasible honestly)?

    The suggestion over there ("Changing the default pull behavior should be up to the client") is a bit asinine TBH, as it would have wide ranging impact on performance...

  6. apostasie commented on Sep 18, 2024

    @apostasie
    ContributorAuthor

    @lingdie your patch was definitely going in the right direction, but I guess if the layers are missing, it will not be enough?

    What if we check if there are missing layers, then force a fetch?

    Something in the line of:

    _, _, _, missing, err := images.Check(ctx, client.ContentStore(), im.Target, platform)
    if len(missing) > 0 {
        img, err = client.Fetch(ctx, ref, opts...)
    }
    
    // unpack the image to snapshotter
    cimg := containerd.NewImage(client, img)
    if err := cimg.Unpack(ctx, snName); err != nil {
        return emptyDigest, err
    }
    

    Since this is a general problem across our codebase (and not just on commit), we need a strategy to address this.
    It seems like once the image has been tagged, it is too late? (eg: can't fetch anymore) - so, we might need to enforce fetch:

    • at tagging time
    • at commit time

    wdyt?

  7. apostasie commented on Sep 18, 2024

    @apostasie
    ContributorAuthor

    Here is a repro involving tagging:

    nerdctl rm -f $(nerdctl ps -aq) 2>&1 >/dev/null
    nerdctl rmi -f $(nerdctl images -q) 2>&1 >/dev/null
    nerdctl image pull busybox 2>&1 >/dev/null
    nerdctl run -d busybox 2>&1 >/dev/null
    nerdctl image rm -f busybox 2>&1 >/dev/null
    nerdctl pull busybox
    nerdctl tag busybox myregistry:5000/test
    nerdctl push myregistry:5000/test
    

    This will fail when we try to convert to a temp single platform image (because we tagged an image with missing layers).

  8. AkihiroSuda commented on Sep 18, 2024

    @AkihiroSuda
    Member

    a blocker for containerd v2 release

    I'd prefer to limit the blockers to:

    • regressions in v2
    • new features in v2, merged with a wrong design
  9. apostasie commented on Sep 18, 2024

    @apostasie
    ContributorAuthor

    a blocker for containerd v2 release

    I'd prefer to limit the blockers to:

    • regressions in v2
    • new features in v2, merged with a wrong design

    Fair enough.

    I might have a workable fix in the linked PR.

  10. ningmingxiao commented on Jun 20, 2025

    @ningmingxiao
    Contributor

    I find a reason sometimes containerd will skip to save some blobs. @AkihiroSuda @apostasie
    ref : containerd/containerd#11996

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions