-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
StorPool: fix of delete snapshot #9855
Conversation
Mark the DB record as destroyed when a snapshot is deleted
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #9855 +/- ##
============================================
- Coverage 15.78% 15.78% -0.01%
- Complexity 12564 12565 +1
============================================
Files 5627 5627
Lines 492250 492258 +8
Branches 61405 61911 +506
============================================
- Hits 77710 77708 -2
- Misses 406066 406075 +9
- Partials 8474 8475 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Hi @JoaoJandre, is it possible for this to get in 4.20 because it is a bug in the main and RC2? |
.../storpool/src/main/java/org/apache/cloudstack/storage/snapshot/StorPoolSnapshotStrategy.java
Outdated
Show resolved
Hide resolved
Hello @slavkap, sure, since we are waiting other fixes to have the RC3, we can get this in 4.20 still |
Thank you @JoaoJandre! I made the changes you suggested |
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.
clgtm
.../storpool/src/main/java/org/apache/cloudstack/storage/snapshot/StorPoolSnapshotStrategy.java
Show resolved
Hide resolved
@blueorangutan package |
@JoaoJandre a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 11469 |
@blueorangutan test |
@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
.../storpool/src/main/java/org/apache/cloudstack/storage/snapshot/StorPoolSnapshotStrategy.java
Outdated
Show resolved
Hide resolved
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.
code LGTM
[SF] Trillian test result (tid-11733)
|
Description
This PR fixes the deletion of StorPool snapshots. When a snapshot is deleted, it isn't marked in the DB as such, so when listing the snapshots, the already deleted ones show up.
Types of changes
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
Manual and smoke tests