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
fix(k8s): skip ended pods in the volume move plan #7431
devops k8s volume move finds the pods of a claim from the volumes of every pod in the namespace (_claim_pods, src/devops_cli/k8s/volume_move.py). It takes a pod that has ended (phase Succeeded or Failed) too. Such a pod does not hold the volume, and a scale of its Deployment to zero does not delete it, because it belongs to an old ReplicaSet with 0 replicas. The step "Scale ... to 0, and wait until these pods are gone" then waits for that pod until its timeout, and the move undoes its steps.
Evidence of 2026-11-27 on the homelab: namespace llm holds valkey-66c88d77b6-gkhz6 (phase Succeeded, node <control-plane>) next to the Running pod of Deployment valkey, and the same for valkey-devops. The node shutdown of a reboot ends pods in this way, and the pod garbage collection keeps them up to its threshold. The claim llm/valkey-data is one of the claims that dan-petty/homelab#469 moves to longhorn.
Change
_claim_pods leaves out a pod whose phase is Succeeded or Failed. The plan, the stop step and the check after the start then see only the pods that can hold the volume.
Acceptance criteria
A failing test first: a pod of the claim with phase Succeeded is not in the plan, and the stop step does not wait for it.
Activity
dan-petty commentedon Nov 27, 2026
Both fix devops k8s volume move failure paths, but 7416 deletes the new volume on undo while the candidate skips ended pods in the plan.devops-cli-service commentedon Nov 27, 2026
Released in v0.228.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.228.0
devops-cli-service commentedon Nov 27, 2026
Live since 2026-11-27 18:39 UTC
fix(k8s): delete ended pods before the old claim in volume move (#7468)