Skip to content

[CRI] store extension when create sandbox in metadata store#11612

Merged
mxpv merged 1 commit intocontainerd:mainfrom
yylt:inc
Apr 17, 2025
Merged

[CRI] store extension when create sandbox in metadata store#11612
mxpv merged 1 commit intocontainerd:mainfrom
yylt:inc

Conversation

@yylt
Copy link
Copy Markdown
Contributor

@yylt yylt commented Mar 27, 2025

Fix #10848

When the netns prepara fails, it will result in missing extensions in metadata store. So store extension when create the sandbox in the store

Additionally, some of the logs were modified, and the error messages and descriptions returned were somewhat inconsistent

  • sandboxInfo.AddExtension(...) is to copy metadata to the extension.

  • c.client.SandboxStore().Update(..) is to updates metadata to the store.

/cc @mikebrow

@k8s-ci-robot
Copy link
Copy Markdown

Hi @yylt. Thanks for your PR.

I'm waiting for a containerd member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

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.

@dosubot dosubot bot added the area/cri Container Runtime Interface (CRI) label Mar 27, 2025
Copy link
Copy Markdown
Member

@mikebrow mikebrow left a comment

Choose a reason for hiding this comment

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

see comments

@mikebrow
Copy link
Copy Markdown
Member

/ok-to-test

@mikebrow mikebrow changed the title store extension when create sandbox in metadata store [CRI] store extension when create sandbox in metadata store Mar 27, 2025
Signed-off-by: yang yang <yang8518296@163.com>
Copy link
Copy Markdown
Member

@mikebrow mikebrow left a comment

Choose a reason for hiding this comment

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

LGTM

@k8s-ci-robot
Copy link
Copy Markdown

@yylt: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-containerd-k8s-e2e-ec2 8602604 link false /test pull-containerd-k8s-e2e-ec2

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Details

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. I understand the commands that are listed here.

@fuweid fuweid self-requested a review March 28, 2025 17:46
@github-project-automation github-project-automation bot moved this from Needs Triage to Review In Progress in Pull Request Review Apr 17, 2025
@mxpv mxpv added this pull request to the merge queue Apr 17, 2025
@mxpv mxpv moved this from Review In Progress to Merge on Green in Pull Request Review Apr 17, 2025
Merged via the queue into containerd:main with commit b39d644 Apr 17, 2025
58 of 59 checks passed
@github-project-automation github-project-automation bot moved this from Merge on Green to Done in Pull Request Review Apr 17, 2025
@yylt
Copy link
Copy Markdown
Contributor Author

yylt commented Apr 18, 2025

Should this be cherry picked to 2.0?

@mikebrow mikebrow added the cherry-pick/2.0.x Change to be cherry picked to release/2.0 branch label Apr 18, 2025
@mikebrow
Copy link
Copy Markdown
Member

Should this be cherry picked to 2.0?

yes..

@yylt
Copy link
Copy Markdown
Contributor Author

yylt commented Apr 23, 2025

/cherry-pick release/2.0

@k8s-infra-cherrypick-robot
Copy link
Copy Markdown

@yylt: only containerd org members may request cherry picks. If you are already part of the org, make sure to change your membership to public. Otherwise you can still do the cherry-pick manually.

Details

In response to this:

/cherry-pick release/2.0

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.

@fuweid
Copy link
Copy Markdown
Member

fuweid commented May 6, 2025

/cherry-pick release/2.0

@k8s-infra-cherrypick-robot
Copy link
Copy Markdown

@fuweid: new pull request created: #11808

Details

In response to this:

/cherry-pick release/2.0

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.

@yylt yylt deleted the inc branch June 12, 2025 02:43
@austinvazquez austinvazquez added cherry-picked/2.0.x PR commits are cherry picked into the release/2.0 branch and removed cherry-pick/2.0.x Change to be cherry picked to release/2.0 branch labels Jul 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/cri Container Runtime Interface (CRI) cherry-picked/2.0.x PR commits are cherry picked into the release/2.0 branch ok-to-test size/S

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

containerd fails on start: "failed to get metadata for stored sandbox"

8 participants