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.

Document cross-source disk identity contract

pulse-triage[bot]b9d69d029a5a
diff --git a/docs/release-control/v6/internal/subsystems/monitoring.md b/docs/release-control/v6/internal/subsystems/monitoring.md
index a6141c7b9e..6fa2aee574 100644
--- a/docs/release-control/v6/internal/subsystems/monitoring.md
+++ b/docs/release-control/v6/internal/subsystems/monitoring.md
@@ -328,9 +328,13 @@ permission-denied `disks/list` call must remain an error so the monitor can use
linked host-agent inventory or retain same-instance, same-node prior evidence;
it must never become a successful empty inventory that removes valid boot or
data disks. SMART enrichment matches serial, WWN, device path, and controller
-member topology uniquely and fail-closed, rejects placeholder hardware
-identifiers, preserves explicit failure over a later coarse healthy value, and
-lets explicit SMART endurance replace contradictory Proxmox wearout. Missing
+member topology uniquely and fail-closed. Serial and WWN are interchangeable
+hardware-identity carriers across reporters: comparison may case-fold and
+remove only `naa.`, `eui.`, `wwn-`, and `0x` framing, but must reject
+placeholders and must not truncate values, because sibling RAID volumes can
+share a shortened WWN prefix. Enrichment preserves explicit failure over a
+later coarse healthy value and lets explicit SMART endurance replace
+contradictory Proxmox wearout. Missing
permission, ambiguous identity, standby, and absent SMART fields remain
neutral rather than borrowing telemetry from another disk.
Negative percentage-used counters remain unknown; values above 100 clamp to
@@ -1170,6 +1174,18 @@ cleanup so readers cannot retain orphaned runtime or alert projections.
## Current State
+### Proxmox and agent disk observations share full hardware identity
+
+PVE may publish a RAID array volume's full NAA value as a bare serial while
+smartctl publishes the same value as an `naa.`-prefixed WWN. Monitoring's
+cross-source join compares those serial/WWN carriers after framing-only
+normalization, preserving full-length equality so a controller's sibling
+volumes cannot collapse through a common truncated udev WWN. Placeholder
+identifiers remain non-evidence. `pkg/diskinventory/identity_test.go`
+(`TestHardwareIdentityMatch`) and `internal/unifiedresources/registry_test.go`
+(`TestIssue1720ArrayVolumeMergesBareSerialWithPrefixedWWN`) are the focused
+proofs.
+
### Proxmox node network inventory is secondary and continuity-safe
Online PVE node polls read `/nodes/{node}/network` through an optional client
diff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.md
index c2de2772dc..31ef4f61fe 100644
--- a/docs/release-control/v6/internal/subsystems/unified-resources.md
+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md
@@ -110,7 +110,13 @@ misrepresented as Proxmox disk telemetry.
Physical-disk matching is parent-scoped and topology-aware: persisted source
mappings survive registry rebuilds, controller members sharing a block path
remain distinct, placeholder serials/WWNs never become canonical or metrics
-identity, and ambiguous matches fail closed. SMART counter metadata preserves
+identity, and ambiguous matches fail closed. Serial and WWN are alternate
+representations of the same durable hardware identity across reporters, so a
+value in either field may match a value in either field after case folding and
+removing only reporter framing (`naa.`, `eui.`, `wwn-`, and `0x`). Matching
+must never truncate an identifier or accept a placeholder: a shortened WWN
+shared by sibling RAID volumes is not proof that either full identifier is the
+same device. SMART counter metadata preserves
presence through pointer-valued JSON fields, so reported zero is distinct from
missing. The canonical disk payload also carries provider vendor metadata and
uses explicit SMART health, temperature, and wearout ahead of coarser
@@ -2516,6 +2522,15 @@ the five field statuses for serial, temperature, I/O, controller, and pool.
continuity, but the state and reason must survive so the consumer cannot claim
fresh evidence or synthesize controller-level activity for one member.
+Cross-source correlation compares normalized serial and WWN values across
+fields without truncation, allowing a PVE bare-hex array-volume serial to join
+the same smartctl `naa.` WWN while keeping sibling volumes with a common short
+WWN distinct. `pkg/diskinventory/identity_test.go` (`TestHardwareIdentityMatch`)
+pins framing, symmetry, placeholder, and no-truncation behavior;
+`internal/unifiedresources/registry_test.go`
+(`TestIssue1720ArrayVolumeMergesBareSerialWithPrefixedWWN`) pins the merged
+Proxmox-plus-agent resource boundary.
+
### Canonical identity succession
Connection-backed TrueNAS systems keep connection-scoped canonical IDs across