Skip to content

fix(k8s): delete ended pods before the old claim in volume move - #7468

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

dan-petty merged 3 commits into
mainfrom
fix/7465-volume-move-delete-ended-pods

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Right before the delete of the old claim, devops k8s volume move deletes the pods that name the claim and have ended. The plan leaves such pods out (#7431), but the claim protection still counts them as users, so the delete of the claim, the point of no return, waited until its timeout and left the move stranded. The pods hold no data, so the run adds no undo for them; the step text and the dry run name the delete.

Closes #7465

Change: openspec/changes/archive/2026-11-27-7465-volume-move-delete-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 checks on the homelab, 2026-11-27.

Check Result
main: move of gitea/gitea-shared-storage (dan-petty/homelab#472) stopped at step 9: kubectl delete pvc gitea-shared-storage timed out; kubectl describe pvc named the ended pod gitea-6887856b4c-6sn4d (phase Succeeded) under "Used By"
main: delete of devops/renovate-cache waited for three ended Renovate pods; it ended when they were deleted
This branch: a test claim with a running Deployment and a bare pod in phase Succeeded that names the claim, moved to longhorn Step 9/13: Save claim ..., delete the pods of the claim that have ended, and delete the claim.; the move ended in 56 s; the claim is longhorn, Bound; the ended pod is gone

The test namespace and its volumes are deleted.

@dan-petty
dan-petty marked this pull request as ready for review November 27, 2026 20:07
@dan-petty
dan-petty merged commit 36c627c into main Nov 27, 2026
27 checks passed
@dan-petty
dan-petty deleted the fix/7465-volume-move-delete-ended-pods branch November 27, 2026 20:10
dan-petty-release Bot added a commit that referenced this pull request Nov 27, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.229.2](v0.229.1...v0.229.2)
(2026-11-27)


### Bug Fixes

* **k8s:** delete ended pods before the old claim in volume move
([#7468](#7468))
([36c627c](36c627c))

---
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): delete ended pods before the old claim in volume move

1 participant