Repository navigation
refactor(k8s): replace the volume move copy with pv-migrate - #7518
Conversation
364bcbf to
3d0baf5
Compare
|
Live test of head
Cause of the failure, from the rsync pod log: pv-migrate runs
|
3d0baf5 to
caa153f
Compare
|
Re-test of head
Cleanup: |
devops k8s volume move copied a claim with its own copy pods, a NetworkPolicy, a Perl listener, GNU tar over bash /dev/tcp, a retry and a digest compare in bash. The copy step now runs pv-migrate (Apache-2.0) with the clusterip strategy: an sshd pod with the old claim on its node and an rsync pod with the new claim on the target node. rsync checks each file that it sends, so the compare step goes. In a namespace that enforces Pod Security restricted, the copy adds --non-root, and the plan refuses a workload with no fsGroup and a class whose volumes get no fsGroup. The plan refuses a move when pv-migrate is not on PATH. When the run stops pv-migrate, the undo runs pv-migrate cleanup first. The copy measure and the CronJob devops/volume-move go.
caa153f to
26b673c
Compare
🤖 I have created a release *beep* *boop* --- ## [0.232.3](v0.232.2...v0.232.3) (2026-11-28) ### Code Refactoring * **k8s:** replace the volume move copy with pv-migrate ([#7518](#7518)) ([2669c9e](2669c9e)) --- 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>
devops k8s volume movecopied a claim with its own copy pods, a NetworkPolicy, a Perl listener, GNU tar over bash/dev/tcp, a retry and a bash digest compare, the cause of about 5 of its 14 bugs in 30 days. The copy step now runs pv-migrate (Apache-2.0) with theclusteripstrategy: an sshd pod with the old claim on its node and an rsync pod with the new claim on the target node. rsync checks each file that it sends, so the compare goes. In a namespace that enforces Pod Securityrestricted, the copy adds--non-rootand--rsync-extra-args=--no-perms(user 10000 cannot chmod the root folder of the new volume), and the plan refuses a workload or a class with nofsGroup. The plan refuses a move whenpv-migrateis not onPATH(dan-petty/devtools#118). When the run stops pv-migrate, the undo runspv-migrate cleanupfirst. The copy measure and the CronJobdevops/volume-movego.Closes #7498
Change:
openspec/changes/archive/2026-11-28-7498-volume-move-pv-migrate/