apache / apache/cloudstack

4.20.1 UI Dashboard Local storage total capacity is incorrect

Open
#11,059 3 comments 0 reactions 0 assignees View on GitHub
component:metrics
Dominant language
Java
Stars
3.1k
Forks
1.4k
Avg merge
6d 19h
Merged PRs (30d)
32

Description

### problem

**I have two KVM nodes, both using local storage:**

After adding multiple disks to the KVM node server, I repeatedly added and deleted local storage directories in the Primary Storage menu(The deletions resulted from poor directory layout planning). Now, the UI Dashboard shows incorrect Storage Total values.

**However, I’ve verified that:**

The **Primary Storage Total** in the UI Dashboard is correct.
The **Local Storage Total** is incorrect.

How can I fix this discrepancy? can I manually correct the data in MySQL to resolve this issue?

![Image](https://github.com/user-attachments/assets/f26b892f-a5b6-47c9-93e6-b9983c315e6a)

### versions

CS version: 4.20.1
mgmt OS: rocky-9.6
kvm OS:rocky-9.6
qemu version: 9.1.0

### The steps to reproduce the bug

1. Cluster everythings be ok - only local storage capacity display is inaccurate in UI
2.
3.
...

### What to do about it?

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the Dashboard discrepancy using the described KVM setup after adding and deleting local storage directories, and compare Local Storage Total with Primary Storage Total. The report names no files, tests, or entry points, so investigation must first locate the code that calculates and renders these two dashboard values. Done means the Local Storage Total remains accurate after the described storage changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
cloud, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.