Skip to content
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

[UI] Metris calculations mismatch - Allocated vs Used #10185

Open
nvazquez opened this issue Jan 14, 2025 · 0 comments
Open

[UI] Metris calculations mismatch - Allocated vs Used #10185

nvazquez opened this issue Jan 14, 2025 · 0 comments

Comments

@nvazquez
Copy link
Contributor

ISSUE TYPE
  • Bug
COMPONENT NAME
UI
CLOUDSTACK VERSION
4.19, 4.20
CONFIGURATION
OS / ENVIRONMENT
SUMMARY

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:
Image

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
	List zone metrics, or host metrics
EXPECTED RESULTS
CPU and Memory Allocated values
ACTUAL RESULTS
CPU and Memory Used values
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants