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 · May be fixed by #10215
Open

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

nvazquez opened this issue Jan 14, 2025 · 0 comments · May be fixed by #10215
Assignees
Milestone

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
@DaanHoogland DaanHoogland added this to the 4.19.2 milestone Jan 15, 2025
@nvazquez nvazquez self-assigned this Jan 20, 2025
@nvazquez nvazquez moved this from Todo to Dev In Progress in Apache CloudStack BugFest - Issues Jan 20, 2025
@nvazquez nvazquez linked a pull request Jan 20, 2025 that will close this issue
14 tasks
@nvazquez nvazquez linked a pull request Jan 20, 2025 that will close this issue
14 tasks
@nvazquez nvazquez moved this from Dev In Progress to ready for Review in Apache CloudStack BugFest - Issues Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ready for Review
Development

Successfully merging a pull request may close this issue.

2 participants