4.20.1 UI Dashboard Local storage total capacity is incorrect
- 主要語言
- Java
- 星號
- 3.1k
- 分支
- 1.4k
- 平均合併
- 6 天 19 小時
- 30 天內合併 PR
- 32
描述
### 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?

### 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_
貢獻指南
研究方向
首先,在新增和刪除本機儲存目錄後,使用所描述的 KVM 設定重現 Dashboard 差異,並比較 Local Storage Total 與 Primary Storage Total。報告未指明任何檔案、測試或進入點,因此調查必須先找出計算並呈現這兩個 Dashboard 值的程式碼。在所描述的儲存變更後 Local Storage Total 仍保持準確,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- java
- 領域
- cloud, infrastructure
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100