Skip to content
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(controller): prevent zfs volume cr deletion if snapshot exists #613

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

sinhaashish
Copy link
Member

Pull Request template

Why is this PR required? What issue does it fix?:
Upon pvc deletion the zfs snapshot also gets deleted. this can be verified using ssh into the node and running the command zfs list -t all

What this PR does?:

Does this PR require any upgrade changes?:

If the changes in this PR are manually verified, list down the scenarios covered::

Any additional information for your reviewer? :
Mention if this PR is part of any design or a continuation of previous PRs

Checklist:

  • Fixes #
  • PR Title follows the convention of <type>(<scope>): <subject>
  • Has the change log section been updated?
  • Commit has unit tests
  • Commit has integration tests
  • (Optional) Are upgrade changes included in this PR? If not, mention the issue/PR to track:
  • (Optional) If documentation changes are required, which issue on https://github.com/openebs/website is used to track them:

@sinhaashish sinhaashish force-pushed the stop-deletion branch 2 times, most recently from a961d15 to 78048a5 Compare January 21, 2025 08:51
@sinhaashish
Copy link
Member Author

@tiagolobocastro PR #607 is closed as there was some issue from my side while rebasing. I have created this PR with the same code base along with checking that ZV is present in the system as per your comment here.

Splitting the test to run on different cluster can be taken sometime later.

@sinhaashish sinhaashish requested review from tiagolobocastro and Abhinandan-Purkait and removed request for tiagolobocastro January 21, 2025 10:04
ci/ci-test.sh Outdated Show resolved Hide resolved
tests/zv/build.go Outdated Show resolved Hide resolved
tests/zv/build.go Outdated Show resolved Hide resolved
tests/provision_test.go Show resolved Hide resolved
tests/suite_test.go Outdated Show resolved Hide resolved
@sinhaashish sinhaashish requested a review from niladrih January 21, 2025 10:35
@sinhaashish sinhaashish force-pushed the stop-deletion branch 5 times, most recently from 8e135cc to 39b0fc7 Compare January 21, 2025 16:44
tests/provision_test.go Outdated Show resolved Hide resolved
tests/provision_test.go Show resolved Hide resolved
@sinhaashish sinhaashish force-pushed the stop-deletion branch 13 times, most recently from 5eb7e8f to 54c716b Compare January 24, 2025 06:24
@sinhaashish sinhaashish force-pushed the stop-deletion branch 11 times, most recently from ff1251d to 3d5c36a Compare January 30, 2025 05:02
pkg/driver/controller.go Outdated Show resolved Hide resolved
pkg/driver/controller.go Outdated Show resolved Hide resolved
pkg/driver/controller.go Outdated Show resolved Hide resolved
pkg/driver/controller.go Outdated Show resolved Hide resolved
pkg/driver/controller.go Outdated Show resolved Hide resolved
pkg/zfs/volume.go Show resolved Hide resolved
pkg/zfs/volume.go Outdated Show resolved Hide resolved
pkg/zfs/volume.go Outdated Show resolved Hide resolved
pkg/zfs/volume.go Outdated Show resolved Hide resolved
pkg/zfs/volume.go Outdated Show resolved Hide resolved
@sinhaashish sinhaashish force-pushed the stop-deletion branch 2 times, most recently from 7e8f590 to 2005206 Compare January 30, 2025 11:24
@Abhinandan-Purkait
Copy link
Member

Looks good to me mostly. Thanks for taking this up. Will approve once the test passes and the other comments are addressed.

pkg/driver/controller.go Outdated Show resolved Hide resolved
tests/provision_test.go Show resolved Hide resolved
pkg/driver/controller.go Show resolved Hide resolved
@sinhaashish sinhaashish force-pushed the stop-deletion branch 3 times, most recently from 46f95ef to d0ae251 Compare January 31, 2025 13:10
tests/provision_test.go Show resolved Hide resolved
pkg/driver/controller.go Show resolved Hide resolved
@sinhaashish sinhaashish merged commit a538508 into develop Feb 3, 2025
6 checks passed
@sinhaashish sinhaashish deleted the stop-deletion branch February 3, 2025 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants