-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Show parent snapshot (along with the chain size) for incremental snapshots #12468
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
base: 4.22
Are you sure you want to change the base?
Show parent snapshot (along with the chain size) for incremental snapshots #12468
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## 4.22 #12468 +/- ##
============================================
- Coverage 17.59% 17.59% -0.01%
Complexity 15601 15601
============================================
Files 5910 5910
Lines 529819 529839 +20
Branches 64730 64730
============================================
- Hits 93225 93224 -1
- Misses 426099 426120 +21
Partials 10495 10495
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Pull request overview
This PR enhances the snapshot feature by exposing parent snapshot information and chain size for incremental snapshots. The feature is controlled by the configuration setting 'snapshot.show.chain.size' and affects both API responses and UI display.
Changes:
- Added parent and parentName fields to the snapshot API response
- Added snapshotShowChainSize capability to the listCapabilities API
- Updated UI to conditionally display chain size and parent name in snapshot listings when the feature is enabled
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| api/src/main/java/org/apache/cloudstack/api/response/SnapshotResponse.java | Added parent and parentName fields with setters to expose parent snapshot information |
| api/src/main/java/org/apache/cloudstack/api/response/CapabilitiesResponse.java | Added snapshotShowChainSize field and setter to expose the feature flag |
| api/src/main/java/org/apache/cloudstack/api/command/user/config/ListCapabilitiesCmd.java | Populated the SnapshotShowChainSize capability in the response |
| server/src/main/java/com/cloud/server/ManagementServerImpl.java | Retrieved and added SnapshotShowChainSize configuration value to capabilities map |
| server/src/main/java/com/cloud/api/query/dao/SnapshotJoinDaoImpl.java | Set parent UUID and name in snapshot response when showChainSize is enabled and parent exists |
| ui/src/config/section/storage.js | Conditionally added chainsize and parentname columns, and added parentname to details array |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
api/src/main/java/org/apache/cloudstack/api/response/SnapshotResponse.java
Show resolved
Hide resolved
|
@blueorangutan package |
|
@sureshanaparti 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. |
nvazquez
left a comment
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 - thanks @sureshanaparti
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 16433 |
|
@blueorangutan test |
|
@nvazquez a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-15223)
|
Description
This PR returns the parent snapshot (along with the chain size) for incremental snapshots, and show it on the UI when the config 'snapshot.show.chain.size' is enabled (extends #11313)
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
API:
DB:
How did you try to break this feature and the system with this change?