Repository navigation
fix(pnfs): recreate an MDS pod that stays unready after it has served - #910
Closed
boddumanohar wants to merge 1 commit into
Closed
boddumanohar wants to merge 1 commit into
boddumanohar wants to merge 1 commit into
Conversation
An MDS that lost its storage paths stayed unready for 19 h 39 m. The runner now restarts its container (#909), but on cluster 111 the restarted container crash-looped on a missing /dev/mds-state: the host had removed the state volume's device, and only a new pod stages the volume again. Deleting the pod by hand recovered the MDS in 22 s. MDSReadinessWatchdog marks an MDS pod once it has been ready, and deletes a marked pod that has been unready for 3 minutes, preconditioned on its UID, with an MDSPodStuck event. The StatefulSet creates the replacement. A pod that never turned ready is left to the runner's boot deadline. Regression: 2026-11-12-pnfs-mds-stays-dead-after-state-disk-journal-abort
Member
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
RCA
pnfs_mds_stays_dead_after_state_disk_journal_abort_rca_20261112: an MDS lost its storage paths and stayed0/1for 19 h 39 m. #909 makes the runner exit when a booted guest stays unhealthy, but that restarts only the container. On cluster 111 the restarted container crash-looped:The host removed the state volume's NVMe device after its 60 s loss timeout, the CSI node plugin's reconnect monitor gave up on it ("assuming it's gone"), and a container restart does not make kubelet stage the volume again. Deleting the pod by hand recovered the MDS in 22 s, and the client resumed I/O without being restarted.
Changes
internal/controllers/driver/mds_watchdog.go:MDSReadinessWatchdog, a leader-elected Runnable modeled oncontrolplane/webapiwatchdog.go. Every 30 s it lists pods carryingstorage.simplyblock.io/cluster-id.storage.simplyblock.io/mds-was-readyonce the pod has been ready.MDSPodStuckwarning event. The StatefulSet then creates a new pod.cmd/main.go: registers the watchdog.No RBAC change: the operator already has
patchanddeleteon pods.This recovers MDS pods running images without #909 as well, since it only reads the pod's Ready condition.
Unit tests
TestAnMDSPodUnreadyPastTheThresholdIsRecreated(O-53) failed against a stub before the fix:the MDS pod stayed after four minutes unready: nothing recovers the pNFS data path.go test -race ./internal/controllers/driver/,make -C operator lint, and the house-style gate pass.make manifests generateandmake helm-syncproduce no diff.Follow-ups
ctrl_loss_tmo=-1for the MDS state volume, would let a container restart recover without a new pod.Cluster test
Pending: the port-4426 fault on 111, with this operator and #909's MDS image.
Related: #909.