4.20.1 UI Dashboard Local storage total capacity is incorrect
- Langage dominant
- Java
- Étoiles
- 3.1k
- Forks
- 1.4k
- Merge moyen
- 6 j 19 h
- PR mergées (30 j)
- 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?

### 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_
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par reproduire l’écart du Dashboard à l’aide de la configuration KVM décrite, après avoir ajouté et supprimé des répertoires de stockage locaux, puis comparez Local Storage Total à Primary Storage Total. Le rapport ne mentionne aucun fichier, test ou point d’entrée ; l’investigation doit donc d’abord localiser le code qui calcule et affiche ces deux valeurs du Dashboard. La tâche est terminée lorsque Local Storage Total reste exact après les modifications de stockage décrites.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- java
- Domaine
- cloud, infrastructure
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 25/100