feat(linstor): add linstor-csi patches for clone/snapshot relocation by kvaps · Pull Request #2133 · cozystack/cozystack
kvaps
mentioned this pull request
kvaps
marked this pull request as ready for review
Remove merged RWX validation patch and add new patch that includes: - Randomized node selection for snapshot restore - Relocate replicas to optimal nodes after clone and snapshot restore Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
Move snapshot restore relocation parameter from StorageClass to VolumeSnapshotClass to avoid unwanted relocation during Velero data mover backup. Change relocateAfterClone default to false. Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
Use CSI clone instead of host-assisted copy for CDI DataVolume cloning. This leverages LINSTOR's native rd-clone mechanism which is significantly faster than pod-based data copying, and works together with the new relocateAfterClone parameter. Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
Enable relocate-after-restore on the default linstor-snapshots class so that PVCs restored from snapshots get replicas relocated to optimal nodes. Add a separate linstor-snapshots-velero class with the Velero annotation and without relocation, so Velero's temporary data mover PVCs are not relocated unnecessarily. Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
Hardcode relocateAfterClone=true and relocateAfterRestore=false as defaults in the CSI driver patch instead of exposing them via StorageClass/VolumeSnapshotClass parameters. Remove the extra linstor-snapshots-ephemeral VolumeSnapshotClass (Velero) and the relocateAfterRestore parameter from the default VolumeSnapshotClass. This is a temporary measure while upstream linstor-server is deciding on the interface for the rebalance feature (see LINBIT/linstor-server#487). Once upstream provides native rebalance support, these hardcoded defaults will be replaced by the proper upstream mechanism. Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
kvaps
deleted the
feat/linstor-csi-relocate-after-clone-restore
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters