csi-driver-host-path
csi-driver-host-path copied to clipboard
Add ControllerServer.GetSnapshot CSI procedure
What type of PR is this?
Uncomment only one
/kind <>line, hit enter to put that in a new line, and remove leading whitespaces from that line:/kind api-change /kind bug /kind cleanup /kind design /kind documentation /kind failing-test
/kind feature
/kind flake
What this PR does / why we need it:
The new ControllerServer.GetSnapshot CSI procedure has been added to the specification. This should be implemented in the csi-driver-hostpath so that other components can use it for testing.
Which issue(s) this PR fixes:
Related to kubernetes-csi/csi-test#573
Special notes for your reviewer:
Marked as Draft because there is no CSI spec release with the new GetSnapshot procedure yet.
Does this PR introduce a user-facing change?:
Add support for the new ControllerServer.GetSnapshot CSI procedure.
Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: nixpanic Once this PR has been reviewed and has the lgtm label, please assign xing-yang for approval. For more information see the Code Review Process.
The full list of commands accepted by this bot can be found here.
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
/test all
Nothing should break :crossed_fingers:
A panic happens:
+ kubectl logs csi-hostpathplugin-98n5w csi-provisioner
W0528 09:08:30.734604 1 feature_gate.go:354] Setting GA feature gate Topology=true. It will be removed in a future release.
I0528 09:08:30.734723 1 feature_gate.go:387] feature gates: {map[Topology:true]}
I0528 09:08:30.734762 1 csi-provisioner.go:166] "Version" version="v5.2.0"
I0528 09:08:30.734774 1 csi-provisioner.go:189] Building kube configs for running in cluster...
I0528 09:08:30.735052 1 envvar.go:172] "Feature gate default state" feature="ClientsAllowCBOR" enabled=false
I0528 09:08:30.735090 1 envvar.go:172] "Feature gate default state" feature="ClientsPreferCBOR" enabled=false
I0528 09:08:30.735099 1 envvar.go:172] "Feature gate default state" feature="InformerResourceVersion" enabled=false
I0528 09:08:30.735107 1 envvar.go:172] "Feature gate default state" feature="WatchListClient" enabled=false
I0528 09:08:30.735787 1 connection.go:234] "Connecting" address="unix:///csi/csi.sock"
I0528 09:08:30.736893 1 common.go:143] "Probing CSI driver for readiness"
I0528 09:08:30.736926 1 connection.go:264] "GRPC call" method="/csi.v1.Identity/Probe" request="{}"
I0528 09:08:30.738315 1 connection.go:270] "GRPC response" response="{}" err=null
I0528 09:08:30.738392 1 connection.go:264] "GRPC call" method="/csi.v1.Identity/GetPluginInfo" request="{}"
I0528 09:08:30.739400 1 connection.go:270] "GRPC response" response="{\"name\":\"hostpath.csi.k8s.io\",\"vendor_version\":\"v1.16.0-20-g3fb2665\"}" err=null
I0528 09:08:30.739465 1 csi-provisioner.go:244] Detected CSI driver hostpath.csi.k8s.io
I0528 09:08:30.739486 1 connection.go:264] "GRPC call" method="/csi.v1.Identity/GetPluginCapabilities" request="{}"
I0528 09:08:30.740548 1 connection.go:270] "GRPC response" response="{\"capabilities\":[{\"service\":{\"type\":\"CONTROLLER_SERVICE\"}},{\"service\":{\"type\":\"GROUP_CONTROLLER_SERVICE\"}},{\"service\":{\"type\":\"VOLUME_ACCESSIBILITY_CONSTRAINTS\"}}]}" err=null
I0528 09:08:30.740602 1 connection.go:264] "GRPC call" method="/csi.v1.Controller/ControllerGetCapabilities" request="{}"
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0x1b8ae42]
goroutine 1 [running]:
github.com/kubernetes-csi/csi-lib-utils/protosanitizer.stripSingleValue({0x263df28, 0xc00031f680}, {{}, 0x1de98a0?, 0x0?, 0x1de9120?})
/workspace/vendor/github.com/kubernetes-csi/csi-lib-utils/protosanitizer/protosanitizer.go:71 +0x82
github.com/kubernetes-csi/csi-lib-utils/protosanitizer.stripValue({0x263df28, 0xc00031f680}, {{}, 0x1de98a0?, 0x0?, 0xc0005029e8?})
/workspace/vendor/github.com/kubernetes-csi/csi-lib-utils/protosanitizer/protosanitizer.go:94 +0x1b8
github.com/kubernetes-csi/csi-lib-utils/protosanitizer.stripMessage.func1({0x263df28, 0xc00031f680}, {{}, 0x1de98a0?, 0x0?, 0xc0002569d0?})
/workspace/vendor/github.com/kubernetes-csi/csi-lib-utils/protosanitizer/protosanitizer.go:108 +0xdc
...
Reported kubernetes-csi/external-provisioner#1382 to get a release with the (already merged) fix.
/test all
All sidecars should have fixes for the unknown enum value of the GetSnapshot capability, no more panics?
/test all
take 2: hopefully replaced all v5.2.0 csi-provisioner sidecars.
/test pull-kubernetes-csi-csi-driver-host-path-1-30-test-on-kubernetes-1-30
Oh no, more sidecars needed updating
/test pull-kubernetes-csi-csi-driver-host-path-1-31-on-kubernetes-1-31
The csi-external-health-monitor-controller with fix is not available as a release yet. Waiting for kubernetes/k8s.io#8177.
/test pull-kubernetes-csi-csi-driver-host-path-1-31-on-kubernetes-1-31
/test pull-kubernetes-csi-csi-driver-host-path-1-31-on-kubernetes-1-31
/retest
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs.
This bot triages PRs according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the PR is closed
You can:
- Mark this PR as fresh with
/remove-lifecycle stale - Close this PR with
/close - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
The Kubernetes project currently lacks enough active contributors to adequately respond to all PRs.
This bot triages PRs according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the PR is closed
You can:
- Mark this PR as fresh with
/remove-lifecycle rotten - Close this PR with
/close - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle rotten
/test all
@nixpanic: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:
| Test name | Commit | Details | Required | Rerun command |
|---|---|---|---|---|
| pull-kubernetes-csi-csi-driver-host-path-unit | 99fc32539fc75b3f766a7c65649d16a4591e4a82 | link | true | /test pull-kubernetes-csi-csi-driver-host-path-unit |
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.
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.
PR needs rebase.
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.