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.

Bound routing ownership proof without a one-second latency assumption

pulse-triage[bot]5b895ff78e61
diff --git a/docs/release-control/v6/internal/subsystems/monitoring.md b/docs/release-control/v6/internal/subsystems/monitoring.md
index 20125d00c5..0eb1b51a8c 100644
--- a/docs/release-control/v6/internal/subsystems/monitoring.md
+++ b/docs/release-control/v6/internal/subsystems/monitoring.md
@@ -63,6 +63,12 @@ Saved-view consolidation also refuses a view with internal pin contradictions,
so map indexing cannot hide an earlier contradictory row before monitoring
starts. `TestConsolidatePVEInstancesRetainsInternallyConflictingPins` covers
both merge orders, repeated rows, same-node/address evidence and agreeing formats.
+The endpoint-ownership routing control uses a five-second fixture client and
+a ten-second enclosing caller lifetime, rather than a one-second latency
+criterion. It records elapsed time and both targets' request counts; unchanged
+pin, admission and routing assertions remain required. Runtime timeouts and
+separate timeout/cancellation controls are unchanged. This is not a diagnosis
+or dismissal of the retained earlier one-second timeout.
This establishes source/consumer behaviour, not native recovery or attribution
of a guest, PBS or certificate report.
diff --git a/docs/release-control/v6/internal/subsystems/security-privacy.md b/docs/release-control/v6/internal/subsystems/security-privacy.md
index d71a28a754..1e306edb29 100644
--- a/docs/release-control/v6/internal/subsystems/security-privacy.md
+++ b/docs/release-control/v6/internal/subsystems/security-privacy.md
@@ -64,6 +64,12 @@ Saved-view consolidation also refuses a view with internal pin contradictions,
so map indexing cannot hide an earlier contradictory row before monitoring
starts. `TestConsolidatePVEInstancesRetainsInternallyConflictingPins` covers
both merge orders, repeated rows, same-node/address evidence and agreeing formats.
+The endpoint-ownership routing control uses a five-second fixture client and
+a ten-second enclosing caller lifetime, rather than a one-second latency
+criterion. It records elapsed time and both targets' request counts; unchanged
+pin, admission and routing assertions remain required. Runtime timeouts and
+separate timeout/cancellation controls are unchanged. This is not a diagnosis
+or dismissal of the retained earlier one-second timeout.
This establishes source/consumer behaviour, not native recovery or attribution
of a guest, PBS or certificate report.
diff --git a/pkg/proxmox/cluster_client_endpoint_ownership_test.go b/pkg/proxmox/cluster_client_endpoint_ownership_test.go
index 1e748ee227..5ad31ac18e 100644
--- a/pkg/proxmox/cluster_client_endpoint_ownership_test.go
+++ b/pkg/proxmox/cluster_client_endpoint_ownership_test.go
@@ -19,7 +19,13 @@ func testClusterClientEndpointOwnershipRoutingAndTrust(t *testing.T) {
other := newClusterTrustFixture(t)
declaredPin := clusterTrustPin(declared.active.Load())
input := []string{declared.server.URL}
- cc := NewClusterClient("owned-endpoints", clusterTrustConfig("https://primary.trust.invalid", declaredPin), input, nil)
+ cfg := clusterTrustConfig("https://primary.trust.invalid", declaredPin)
+ // This is a routing/ownership assertion, not a one-second latency SLO.
+ // Keep local fixture work bounded without making race instrumentation,
+ // TLS scheduling or diagnostic output an ownership failure. Production
+ // timeouts and the separate cancellation/timeout tests are unchanged.
+ cfg.Timeout = 5 * time.Second
+ cc := NewClusterClient("owned-endpoints", cfg, input, nil)
// Reusing the caller's configuration storage must not declare a new member,
// change the live failover target, or permit first-use trust for that target.
@@ -31,11 +37,15 @@ func testClusterClientEndpointOwnershipRoutingAndTrust(t *testing.T) {
t.Error("caller-owned endpoint edit declared a new first-use trust target")
}
before := declared.requests.Load()
+ ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
+ defer cancel()
+ started := time.Now()
// The first single-endpoint read also performs a connectivity check. Pin
// the authenticated target, not the implementation's number of API probes.
- if nodes, err := cc.GetNodes(context.Background()); err != nil || len(nodes) != 1 || declared.requests.Load() <= before {
+ if nodes, err := cc.GetNodes(ctx); err != nil || len(nodes) != 1 || declared.requests.Load() <= before {
t.Errorf("caller-owned endpoint edit interrupted ordinary pinned monitoring: %v", err)
}
+ t.Logf("bounded routing read: elapsed=%s client_timeout=%s declared_requests=%d injected_requests=%d", time.Since(started), cfg.Timeout, declared.requests.Load()-before, other.requests.Load())
// Use a real local verifier mismatch, not provider text. Rejected admission
// must do no additional capture handshake, authenticated request or pin write.