mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-07-10 00:14:38 +00:00
When the same physical Ceph cluster is reported by both the Proxmox API poller and a Pulse host-agent (same FSID), v5 stored it under two pool-ID namespaces and ran alert evaluation on the raw, un-deduplicated list, producing duplicate/flapping Ceph pool alerts and a per-pool override that appeared to revert between identities. v6 closes this without the v5 'agent:'-prefix patch: both ingest paths reconcile by FSID before alert evaluation. State.UpsertCephCluster (host-agent) and State.UpdateCephClustersForInstance (Proxmox) both funnel through upsertCephClusterInSlice, which collapses same-FSID clusters into a single reconciled entry, and both call sites run checkCephPoolStorage on the STORED cluster. The per-pool override resolves across source aliases via storageThresholdLookupIDs/cephPoolStorageSourceAliasID, and clearStorageAliasAlerts removes any alias-keyed alert. This adds a regression test asserting the observable outcome for the exact dual-source scenario (host-agent + Proxmox API, same FSID, one pool at ~61% with a 50% per-pool override): exactly one active Ceph pool usage alert, override honored, no second/flapping alert across either ingest order or repeated interleaved cycles. No behavior change. |
||
|---|---|---|
| .. | ||
| actionplanner | ||
| agentexec | ||
| agenttls | ||
| agentupdate | ||
| ai | ||
| alerts | ||
| api | ||
| bootstrap | ||
| cloudcp | ||
| config | ||
| crypto | ||
| deploy | ||
| discovery | ||
| dockeragent | ||
| hostagent | ||
| hosted | ||
| hostmetrics | ||
| kubernetesagent | ||
| license | ||
| logging | ||
| maintenancesentinel | ||
| metrics | ||
| mock | ||
| mockmode | ||
| mockmodel | ||
| mockruntime | ||
| models | ||
| monitoring | ||
| notifications | ||
| platformsupport | ||
| recovery | ||
| relay | ||
| remoteconfig | ||
| repoctl | ||
| securityutil | ||
| sensors | ||
| servicediscovery | ||
| ssh/knownhosts | ||
| storagehealth | ||
| system | ||
| telemetry | ||
| testutil | ||
| truenas | ||
| unifiedresources | ||
| updates | ||
| updatesignature | ||
| utils | ||
| vmware | ||
| websocket | ||