nvazquez opened a new issue, #10185:
URL: https://github.com/apache/cloudstack/issues/10185
<!--
Verify first that your issue/request is not already reported on GitHub.
Also test if the latest release and main branch are affected too.
Always add information AFTER of these HTML comments, but no need to delete
the comments.
-->
##### ISSUE TYPE
<!-- Pick one below and delete the rest -->
* Bug
##### COMPONENT NAME
<!--
Categorize the issue, e.g. API, VR, VPN, UI, etc.
-->
~~~
UI
~~~
##### CLOUDSTACK VERSION
<!--
New line separated list of affected versions, commit ID for issues on main
branch.
-->
~~~
4.19, 4.20
~~~
##### CONFIGURATION
##### OS / ENVIRONMENT
<!--
Information about the environment if relevant, N/A otherwise
-->
##### SUMMARY
<!-- Explain the problem/feature briefly -->
It is observed on KVM environments that the capacity metrics displayed on
the UI show the allocated value and total for CPU and Memory, however the UI is
displayed the used value instead of the allocated value
Example API response for listCapacity API:
````
{
"type": 0,
"name": "MEMORY",
"zoneid": "a3cc5e82-56a3-4a48-96c1-b087146b2afc",
"zonename": "NVS Home Zone",
"capacityallocated": 21340618752,
"capacityused": 8321499136,
"capacitytotal": 32445620224,
"percentused": "25.65"
},
{
"type": 1,
"name": "CPU",
"zoneid": "a3cc5e82-56a3-4a48-96c1-b087146b2afc",
"zonename": "NVS Home Zone",
"capacityallocated": 32000,
"capacityused": 16500,
"capacitytotal": 67200,
"percentused": "24.55"
},
````
Example in the UI:
<img width="422" alt="Image"
src="https://github.com/user-attachments/assets/82d4339d-6892-400e-a152-b02c97f5c711"
/>
Check that values displayed as CPU Allocated and Memory Allocated are
actually CPU used and Memory used (as well as the calculated percentage)
##### STEPS TO REPRODUCE
<!--
For bugs, show exactly how to reproduce the problem, using a minimal
test-case. Use Screenshots if accurate.
For new features, show how the feature would be used.
-->
<!-- Paste example playbooks or commands between quotes below -->
~~~
List zone metrics, or host metrics
~~~
##### EXPECTED RESULTS
<!-- What did you expect to happen when running the steps above? -->
~~~
CPU and Memory Allocated values
~~~
##### ACTUAL RESULTS
<!-- What actually happened? -->
<!-- Paste verbatim command output between quotes below -->
~~~
CPU and Memory Used values
~~~
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]