Ceph is healthy. Every placement group is active+clean. And yet the next node drain hangs, because a few PodDisruptionBudgets still say that no OSD may be touched. Nothing crash-loops and no alert fires, so the problem stays invisible until the night someone needs to patch a node.
This post describes that failure on Rook-managed Ceph, why the usual checks miss it, and a bounded, human-approved way to detect and clear it. The design is a proposal. It has not been run on a cluster, and the upstream behaviour is still being fixed.
The problem
Rook can manage PodDisruptionBudgets for Ceph OSDs. Its design notes describe a default budget that allows one OSD at a time to be unavailable, and a drain flow that changes this: when a cordoned node's OSDs go down, the operator creates blocking budgets (maxUnavailable of 0) for every other failure domain, deletes the default budget, and sets the Ceph noout flag so data is not rebalanced off OSDs that are expected back. Once the drained node's OSDs are running and all placement groups are active+clean, the operator should restore the default budget and remove the blocking ones. [1]
Two public upstream reports from October and November 2026 describe that last step not happening. They involve different Rook versions (1.19 and 1.20) and different mechanisms. In one, Ceph healed around a cordoned node and the blocking budgets stayed on the other hosts, with the operator's drain state still set a day and a half later. In the other, the OSDs came back up but the controller never ran again, so noout and the blocking budgets stayed in place. Both end the same way: later drains are refused while Ceph reports clean. Two reports are not a trend, and both come from a small slice of Rook users, but they describe the same failure class, and neither had an upstream fix merged at the time of writing.
The consequence is operational rather than dramatic. Kubernetes enforces budgets during API-initiated eviction, and an eviction that would violate a budget gets a 429 response. [2] Because kubectl drain works through that same eviction API, it cannot evict the protected pods and makes no progress. Patching and scale-downs queue up behind a state that looks fine on every dashboard.
Why existing approaches fall short
Health checks look at Ceph, and Ceph is healthy. HEALTH_OK, or a clean placement group summary, says nothing about whether Kubernetes will let you evict the next OSD. The stuck state lives in the gap between Kubernetes objects (budgets) and a Ceph flag (noout) that a controller is supposed to keep in step.
Alerting on the flag alone is noisy, because noout is legitimate during real maintenance. Alerting on budgets alone is no better, because blocking budgets are legitimate during a real drain. What identifies the broken state is the combination: blocking budgets or noout present, no node actually being drained, all OSDs up and all placement groups clean, for longer than any drain should take.
Manual cleanup works but is risky. Deleting the wrong budget during a real drain removes the protection that stops a second failure domain from losing OSDs.

A practical solution architecture
Solution label: Proposed architecture. Designed here, not executed.
- Detector. A read-only check that fires only when every condition holds: a blocking budget or the noout flag is present; no OSD-hosting node is cordoned or NotReady; all OSD pods are Ready; all placement groups are active+clean; and the condition has outlasted your maintenance timeout plus a margin.
- Action. One bounded step per attempt, least invasive first: force a reconcile of the Rook disruption controller, then, only if that fails, reset the operator's recorded drain state.
- Approval. A human approves each new action before it runs.
- Verification. The same detector runs again. The fix succeeds only if the detector is clean and the budgets are back to the default shape.
Everything stays inside the Rook namespace. No OSD is restarted, no pool is changed, and no Ceph data moves.
Where Srenix fits
Srenix is an autonomous AI SRE for Kubernetes that runs inside your cluster. No telemetry leaves your network. Srenix is in beta with Design Partners, and places are limited.
This problem is not one of the five default fixers, so it is best described as a potential autofixer for Srenix human-approved policy:
- Detection. The condition above. This design does not assume Srenix's built-in Ceph probe already sees this state; the detector is part of the policy you would define and review.
- Action and bounds. Force a reconcile first; reset the drain state only if that fails. The Rook namespace only, which you must allow explicitly.
- Rollback. Current values are saved before any change, and the policy states how to restore them.
- Approval. A new fix needs human approval first. Approval links are signed, expire and work once, and every action lands in a signed, hash-chained audit trail.
- Verification. Srenix re-runs the same detection; a persisting condition counts as a failure.
Srenix can fix a new issue behind a human approval gate, and a fix a human has approved repeatedly can be promoted to a standing fixer within the rules you set. This is a design for a policy you would approve, not a shipped fixer, and no customer is described as running it.
Srenix watches this gap from outside both APIs: a blocking budget or the noout flag with no node cordoned, every OSD pod Ready and the placement groups clean for longer than your maintenance timeout is reported, with the detection commands and the rollback values recorded before anything changes. Srenix does not delete budgets or edit Ceph flags by itself: this fix stays behind your approval.
What stays outside Srenix: the upstream Rook bug, the judgement of whether a drain is really in progress, and any change to OSD pods or Ceph data.
Implementation walkthrough
kubectl -n rook-ceph get pdb -o custom-columns=NAME:.metadata.name,MAX_UNAVAILABLE:.spec.maxUnavailable,ALLOWED:.status.disruptionsAllowed
kubectl get nodes
kubectl -n rook-ceph get pods -l app=rook-ceph-osd
kubectl -n rook-ceph exec deploy/rook-ceph-tools -- ceph health detail
kubectl -n rook-ceph exec deploy/rook-ceph-tools -- ceph pg statLook for budgets with a maximum of 0, an OSD_FLAGS warning for noout [3], no cordoned node, every OSD pod Ready, and clean placement groups. Then save state as your rollback source:
kubectl -n rook-ceph get pdb -o yaml > pdb-before.yaml
kubectl -n rook-ceph get configmap rook-ceph-pdbstatemap -o yaml > pdbstate-before.yamlThat ConfigMap and its keys come from public reports on specific Rook versions, not from the design notes [1], so confirm they exist on your version. The two actions below change production state and need approval:
- 01
Force a reconcile.
One reporter found that changing an annotation on a CephBlockPool made the controller reconcile and reset the state. Add a throwaway annotation, wait about a minute, re-run detection, then remove the annotation.
- 02
Reset the recorded drain state.
Another reporter's workaround, taken only after confirming placement groups are active+clean: run
kubectl -n rook-ceph edit configmap rook-ceph-pdbstatemapand clear the keys that record the draining failure domain and the noout setting. Treat this as pseudocode for the intent and use the key names from your backup.
Rollback: remove the annotation, or restore the saved key values. If a real drain starts during the window, stop and let Rook manage it.
Upstream, a pull request that makes the controller requeue while a failure domain drains is in review and labelled for backport to the 1.21 line only [4]. Older versions stay exposed.
Tradeoffs and failure modes
- A real drain can look like the stuck state. The detector must check for cordoned nodes and use a threshold longer than your maintenance timeout.
- Clearing state hides a bug rather than fixing it. Treat each firing as a prompt to track the upstream fix.
- The ConfigMap is operator-internal. Its keys can change between versions, so a policy that edits it needs a version check.
- A forced reconcile may not clear the condition. Verification gates success, and a failed attempt escalates to a human rather than looping.
- Blocking budgets are real protection. Removing them while another failure domain is degraded risks unavailability; the readiness conditions make the action safe.
How to validate
On a non-production Rook cluster with a host failure domain and managed budgets, cordon and reboot one host long enough for placement groups to degrade, let it return, and wait for clean. Then check that:
- the detector fires only after the threshold, not during the reboot;
- the first action either clears the state or leaves it unchanged without side effects;
- after the second action the detector is clean, the default budget is back, and a test drain of another node completes;
- restoring the saved values returns the cluster to its earlier state.
These are acceptance criteria for a test, not measured results.
Conclusion
A healthy Ceph cluster can still refuse every drain because of leftover budgets and a stale flag. The safe response is narrow: detect the exact combination, make one reversible change after approval, and verify with the same check. To see how a human-approved policy like this could run inside your own cluster, start at reliora.ai.
Sources
- 01
Rook design
Rook design: Ceph managed disruption budgets. ceph-managed-disruptionbudgets.md
- 02
Kubernetes documentation
API-initiated eviction. api-eviction
- 03
Red Hat Ceph Storage administration guide
Override Ceph behavior (noout). override-ceph-behavior
- 04
Rook pull request
osd: requeue the disruption controller while a failure domain drains. rook/rook pull request 18752



