Go to file
Igor Thaller b5600e6683 ui: dc summary: fix calculation of storage size
The issue is related to the 'Summary' tab under 'Datacenter' inside a
cluster. To get a steady reading of the storage size data, the
frontend requests the '/api2/json/cluster/resources' every three
seconds to retrieve the necessary data to calculate the used and total
storage size.

The problem occurs when a shared storage is defined and a node goes
offline. As the node is not online, it cannot report the shared
storage size (both used and total) back to the other nodes. The order
of the JSON response is not always the same, so it is possible that
the offline node will appear first. Consequently, the frontend will
display the wrong total and used storage. This is because the shared
storage data has both the maximum disk size and the used disk set to
zero when the node is offline. This causes the total and used space
data to be calculated and displayed incorrectly, leading to
fluctuations in the displayed percentage of used disk space.

To fix this, add a conditional check to skip the storage report if its
status is 'unknown' (regardless of if the storage is local or shared).
This prevents the unreliable data from being processed.

Reported-by: Friedrich Weber <f.weber@proxmox.com>
Signed-off-by: Igor Thaller <igor.thaller@aon.at>
2024-07-31 17:33:03 +02:00
aplinfo update shipped appliance info index 2024-05-07 11:55:24 +02:00
bin makefile: fix waring typo 2024-07-22 18:28:18 +02:00
configs vzdump config: add fleecing property string 2024-06-12 12:50:47 +02:00
debian d/control: bump proxmox-widget-toolkit dependency to 4.1.4 2024-07-22 19:34:58 +02:00
network-hooks makefile: convert to use simple parenthesis 2023-05-29 18:24:00 +02:00
PVE api: notification: add API for getting known metadata fields/values 2024-07-22 19:34:58 +02:00
services makefile: convert to use simple parenthesis 2023-05-29 18:24:00 +02:00
templates notifications: use named templates instead of in-code templates 2024-06-03 14:16:35 +02:00
test tests: remove vzdump_notification test 2024-06-03 14:16:35 +02:00
www ui: dc summary: fix calculation of storage size 2024-07-31 17:33:03 +02:00
.gitignore gitignore: ignore any test artifacts 2024-06-03 14:16:35 +02:00
defines.mk fix #844: allow to pre-delay start-all-marked guests on boot 2019-11-20 20:20:58 +01:00
Makefile notifications: use named templates instead of in-code templates 2024-06-03 14:16:35 +02:00
spice-example-sh doc: spice-example-sh: support special characters in passwords 2017-10-05 13:57:27 +02:00
vzdump-hook-script.pl close #3476: vzdump: add job-init hook 2022-01-18 12:20:26 +01:00