Updated listStoragePools response - added new managed parameter#9588
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 4.19 #9588 +/- ##
============================================
- Coverage 15.08% 15.08% -0.01%
+ Complexity 11184 11183 -1
============================================
Files 5406 5406
Lines 472915 472930 +15
Branches 60040 58313 -1727
============================================
- Hits 71345 71344 -1
- Misses 393626 393644 +18
+ Partials 7944 7942 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
@blueorangutan package |
| DataStore store = dataStoreMgr.getDataStore(pool.getId(), DataStoreRole.Primary); | ||
| PrimaryDataStoreDriver driver = (PrimaryDataStoreDriver) store.getDriver(); | ||
| long usedIops = driver.getUsedIops(storagePool); | ||
| poolResponse.setAllocatedIops(usedIops); |
There was a problem hiding this comment.
this code is sync with the response parameters set for managed pools here:
|
@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. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 10840 |
|
@blueorangutan test |
|
@sureshanaparti a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-11217)
|
|
@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. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 10877 |
|
@blueorangutan test |
|
@sureshanaparti a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-11260)
|
kiranchavala
left a comment
There was a problem hiding this comment.
LGTM
The managed parameter is present
Before fix
"storagepool": [
{
"clusterid": "0b9e2379-183d-4e23-be39-2d3a9fc612eb",
"clustername": "p1-c1",
"created": "2024-09-02T06:04:41+0000",
"disksizeallocated": 5295898792,
"disksizetotal": 2197949513728,
"disksizeused": 1587378388992,
"hasannotations": false,
"hypervisor": "KVM",
"id": "373915ca-ac45-39e6-9d24-581ae842a6e1",
"ipaddress": "10.0.32.4",
"istagarule": false,
"name": "ref-trl-7229-k-Mol8-kiran-chavala-kvm-pri1",
"overprovisionfactor": "2.0",
"path": "/acs/primary/ref-trl-7229-k-Mol8-kiran-chavala/ref-trl-7229-k-Mol8-kiran-chavala-kvm-pri1",
"podid": "9ec8c022-f6e2-44e9-b5f0-4ba656ea8700",
"podname": "Pod1",
"provider": "DefaultPrimary",
"scope": "CLUSTER",
"state": "Up",
"storagecapabilities": {
"VOLUME_SNAPSHOT_QUIESCEVM": "false"
},
"type": "NetworkFilesystem",
"zoneid": "1687b564-7058-4a75-8ef0-da2df838d7ee",
"zonename": "ref-trl-7229-k-Mol8-kiran-chavala"
},
After the fix "managed": false is present
"storagepool": [
{
"clusterid": "9f9d0253-e541-463a-b49c-0b02f6488902",
"clustername": "p1-c1",
"created": "2024-09-03T06:26:51+0000",
"disksizeallocated": 5243076688,
"disksizetotal": 2197949513728,
"disksizeused": 1611492491264,
"hasannotations": false,
"hypervisor": "KVM",
"id": "8ff79807-6bac-39a0-9635-abc03ab5cf0a",
"ipaddress": "10.0.32.4",
"istagarule": false,
"managed": false,
"name": "ref-trl-7251-k-Mol8-kiran-chavala-kvm-pri1",
"overprovisionfactor": "2.0",
"path": "/acs/primary/ref-trl-7251-k-Mol8-kiran-chavala/ref-trl-7251-k-Mol8-kiran-chavala-kvm-pri1",
"podid": "469b1380-385f-4581-9168-7eaa171061f5",
"podname": "Pod1",
"provider": "DefaultPrimary",
"scope": "CLUSTER",
"state": "Up",
"storagecapabilities": {
"VOLUME_SNAPSHOT_QUIESCEVM": "false"
},
"type": "NetworkFilesystem",
"zoneid": "dda37f34-1922-4c31-b1b9-3daae26a24b2",
"zonename": "ref-trl-7251-k-Mol8-kiran-chavala"
},
Description
This PR updates listStoragePools response - added new managed parameter.
Partially addresses #8731
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
Manually, tested the listStoragePools API.
How did you try to break this feature and the system with this change?