-
Notifications
You must be signed in to change notification settings - Fork 1.2k
server: fix snapshot physical size #10216
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
Conversation
Fixes apache#9660 Signed-off-by: Abhishek Kumar <[email protected]>
Signed-off-by: Abhishek Kumar <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 4.19 #10216 +/- ##
============================================
+ Coverage 15.13% 15.14% +0.01%
- Complexity 11274 11283 +9
============================================
Files 5408 5408
Lines 473974 473828 -146
Branches 57813 57825 +12
============================================
+ Hits 71730 71778 +48
+ Misses 394227 394027 -200
- Partials 8017 8023 +6
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
@blueorangutan package |
|
@shwstppr 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 12139 |
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.
Thanks @shwstppr LGTM - manually tested OK:
Listed snapshots without ID, with specific IDs and verified physical size is displayed on the API and the UI as well:
(localcloud) 🐱 > list snapshots listall=true filter=physicalsize,virtualsize,state
{
"count": 2,
"snapshot": [
{
"physicalsize": 1510539264,
"state": "BackedUp",
"virtualsize": 8589934592
},
{
"physicalsize": 1510539264,
"state": "BackedUp",
"virtualsize": 8589934592
}
]
}
(localcloud) 🐱 > list snapshots listall=true filter=physicalsize,virtualsize,state id=35cb5416-a5d6-4875-9298-d8e39b15ce77
{
"count": 1,
"snapshot": [
{
"physicalsize": 1510539264,
"state": "BackedUp",
"virtualsize": 8589934592
}
]
}
(localcloud) 🐱 > list snapshots listall=true filter=physicalsize,virtualsize,state id=60de4d7a-548a-44f1-a957-2f8f77f0999f
{
"count": 1,
"snapshot": [
{
"physicalsize": 1510539264,
"state": "BackedUp",
"virtualsize": 8589934592
}
]
}
|
@blueorangutan test |
|
@nvazquez a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
DaanHoogland
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.
clgtm
server/src/main/java/com/cloud/api/query/dao/SnapshotJoinDaoImpl.java
Outdated
Show resolved
Hide resolved
…pl.java Co-authored-by: Wei Zhou <[email protected]>
|
@blueorangutan package |
|
@shwstppr 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. |
Signed-off-by: Abhishek Kumar <[email protected]>
Signed-off-by: Abhishek Kumar <[email protected]>
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 12186 |
|
[SF] Trillian test result (tid-12172)
|
|
@blueorangutan test keepEnv |
|
@borisstoyanov a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-12224)
|
borisstoyanov
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.
LGTM, manually checked it
Signed-off-by: Abhishek Kumar <[email protected]> Co-authored-by: Wei Zhou <[email protected]>
Description
Fixes #9660
Retrieving results from snapshot_view when only a single id passed was always returning Primary role entry (seen in the 3rd query below. To overcome this all entries for the single ID are fetched and sorted in the JAVA code.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?