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.

Resolve native guest aliases in the bootstrap control

pulse-triage[bot]99f584ba2e27
diff --git a/internal/monitoring/guest_windows_bootstrap_test.go b/internal/monitoring/guest_windows_bootstrap_test.go
index 2e5b7eea81..4c4eb83795 100644
--- a/internal/monitoring/guest_windows_bootstrap_test.go
+++ b/internal/monitoring/guest_windows_bootstrap_test.go
@@ -183,7 +183,9 @@ func windowsBootstrapPoll(t *testing.T, m *Monitor, client PVEClientInterface, c
m.updateResourceStore(m.currentStateWithScope())
m.recordGuestMetrics([]models.VM{vm}, nil, cycleStart)
view := m.currentModeReadState().VMs()[0]
- if view.ID() != id || view.DiskUsed() != vm.Disk.Used || view.DiskStatusReason() != vm.DiskStatusReason || view.OSName() != vm.OSName {
+ canonicalID, resolved := m.resourceStore.(*unifiedresources.MonitorAdapter).ResolveCanonicalResourceID(id)
+ knownDisk := vm.DiskStatusReason == "" || strings.HasPrefix(vm.DiskStatusReason, "prev-")
+ if !resolved || view.ID() != canonicalID || knownDisk && view.DiskUsed() != vm.Disk.Used || view.DiskStatusReason() != vm.DiskStatusReason || view.OSName() != vm.OSName {
t.Error("bootstrap changed at the canonical read boundary")
}
front := m.buildBroadcastFrontendStateFromSnapshot(models.StateSnapshot{VMs: []models.VM{vm}}, m.mockModeFence.begin())