-
Notifications
You must be signed in to change notification settings - Fork 152
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
Fix listsnapshot clean up #133
Conversation
/assign @lpabon |
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.
Can you explain in the commit message why this change is needed? In other words, what problem does it fix?
Hi, @pohly csi-test/pkg/sanity/controller.go Lines 1251 to 1259 in 3e3231b
|
But what breaks when the order is as it is now? Does the test fail? I am trying to understand whether this change works around unexpected behavior of one particular storage backend or is actually broken. @xing-yang can you perhaps comment on this? |
For some storage systems, snapshot has to be deleted first before deleting the volume. If you delete a volume with dependent snapshot, it may cause error in some storage systems. For example, Cinder prevents you from deleting a volume with dependent snapshots. For Hostpath driver, this is not a problem as the snapshot does not depend on the volume. So this change looks good to me. |
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.
lgtm
@wnxn I'm fine with merging this then, but I'd still like to have this information recorded in the commit message. Please use "git commit --amend" and "git push ... +master" to update the PR. |
Agree that it is better to add clarification in the commit message. |
For some storage systems, snapshot has to be deleted first before deleting the volume. If a volume with dependent snapshot was deleted, it may cause error in some storage systems. Therefore, we must keep the order of deletion, that is deleting a volume's snapshots before deleting the volume.
Thanks for @pohly and @xing-yang 's review. |
/lgtm Just one comment for future commits: please format commit messages with explicit line breaks in the body, they are easier to read in "git log" then. |
Hi, @pohly |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: pohly, wnxn 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 |
Fix listsnapshot clean up
7bc70e5 Merge pull request kubernetes-csi#129 from pohly/squash-documentation e0b02e7 README.md: document usage of --squash 316cb95 Merge pull request kubernetes-csi#132 from yiyang5055/bugfix/boilerplate 26e2ab1 fix: default boilerplate path 1add8c1 Merge pull request kubernetes-csi#133 from pohly/kubernetes-1.20-tag 3e811d6 prow.sh: fix "on-master" prow jobs git-subtree-dir: release-tools git-subtree-split: 7bc70e5
prow.sh: fix "on-master" prow jobs
#132