-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
do not return err when PodSandbox not exist #108325
do not return err when PodSandbox not exist #108325
Conversation
Co-authored-by: pacoxu <paco.xu@daocloud.io>
/cc @cynepco3hahue rebased #98225 for inactivity |
@@ -746,12 +740,13 @@ func buildContainerMapFromRuntime(runtimeService internalapi.RuntimeService) (co | |||
containerList, _ := runtimeService.ListContainers(nil) | |||
for _, c := range containerList { | |||
if _, exists := podSandboxMap[c.PodSandboxId]; !exists { | |||
return nil, fmt.Errorf("no PodsandBox found with Id '%s' for container with ID '%s' and Name '%s'", c.PodSandboxId, c.Id, c.Metadata.Name) | |||
klog.InfoS("no PodSandBox found for the container", "podSandboxId", c.PodSandboxId, "containerName", c.Metadata.Name, "containerId", c.Id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have also encountered this problem, seems to make sense.
/lgtm |
/assign @mrunalp |
/priority important-longterm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mrunalp, pacoxu The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
AFAICT this was merged into the 1.24 release branch: However "108325" is not in the v1.24 release notes: So it's hard to tell what k8s version actually has this fix. |
@pacoxu Can we consider merge this pr to 1.23 release branch? |
@rptaylor Probably, we can add a release note for it.
EDITED: We met the same problem with no setting |
…25-upstream-release-1.23 Automated cherry pick of #108325: do not return err when PodSandbox not exist
We are facing this issue in "1.21.12" , is there a plan to backport this fix to 1.21 or 1.22 ? |
What type of PR is this?
/kind bug
What this PR does / why we need it:
with --cpu-manager-policy=static, kubelet will panic when pause container lose during kubelet restarting
Which issue(s) this PR fixes:
Fixes #98218
same as #98225 (rebased)
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: