Skip to content

cri: auto-add prefix for pause image - #13513

Merged
mxpv merged 1 commit into
containerd:mainfrom
ningmingxiao:fix_image_name
Jul 1, 2026
Merged

mxpv merged 1 commit into
containerd:mainfrom
ningmingxiao:fix_image_name

Conversation

@ningmingxiao

@ningmingxiao ningmingxiao commented Jun 2, 2026 •

Copy link
Copy Markdown
Contributor

fix if sandbox_image doesn't have docker.io prefix cause run pod failed.

reproduce :

use config

sandbox_image = "rancher/mirrored-pause:3.6"

image is exist

crictl  images
IMAGE                              TAG                 IMAGE ID            SIZE
docker.io/library/busybox          1.28                8c811b4aec35f       1.36MB
docker.io/library/busybox          latest              fa152d3b2cb95       4.49MB
docker.io/rancher/mirrored-pause   3.6                 da86e6ba6ca19       746kB
crictl  run  --no-pull container.json  pod.json

E0602 15:14:34.707264 2211126 remote_runtime.go:237] "RunPodSandbox from runtime service failed" err="rpc error: code = NotFound desc = failed to start sandbox \"02146ec6af7ad70f5ae2599268b38af5273c52c11a0f4f4f321da2dc133478ed\": failed to get sandbox image \"rancher/mirrored-pause:3.6\": image \"rancher/mirrored-pause:3.6\": not found"
FATA[0000] running container: run pod sandbox: rpc error: code = NotFound desc = failed to start sandbox "02146ec6af7ad70f5ae2599268b38af5273c52c11a0f4f4f321da2dc133478ed": failed to get sandbox image "rancher/mirrored-pause:3.6": image "rancher/mirrored-pause:3.6": not found

Copilot AI review requested due to automatic review settings June 2, 2026 06:59
@github-project-automation github-project-automation Bot moved this to Needs Triage in Pull Request Review Jun 2, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

This PR normalizes the sandbox (pause) image reference before looking it up in containerd, improving compatibility with different image reference formats.

Changes:

  • Parse and normalize the sandbox image reference via distribution/reference.
  • Use the normalized reference string when calling c.client.GetImage(...).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mikebrow mikebrow left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM on all green
cc @dmcgowan @fuweid

@samuelkarp

Copy link
Copy Markdown
Member

Did this work before and it regressed?

@mikebrow

mikebrow commented Jun 2, 2026

Copy link
Copy Markdown
Member

Did this work before and it regressed?

suspect, but have not tested, #12849

@brandond

brandond commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Thanks!

Copilot AI review requested due to automatic review settings June 3, 2026 14:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@mikebrow

mikebrow commented Jun 3, 2026

Copy link
Copy Markdown
Member

ghcr seems to be timing out will restart buckets after a bit

@hakman

hakman commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

This PR might also fix #13529, which is a regression from 2.2.

Signed-off-by: ningmingxiao <[email protected]>
Signed-off-by: 宁明晓10296073 <[email protected]>
@ningmingxiao

Copy link
Copy Markdown
Contributor Author

ping @mikebrow can this pr be merged?

@mikebrow mikebrow left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@github-project-automation github-project-automation Bot moved this from Needs Triage to Review In Progress in Pull Request Review Jul 1, 2026
@mxpv
mxpv added this pull request to the merge queue Jul 1, 2026
Merged via the queue into containerd:main with commit f45f82d Jul 1, 2026
51 of 52 checks passed
@github-project-automation github-project-automation Bot moved this from Review In Progress to Done in Pull Request Review Jul 1, 2026
@ningmingxiao
ningmingxiao deleted the fix_image_name branch July 2, 2026 01:03
@hakman

hakman commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

@mikebrow @mxpv Can this be cherry-picked to the 2.3 branch?

@mikebrow mikebrow added the cherry-pick/2.3.x Change to be cherry picked to release/2.3 label Jul 10, 2026
@mikebrow

Copy link
Copy Markdown
Member

/cherry-pick release/2.3

@k8s-infra-cherrypick-robot

Copy link
Copy Markdown

@mikebrow: new pull request created: #13759

Details

In response to this:

/cherry-pick release/2.3

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@hakman

hakman commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Thank you @mikebrow

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

Labels

cherry-pick/2.3.x Change to be cherry picked to release/2.3 size/S

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

9 participants