Repository navigation
Description
Problem
devops k8s volume move NAMESPACE/CLAIM --to-node NODE moves a local-path claim to another node. It keeps the class of the old claim: _move_claim_manifest and the rebound claim take plan.storage_class from the old claim (src/devops_cli/k8s/volume_move.py:412, :1370). The homelab moves 16 claims from local-path to the replicated class longhorn (dan-petty/homelab#399, #390). The class of a claim is immutable, and a claim of volumeClaimTemplates must keep its name. So each of these moves needs the steps that the command already does (pause Argo CD from the top down, stop the workloads, copy with GNU tar, compare, rebind the claim name to the new volume, start, resume), with a different class.
Change
- Add
--storage-class CLASStodevops k8s volume move. The move claim and the rebound claim use CLASS. With CLASS,--to-nodeis optional: the destination pod selects a node by the class (forlonghorn, a node with the labelnode.longhorn.io/create-default-disk=true), and the plan names the node that the scheduler gave. --planand--dry-runshow the class of each claim.- The old volume keeps the reclaim policy
Retain, as now.
Existing tool considered
pv-migrate (Apache-2.0) copies data between two claims with rsync, but it does not pause Argo CD, stop the workloads or rebind the old claim name. Velero restores a namespace with a class map, but it needs an install and a backup store for each move. The command of this repository already has each step except the class.
Acceptance criteria
- A failing test first: a plan with
--storage-class longhornshows the move claim and the rebound claim with the classlonghorn. - A live move of a test claim from
local-pathtolonghornends with the claim name bound to a Longhorn volume, the data the same on both sides, and Argo CD resumed. devops cichecks pass.
Alternatives check of 2026-11-27: partly.
Tool: utkuozdemir/pv-migrate (https://github.com/utkuozdemir/pv-migrate), Apache-2.0, last activity 2026-11-26, maintained.
Reason: Searches surfaced pv-migrate and Velero; pv-migrate copies data between two claims with rsync, but neither it nor Velero adds a class option to this command, pauses Argo CD, stops workloads, compares the sides or rebinds the old claim name.
Covers:
- Copies data between two claims with rsync
- Runs migrator pods inside the cluster
- Per-claim moves driven from the CLI
Lacks:
- No storage-class option for the destination claim
- No Argo CD pause or workload stop
- No rebind of the old claim name
- No comparison of the two sides
Activity
dan-petty commentedon Nov 27, 2026
Both target the devops k8s volume move command, but 5305 fixes tolerations for cordoned nodes while the candidate adds a storage-class option.dan-petty commentedon Nov 27, 2026
Finding from the Open WebUI move (dan-petty/homelab#461, 2026-11-27), for the design of this item:
kubectl exec … tar | kubectl exec -i … tar) stopped after about 1 minute withread tcp …:6443: i/o timeout. The target got a cut archive. A copy from pod to pod inside the cluster took 7 s for 532 MiB: the source pod servedtar -con a TCP port with PerlIO::Socket::INET, and the target pod read it with bash/dev/tcp. Both tools are in the copy imagedebian:trixie-slim. Pods of one namespace can reach each other under the homelab perimeter policies.existingClaim), Argo CD must be paused before the merge. If it is not paused, the workload starts on the empty claim, and with sign-up on, the first account on an empty database becomes admin. When this command rebinds the old claim name with the new class, a merge of the class change first is safe: Argo CD cannot change the class of the live claim (the field is immutable), so the workload keeps its data until the command moves it. So the command can run after the merge, and the owner can merge at any time.ArgoCdAutoSyncDisabled(warning), and a claim kept withPrune=falsefiresArgoCdApplicationOutOfSyncafter 15 min.devops-cli-service commentedon Nov 27, 2026
The result in the alternatives block of the issue body changed. Before this check: no check. A person decides what the new result means for the item.
Searches (10)
Tools considered:
Searches run:
Sources:
devops-cli-service commentedon Nov 27, 2026
Released in v0.225.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.225.0
devops-cli-service commentedon Nov 27, 2026
Live since 2026-11-27 15:40 UTC