-
Notifications
You must be signed in to change notification settings - Fork 90
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
livenessprobe should use CSI connection lib & only connect at startup #37
Conversation
E2E is hanging because the new connection lib dials forever but the e2e tests are expecting a 500 at some point due to connection timeout from hostpath. A few options to address this:
|
This might be related? kubernetes-csi/csi-test#165 |
@msau42 @jsafrane adding some extra context on why the e2e tests are failing. From Travis CI I'm seeing
What I think is happening is that the failure test case hangs forever because gRPC dial from If there are no intentions to add timeout in the common connection lib, I think an acceptable solution here is to modify the failure test case to succeed if no response is provided within 10 seconds. Alternatively, we can follow @msau42's suggestion of wrapping checkHealth under a timeout or we can have the common connection lib accept an optional timeout for cases like this one. My only concern with passing a timeout in the livenessprobe sidecar is that the user is now responsible for ensuring the probe timeout on the sidecar is in line with the timeout that may be specified on the liveness probe on the pod spec. If we dial forever, then the probe timeout is automatically the timeout set on the pod spec. Thoughts? |
I think the simplest solution would be to add an optional timeout to the connect and probe methods and have the liveness probe use a small value. |
Sounds good to me! I'll get started on that, thanks! |
fcac95b
to
3a9c5ca
Compare
3a9c5ca
to
dde2a9a
Compare
Gopkg.toml
Outdated
@@ -39,7 +39,7 @@ | |||
|
|||
[[constraint]] | |||
name = "github.com/kubernetes-csi/csi-lib-utils" | |||
version = "0.1.0" | |||
branch = "master" |
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 can change this back once a new version of csi-lib-utils is released
dde2a9a
to
c4dfd6c
Compare
c4dfd6c
to
2927f6a
Compare
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andrewsykim, msau42 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 |
STOR-1020: Rebase `csi-livenessprobe` to v2.9.0 for OCP 4.13
/assign @msau42 @jsafrane @vladimirvivien
Updating CSI sidecars to use the common connection library in csi-lib-utils.