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 #607

Closed

Conversation

sinhaashish
Copy link
Member

@sinhaashish sinhaashish commented Dec 20, 2024

Pull Request template

Please, go through these steps before you submit a PR.

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?:
It stops deletion of CR if snapshot exists

Does this PR require any upgrade changes?:
no

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-of-snapshot-upon-pvc-deletion branch 25 times, most recently from ab7ac7e to 2ef74a3 Compare January 16, 2025 06:59
@sinhaashish sinhaashish force-pushed the stop-deletion-of-snapshot-upon-pvc-deletion branch from 2ef74a3 to 6fc2bd8 Compare January 17, 2025 08:55
@sinhaashish sinhaashish force-pushed the stop-deletion-of-snapshot-upon-pvc-deletion branch from 6fc2bd8 to 5428395 Compare January 17, 2025 12:42
ci/ci-test.sh Outdated
@@ -107,7 +107,7 @@ runTestSuite() {

echo "running ginkgo test case with coverage ${coverageFile}"

if ! ginkgo -v -coverprofile="${coverageFile}" --label-filter="${labelFilter}" -covermode=atomic; then
if ! ginkgo -p -v -coverprofile="${coverageFile}" --label-filter="${labelFilter}" -covermode=atomic; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This runs the tests in parallel?
But it's still on the same cluster, is it better to split into different clusters?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed the -p

deleteAppDeployment(cloneAppNameAlpha)

deletePVC(clonePvcNameAlpha)
deleteSnapshot(pvcNameAplha, snapNameAlpha)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here we should check if the ZV CR has been deleted as well?

@sinhaashish sinhaashish force-pushed the stop-deletion-of-snapshot-upon-pvc-deletion branch from 5428395 to bced0f3 Compare January 21, 2025 04:53
@sinhaashish sinhaashish force-pushed the stop-deletion-of-snapshot-upon-pvc-deletion branch from bced0f3 to a48fcdb Compare January 21, 2025 04:55
@tiagolobocastro tiagolobocastro deleted the stop-deletion-of-snapshot-upon-pvc-deletion branch January 27, 2025 23:45
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.

2 participants