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
Treat 501 responses as non-fatal in cluster failover (#449)
rcourtmanf8b6aa6c97e2
diff --git a/pkg/proxmox/cluster_client.go b/pkg/proxmox/cluster_client.goindex 41fc84a664..c8915e33af 100644--- a/pkg/proxmox/cluster_client.go+++ b/pkg/proxmox/cluster_client.go@@ -515,6 +515,16 @@ func (cc *ClusterClient) executeWithFailover(ctx context.Context, fn func(*Clienreturn err}+ if isNotImplementedError(errStr) {+ // Endpoint not implemented on this node/version; bubble up without marking it unhealthy+ log.Debug().+ Str("cluster", cc.name).+ Str("endpoint", clientEndpoint).+ Err(err).+ Msg("Endpoint not implemented, not marking cluster node unhealthy")+ return err+ }+if isRateLimited, statusCode := isTransientRateLimitError(err); isRateLimited {backoff := calculateRateLimitBackoff(i)cc.applyRateLimitCooldown(clientEndpoint, backoff)@@ -628,6 +638,25 @@ func extractStatusCode(errStr string) int {return code}+func isNotImplementedError(errStr string) bool {+ lower := strings.ToLower(errStr)+ if !strings.Contains(lower, "not implemented") {+ return false+ }++ // Common formatting: "status 501", "error 501", "api error 501"+ if strings.Contains(lower, " 501") || strings.Contains(lower, "status 501") || strings.Contains(lower, "error 501") {+ return true+ }++ // Fallback to explicit HTTP status detection+ if extractStatusCode(errStr) == 501 {+ return true+ }++ return false+}+// GetHealthStatus returns the health status of all nodesfunc (cc *ClusterClient) GetHealthStatus() map[string]bool {cc.mu.RLock()