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.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Do not reuse configuration as a replication sync outcome
pulse-triage[bot]45b9dfbe5894
diff --git a/pkg/proxmox/replication.go b/pkg/proxmox/replication.goindex 54a2a18ac4..864ed3cb8b 100644--- a/pkg/proxmox/replication.go+++ b/pkg/proxmox/replication.go@@ -79,6 +79,8 @@ func (c *Client) GetReplicationStatus(ctx context.Context) ([]ReplicationJob, er// enrichReplicationJobStatus fetches status data for a replication job from// /nodes/{node}/replication/{id}/status and merges it into the job struct.func (c *Client) enrichReplicationJobStatus(ctx context.Context, job *ReplicationJob) {+ // The cluster endpoint is configuration, not a fresh status observation.+ job.LastSyncStatus = ""// Status is stored on the source nodesourceNode := job.Sourceif sourceNode == "" {diff --git a/pkg/proxmox/replication_test.go b/pkg/proxmox/replication_test.goindex f832a9d3a7..9fad277d1b 100644--- a/pkg/proxmox/replication_test.go+++ b/pkg/proxmox/replication_test.go@@ -1019,7 +1019,7 @@ func TestReplicationStatusBindsOutcomeToSourceJob(t *testing.T) {w.Header().Set("Content-Type", "application/json")switch r.URL.Path {case "/api2/json/cluster/replication":- fmt.Fprint(w, `{"data":[{"id":"100-0","guest":100,"source":"pve1","target":"pve2","schedule":"*/5"}]}`)+ fmt.Fprint(w, `{"data":[{"id":"100-0","guest":100,"source":"pve1","target":"pve2","schedule":"*/5","last_sync_status":"ok"}]}`)case "/api2/json/nodes/pve1/replication/100-0/status":w.WriteHeader(tc.httpStatus)fmt.Fprint(w, tc.body)