You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: The current failover logic skips failover when the HTTP health check fails but the pod is still marked Ready (IsPodReady == true). #10430
The failover decision logic does not incorporate Kubernetes readiness signals (IsPodReady) and instead relies solely on HTTP-based health checks, which can produce false negatives during transient node-level disruptions.
The operator’s failover logic currently relies on its internal HTTP health check (/pg/status) to determine instance availability. When this HTTP check fails, the instance is considered unreachable, regardless of the Kubernetes pod readiness state.
Although the operator already collects the pod readiness status (IsPodReady) from the kubelet, this information is not used in the failover decision path.
This can lead to premature and incorrect failovers in environments where pods may become temporarily unresponsive without actually failing.
A common scenario occurs during infrastructure events such as virtual machine live migrations (e.g., in managed Kubernetes environments like AKS), where:
The node hosting the pod is temporarily paused for several seconds
The operator’s HTTP request times out during this pause
The kubelet, also paused, continues to report the pod as Ready
The operator interprets this as a failure and triggers a failover
Once the node resumes, the original primary instance may still be running as primary, leading to:
Potential split-brain conditions
Inconsistent cluster state
Unnecessary failover operations
This is a duplicate of #10423[1], which was filed by a maintainer on April 8 and describes the same gap: the operator initiates failover based solely on its HTTP health check timeout without verifying that the kubelet has also marked the pod as NotReady.
PR #10428 is currently open to address this. The proposed fix checks IsPodReady in the failover initiation path — if the operator's HTTP check fails but the kubelet still considers the pod Ready, the operator waits rather than immediately triggering failover. This naturally provides ~30s of protection (readiness probe period=10s × failure threshold=3), which covers most VM live migration windows [1].
Activity
dosubot commentedon Apr 11, 2026
Hi @bramhanandlingala! I'm Dosu and I’m helping the cloudnative-pg team.
This is a duplicate of #10423 [1], which was filed by a maintainer on April 8 and describes the same gap: the operator initiates failover based solely on its HTTP health check timeout without verifying that the kubelet has also marked the pod as NotReady.
PR #10428 is currently open to address this. The proposed fix checks
IsPodReadyin the failover initiation path — if the operator's HTTP check fails but the kubelet still considers the pod Ready, the operator waits rather than immediately triggering failover. This naturally provides ~30s of protection (readiness probe period=10s × failure threshold=3), which covers most VM live migration windows [1].To reply, just mention @dosu.
Docs are dead. Just use Dosu.
github-actions commentedon Sep 27, 2026
This issue is stale because it has been open for 60 days with no activity.
github-actions commentedon Oct 20, 2026
This issue was closed because it has been inactive for 14 days since being marked as stale.
freshen(postgres-operator-cloudnative-pg-migration): two HA bugs stal…