-
Notifications
You must be signed in to change notification settings - Fork 1.1k
server: fix error handling for container status retrieval #8488
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
Conversation
Signed-off-by: Sohan Kunkerkar <sohank2602@gmail.com>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: sohankunkerkar The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8488 +/- ##
=======================================
Coverage 49.34% 49.34%
=======================================
Files 153 153
Lines 17206 17206
=======================================
Hits 8491 8491
Misses 7648 7648
Partials 1067 1067 |
/retest |
@sohankunkerkar: The following test failed, say
Full PR test history. Your PR dashboard. 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. |
@@ -30,7 +31,7 @@ func (s *Server) RemoveContainer(ctx context.Context, req *types.RemoveContainer | |||
// The RemoveContainer RPC is idempotent, and must not return an error | |||
// if the container has already been removed. Ref: | |||
// https://github.com/kubernetes/cri-api/blob/c20fa40/pkg/apis/runtime/v1/api.proto#L74-L75 | |||
if errors.Is(err, truncindex.ErrNotExist) { |
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.
Have you looked at why checking for a wrapped error here does not work?
The call stack for this error is rather straightforward.
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.
I agree the wrapping should technically work 🤔
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.
ah, I think we need to backport #8431
Closing this in favor of back-porting #8431 |
What type of PR is this?
/kind bug
/kind cleanup
What this PR does / why we need it:
This change addresses issues where the Kubelet logs show numerous "ID does not exist" errors when attempting to retrieve container statuses.
I observed multiple instances of the following error in the Kubelet logs
Which issue(s) this PR fixes:
Special notes for your reviewer:
Does this PR introduce a user-facing change?