apache / apache/cloudstack

4.20.1 UI Dashboard Local storage total capacity is incorrect

オープン
#11,059 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
component:metrics
主要言語
Java
スター
3.1k
フォーク
1.4k
平均マージ
6日 19時間
マージ済み PR(30日)
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?

![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_

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、ローカルストレージディレクトリを追加および削除した後、説明されている KVM セットアップを使用して Dashboard の不一致を再現し、Local Storage Total と Primary Storage Total を比較します。レポートにはファイル、テスト、エントリーポイントが記載されていないため、調査ではまず、これら 2 つの Dashboard の値を計算して表示するコードを特定する必要があります。説明されているストレージ変更後も Local Storage Total が正確なままであれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java
領域
cloud, infrastructure
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。