mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-21 18:53:37 +00:00
2fe22c3308
Proxmox VM/LXC templates are intentionally excluded from the monitored guest list, but their backup files exist on storage. The orphan-detection logic was firing for every template backup because the VMID was never in the guest lookup maps. Fix: track template VMID→node pairs in State.templateVMIDs (unexported, not serialised to API/frontend) during the resources poll loop, expose via StateSnapshot.TemplateVMIDs, and use in both buildGuestLookups() and the storage backup node-resolution map so orphan detection treats template backups as valid. Also preserves the template map through the cluster health grace-period path (zero-resource preservation), the partial-node grace-period path, and clears it on instance removal. Closes #1352