-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(local-snapshot-restore, velero) : support to restore local snaps…
…hot to different namespace using velero (#1575) Changes: - Added support to restore local snapshot to different namespace using velero-plugin. Restored PV (and cstorVolume) will have `cstor-clone-` prefix. Sample output: ``` kubectl get pv NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGE cstor-clone-37458540-3bc4-42ae-b0ba-57ba116bb72f 5G RWO Delete Bound ns2/demo-cstor-vol-claim-1 openebs-cstor-sparse 5m55s cstor-clone-7db69671-1243-4d96-99f7-7041ad9f3c2b 5G RWO Delete Bound ns1/demo-cstor-vol-claim-1 openebs-cstor-sparse 10s pvc-109d7f73-699c-11ea-9326-42010a9a0064 5G RWO Delete Bound test/demo-cstor-vol-claim-1 openebs-cstor-sparse 3h52m ``` In above output, first two PVs are created from `pvc-109d7f73-699c-11ea-9326-42010a9a0064` PV. PVC output: ``` kubectl get pvc -A NAMESPACE NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE ns1 demo-cstor-vol-claim-1 Bound cstor-clone-7db69671-1243-4d96-99f7-7041ad9f3c2b 5G RWO openebs-cstor-sparse 18s ns2 demo-cstor-vol-claim-1 Bound cstor-clone-37458540-3bc4-42ae-b0ba-57ba116bb72f 5G RWO openebs-cstor-sparse 6m3s test demo-cstor-vol-claim-1 Bound pvc-109d7f73-699c-11ea-9326-42010a9a0064 5G RWO openebs-cstor-sparse 3h52m ``` CStorVolume output: ``` kubectl get cstorvolume -n openebs NAME STATUS AGE CAPACITY cstor-clone-37458540-3bc4-42ae-b0ba-57ba116bb72f Healthy 13m 5G cstor-clone-7db69671-1243-4d96-99f7-7041ad9f3c2b Healthy 8m13s 5G pvc-109d7f73-699c-11ea-9326-42010a9a0064 Healthy 4h 5G ``` _For documentation:_ - _For local snapshot(or remote backup) CV, related to PV, must be in healthy state._ - _If local snapshot( or remote backup) failed then check the backup logs for the error:_ _`error taking snapshot of volume: rpc error: code = Unknown desc = Failed to send backup request: Error calling REST api: Status error{Bad Request}`_ Signed-off-by: mayank <[email protected]>
- Loading branch information
Showing
6 changed files
with
84 additions
and
13 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.