-
Notifications
You must be signed in to change notification settings - Fork 159
Implementing watcher & reboot stability for data cache to master branch. #1946
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
Hi @halimsam. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
/ok-to-test |
@halimsam: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
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. |
/ok-to-test |
@@ -58,7 +58,7 @@ require ( | |||
github.com/davecgh/go-spew v1.1.1 // indirect | |||
github.com/emicklei/go-restful v2.9.5+incompatible // indirect | |||
github.com/felixge/httpsnoop v1.0.4 // indirect | |||
github.com/fsnotify/fsnotify v1.5.4 // indirect | |||
github.com/fsnotify/fsnotify v1.8.0 // indirect |
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.
Is this updated manually or it is updated via go mod vendor and go mod tidy?
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.
it was from "go get github.com/fsnotify/fsnotify"
pkg/gce-pd-csi-driver/cache.go
Outdated
@@ -75,7 +65,7 @@ func setupCaching(devicePath string, req *csi.NodeStageVolumeRequest, nodeId str | |||
klog.Errorf("Errored while deactivating VG %v: err: %v: %s", vgNameForPv, err, info) | |||
} | |||
// CLean up volume group to remove any dangling PV refrences | |||
reduceVolumeGroup(vgNameForPv, false) | |||
ReduceVolumeGroup(vgNameForPv, false) |
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.
There is no error returned for this function, only an error log. How do we get a signal of constant failures in the system? Do you plan to add a metrics here?
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.
ReduceVolumeGroup is only called for cleanup on PV/VG that are no longer in use. This isn't something that blocks overall data cache setup.
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.
Any constant errors should ideally also bubble up in NodeStage/NodeUnstageVolume calls when we are mounting PVCs so even if we don't capture the errors at this stage they should appear in respective GRPC calls.
Can we change the release notes to 1 line: |
0286d08
to
aad78f9
Compare
pkg/gce-pd-csi-driver/cache.go
Outdated
@@ -75,7 +65,7 @@ func setupCaching(devicePath string, req *csi.NodeStageVolumeRequest, nodeId str | |||
klog.Errorf("Errored while deactivating VG %v: err: %v: %s", vgNameForPv, err, info) | |||
} | |||
// CLean up volume group to remove any dangling PV refrences | |||
reduceVolumeGroup(vgNameForPv, false) | |||
ReduceVolumeGroup(vgNameForPv, false) |
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.
Any constant errors should ideally also bubble up in NodeStage/NodeUnstageVolume calls when we are mounting PVCs so even if we don't capture the errors at this stage they should appear in respective GRPC calls.
/test pull-gcp-compute-persistent-disk-csi-driver-e2e |
b32e285
to
cdd1023
Compare
} | ||
|
||
func StartWatcher(nodeName string) { | ||
dirToWatch := "/dev/" |
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.
Maybe add some logs to indicate the start of a watcher.
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.
Added a log.
pkg/gce-pd-csi-driver/cache.go
Outdated
// On error info contains the error message which we cannot use for further steps | ||
} | ||
|
||
if !strings.Contains(string(info), "/dev/md127") { |
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.
This needs to be updated with the rabase?
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.
Already rebased. This function was part of my change. My change after Hung's PR got reversed but it should be fixed now.
2a4a0fb
to
c5e8f77
Compare
/retest-required |
/lgtm |
The integration test is a known issue for snapshot test and is unrelated.
|
@halimsam: The following test failed, say
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. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: halimsam, sunnylovestiramisu 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 |
What type of PR is this?
/kind feature
What this PR does / why we need it:
PR changes for Data Cache:
reboot stability
watcher for volume group cleanup
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
no