Skip to content

fix(k8s): skip ended pods in the volume move plan - #7433

Merged
dan-petty merged 3 commits into
mainfrom
fix/7431-volume-move-skip-ended-pods
Nov 27, 2026
Merged

dan-petty merged 3 commits into
mainfrom
fix/7431-volume-move-skip-ended-pods

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The plan of devops k8s volume move leaves out a pod that names the claim and has ended (phase Succeeded or Failed). A node shutdown ends pods in this way, and the pod garbage collection keeps them. Such a pod of an old ReplicaSet holds no volume, and a scale of the Deployment to zero does not delete it, so the stop step waited for it until its timeout, and the check after the start left the move stranded.

Closes #7431

Change: openspec/changes/archive/2026-11-27-7431-volume-move-skip-ended-pods/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/k8s Kubernetes commands, Helm charts, pods, services, and policies labels Nov 27, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Live check on the homelab, 2026-11-27 (read only): the plan of llm/valkey-runs-data with --storage-class longhorn --plan.

Build Workloads that mount the claim line
main (0.226.0) deployment/valkey-runs (replicas: 1). Their pods: valkey-runs-76d75fb78d-f98jd, valkey-runs-cd6c4b8c4-4z7x4.
this branch deployment/valkey-runs (replicas: 1). Their pods: valkey-runs-cd6c4b8c4-4z7x4.

valkey-runs-76d75fb78d-f98jd has the phase Succeeded (a reboot of its node ended it). The unit test shows the other half: on main, a move with such a pod ends stranded at step 12.

@devops-cli-service

Copy link
Copy Markdown
Contributor

Pull request #7433 has merge conflicts with main at commit 55cc423c66bd. GitHub cannot merge it. Rebase the branch onto the current main, resolve the conflicts and push the branch.

@dan-petty
dan-petty marked this pull request as ready for review November 27, 2026 16:43
@dan-petty
dan-petty enabled auto-merge (squash) November 27, 2026 16:59
@dan-petty
dan-petty merged commit 2a48b11 into main Nov 27, 2026
28 checks passed
@dan-petty
dan-petty deleted the fix/7431-volume-move-skip-ended-pods branch November 27, 2026 17:06
dan-petty-release Bot added a commit that referenced this pull request Nov 27, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.228.0](v0.227.0...v0.228.0)
(2026-11-27)


### Features

* **infra:** let an agent apply a no-drain restart on the control plane
([#7443](#7443))
([5e34994](5e34994))


### Bug Fixes

* **k8s:** skip ended pods in the volume move plan
([#7433](#7433))
([2a48b11](2a48b11))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/k8s Kubernetes commands, Helm charts, pods, services, and policies type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(k8s): skip ended pods in the volume move plan

1 participant