mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-12-01 01:52:30 +01:00
Hosts (PVE nodes and host agents) were entirely outside the discovery fingerprint model. Two consequences, one root: 1. collectFingerprints only covered docker/lxc/vm/k8s, so a host never appeared in GetChangedResources and automatic discovery never ran for it. Only the per-resource manual trigger worked, which is exactly the v6.0.5-rc.3 behaviour reported in #1479. 2. cleanupOrphanedData built its keep-set from the same four types, so CleanupOrphanedDiscoveries swept every agent:* discovery as an orphan on the next fingerprint cycle (default 5 minutes). Manually discovered hosts silently reverted to undiscovered. Fix: add GenerateHostFingerprint (identity, OS, kernel, arch, tags; status excluded so online/offline flapping cannot trigger rediscovery), fingerprint snap.Hosts under the canonical agent:<id>:<id> key, and keep host/node discovery keys (canonical, hostname-alias, and legacy host: prefix forms) out of orphan cleanup. Also purge the store's in-memory cache when an orphaned discovery file is removed, so deletions are not masked for the cache TTL.