From 8bd2187971d5dfee9a7ccd2ef55fc47596d569c7 Mon Sep 17 00:00:00 2001 From: Pulse Monitor Date: Thu, 4 Sep 2025 15:49:20 +0000 Subject: [PATCH] fix: PBS storage incorrectly showing on wrong nodes (addresses #403) PBS storage was being marked as shared when it shouldn't be. Each PBS namespace is node-specific even when connecting to the same PBS server. Now PBS storage correctly shows under its respective node instead of all being assigned to the last node. --- internal/monitoring/monitor.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/monitoring/monitor.go b/internal/monitoring/monitor.go index ca8f4c3ee..a3b6b0328 100644 --- a/internal/monitoring/monitor.go +++ b/internal/monitoring/monitor.go @@ -1991,7 +1991,8 @@ func (m *Monitor) pollStorageWithNodes(ctx context.Context, instanceName string, clusterConfig, hasClusterConfig := clusterStorageMap[storage.Storage] // Determine if shared - shared := hasClusterConfig && clusterConfig.Shared == 1 + // PBS storage is never shared - each node has its own namespace even if connecting to the same PBS + shared := hasClusterConfig && clusterConfig.Shared == 1 && storage.Type != "pbs" // For shared storage, only include it once storageKey := storage.Storage