-
Notifications
You must be signed in to change notification settings - Fork 616
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
[cinder-csi-plugin] ephemeral volume removal (#2602) #2640
Conversation
Hi @sergelogvinov. Thanks for your PR. I'm waiting for a kubernetes 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. |
5c01745
to
1912d64
Compare
1912d64
to
0747317
Compare
/ok-to-test |
@sergelogvinov could you please rebase your PR? |
0747317
to
bb8a24a
Compare
bb8a24a
to
a002f62
Compare
@kayrus done. Thank you! |
41fa616
to
5d211c1
Compare
I truly appreciate the opportunity to improve this code (plugin), and we have several suggestions and ideas regarding For now, I have removed any flags or changes related to this file. This PR is currently blocking me, and I am unable to move forward with my other PRs. Thank you for your understanding! |
5d211c1
to
ca0d7bb
Compare
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 have a couple of minor suggestions. The rest is LGTM.
Thank you for your patience.
ca0d7bb
to
9e96127
Compare
/lgtm |
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 made yet another review round and have a couple of new question.
pkg/csi/cinder/nodeserver_test.go
Outdated
// setup for test | ||
tempDir := os.TempDir() | ||
defer os.Remove(tempDir) | ||
volumePath := filepath.Join(tempDir, FakeTargetPath) | ||
err := os.MkdirAll(volumePath, 0750) | ||
if err != nil { | ||
t.Fatalf("Failed to set up volumepath: %v", err) | ||
} |
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.
Of the tempDir
has child objects, the remove will fail. We need a recursive remove.
// setup for test | |
tempDir := os.TempDir() | |
defer os.Remove(tempDir) | |
volumePath := filepath.Join(tempDir, FakeTargetPath) | |
err := os.MkdirAll(volumePath, 0750) | |
if err != nil { | |
t.Fatalf("Failed to set up volumepath: %v", err) | |
} | |
// setup for test | |
tempDir := os.TempDir() | |
volumePath := filepath.Join(tempDir, FakeTargetPath) | |
err := os.MkdirAll(volumePath, 0750) | |
if err != nil { | |
t.Fatalf("Failed to set up volumepath: %v", err) | |
} | |
defer os.RemoveAll(tempDir) |
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.
Good catch. defer os.RemoveAll(tempDir) -> defer os.RemoveAll(volumePath)
os.TempDir() - returns /tmp
folder, it does not create any folders, os.RemoveAll(tempDir) can remove /tmp
during the tests...
9e96127
to
d09b844
Compare
Remove openstack credits from node plugin Signed-off-by: Serge Logvinov <[email protected]>
d09b844
to
e28db36
Compare
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kayrus 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 this PR does / why we need it:
Remove openstack credits from node plugin
Which issue this PR fixes(if applicable):
step 2 of #2599
Special notes for reviewers:
Release note:
Manual tests: