Skip to content
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

keepalive API #239

Merged
merged 2 commits into from
Nov 15, 2019
Merged

keepalive API #239

merged 2 commits into from
Nov 15, 2019

Conversation

pohly
Copy link
Contributor

@pohly pohly commented Nov 12, 2019

What type of PR is this?
/kind api-change

What this PR does / why we need it:

Enabling gRPC keepalive breaks connections if the CSI driver isn't prepared for it. When testing this is was useful to also support TCP in the mock driver.

Which issue(s) this PR fixes:
Fixes #238

Special notes for your reviewer:

Depends on PR #233

Does this PR introduce a user-facing change?:

gRPC keepalive is no longer enabled by default and must be added to dial options in `TestConfig` if needed

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Nov 12, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: pohly

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Nov 12, 2019
@k8s-ci-robot k8s-ci-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Nov 12, 2019
Sometimes it may be useful to connect to a CSI driver via TCP, for
example when controller and node service aren't running on the same
host. The mock driver can be used to test this mode of operation
now. It accepts the same "tcp://<host>:<port" and "unix://<path>"
syntax as other CSI drivers while still supporting just plain "<path>"
for backwards compatibility.
The gRPC defaults for a client do not work for a gRPC server that also
uses the defaults (grpc/grpc-go#3171) which
caused connection drops when a CSI driver is slow to respond and the
client starts sending keepalive pings too quickly
(kubernetes-csi#238).

The sanity package no longer uses gRPC keepalive. Instead, custom test
suites can enable that via some new configuration options if needed
and when it is certain that the CSI driver under test can handle it.
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Nov 14, 2019
@pohly
Copy link
Contributor Author

pohly commented Nov 14, 2019

@wnxn: can you perhaps review this PR?

@wnxn
Copy link
Contributor

wnxn commented Nov 14, 2019

@pohly When I reproduce the keepalive problem, the subsequent testcases failed for the TransientFailure. grpc/grpc-go#2669
Do we have any plan to update our gRPC dependency?

@pohly
Copy link
Contributor Author

pohly commented Nov 14, 2019

Do we have any plan to update our gRPC dependency?

It makes sense to do that, but it should better be a separate PR.

@wnxn
Copy link
Contributor

wnxn commented Nov 14, 2019

LGTM

@jsafrane
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 15, 2019
@k8s-ci-robot k8s-ci-robot merged commit a68ba27 into kubernetes-csi:master Nov 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Disable gRPC keepalive dial option on default
4 participants