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
Check for all errors in CRI connection validation #115102
Conversation
@@ -98,6 +98,8 @@ func (r *remoteImageService) validateServiceConnection(ctx context.Context, conn | |||
|
|||
} else if status.Code(err) == codes.Unimplemented { | |||
return fmt.Errorf("CRI v1 image API is not implemented for endpoint %q: %w", endpoint, err) | |||
} else if status.Code(err) == codes.Unavailable { |
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.
@saschagrunert Thank you for your PR!
Can you explain why do we check only for 2 codes? There are more than 2 defined in the grpc package.
And why this function returns nil on any errors except of these 2?
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.
That's a very good point! We now only have one CRI API to test against, means we can check for any error during connection setup.
Changed as suggested.
We only have one CRI API (v1) to validate during the initial connection of the kubelet with the container runtime. Therefore we can now verify all kind of GRPC related issues. Fixes: kubernetes#114956 Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
a436e3d
to
e89547d
Compare
Unavailable
in CRI connection validation
/triage accepted |
LGTM label has been added. Git tree hash: 6f7b2158ef2b36c0628cbe919841afe4f8d7a28b
|
/kind bug |
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.
/lgtm
/assign @mrunalp
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mrunalp, saschagrunert, SergeyKanzhelev 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 |
The Kubernetes project has merge-blocking tests that are currently too flaky to consistently pass. This bot retests PRs for certain kubernetes repos according to the following rules:
You can:
/retest |
2 similar comments
The Kubernetes project has merge-blocking tests that are currently too flaky to consistently pass. This bot retests PRs for certain kubernetes repos according to the following rules:
You can:
/retest |
The Kubernetes project has merge-blocking tests that are currently too flaky to consistently pass. This bot retests PRs for certain kubernetes repos according to the following rules:
You can:
/retest |
/retest |
/test pull-kubernetes-verify |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
We only have one CRI API (v1) to validate during the initial connection of the kubelet with the container runtime. Therefore we can now verify all kind of GRPC related issues.
Which issue(s) this PR fixes:
Fixes #114956, kubernetes-sigs/cri-tools#1041
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: