Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

fix: use consistent ID for shared storage to prevent duplication (#1049)

rcourtman06ebaf50b2b6
diff --git a/internal/monitoring/monitor_polling.go b/internal/monitoring/monitor_polling.go
index d71c183bc1..2786515aa2 100644
--- a/internal/monitoring/monitor_polling.go
+++ b/internal/monitoring/monitor_polling.go
@@ -1578,6 +1578,10 @@ func (m *Monitor) pollStorageWithNodes(ctx context.Context, instanceName string,
entry.storage.Nodes = toSortedSlice(entry.nodes)
entry.storage.NodeIDs = toSortedSlice(entry.nodeIDs)
entry.storage.NodeCount = len(entry.storage.Nodes)
+ // Fix for #1049: Use a consistent ID for shared storage that doesn't
+ // include the node name, preventing duplicates when different nodes
+ // report the same shared storage across polling cycles.
+ entry.storage.ID = fmt.Sprintf("%s-cluster-%s", entry.storage.Instance, entry.storage.Name)
allStorage = append(allStorage, entry.storage)
}