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): delete the new volume when a volume move undoes #7416
When devops k8s volume move fails before the point of no return, its undo deletes the temporary claim <claim>-move. The volume of that claim stays when its class has the reclaim policy Retain. The class longhorn of the homelab has Retain, so each undone move to it (#7382) leaves a Released Longhorn volume with a partial copy. Longhorn keeps two replicas of it on the storage nodes until a person deletes it.
Evidence of 2026-11-27 on the homelab: a move of a test claim to longhorn failed at the copy (#7408), and the undo deleted the claim data-move. Its volume stayed Released, class longhorn, reclaim policy Retain, until I deleted it by hand about one hour later. A move that keeps the class local-path does not show this: that class has the reclaim policy Delete.
Change
The undo of the step that makes <claim>-move sets the reclaim policy of its volume to Delete before it deletes the claim, when the step got that volume's name. The move made that volume, and it holds no data that the old claim does not hold. Steps 7 and later keep Retain on the new volume as now.
Acceptance criteria
A failing test first: an undo after the copy deletes <claim>-move and, before that, patches its volume to Delete.
A live move to longhorn that fails before the point of no return leaves no Released volume of the move.
Activity
devops-cli-service commentedon Nov 27, 2026
Released in v0.226.1: https://github.com/dan-petty/devops-cli/releases/tag/v0.226.1
devops-cli-service commentedon Nov 27, 2026
Live since 2026-11-27 18:39 UTC