mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-07-09 16:00:59 +00: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. |
||
|---|---|---|
| .. | ||
| availability_suggestion.go | ||
| availability_suggestion_test.go | ||
| commands.go | ||
| commands_test.go | ||
| deep_scanner.go | ||
| deep_scanner_test.go | ||
| fingerprint.go | ||
| formatters.go | ||
| formatters_test.go | ||
| readiness.go | ||
| readiness_test.go | ||
| scenario_corpus_test.go | ||
| service.go | ||
| service_identity.go | ||
| service_identity_test.go | ||
| service_test.go | ||
| store.go | ||
| store_test.go | ||
| tools_adapter.go | ||
| tools_adapter_test.go | ||
| types.go | ||
| types_test.go | ||
| url_suggestion.go | ||
| url_suggestion_test.go | ||