Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(restore): adding support to restore in an encrypted pool #292

Merged
merged 2 commits into from Mar 1, 2021

Conversation

pawanpraka1
Copy link
Contributor

@pawanpraka1 pawanpraka1 commented Feb 16, 2021

fixes: #286

Signed-off-by: Pawan pawan@mayadata.io

Why is this PR required? What issue does it fix?:

Encrypted pool does not allow the volume to be pre created for the
restore purpose.

What this PR does?:

Here changing the design to do the restore first and then create the ZFSVolume object which will bind the volume already created while doing restore.

Since, the volume gets created while doing the restore, so we need to pass the volume spec and use zfs properties while firing the restore command. Earlier volume was getting created before hand with all the properties so we don't need to pass that while doing the restore.

Does this PR require any upgrade changes?:

PR handles backward compatibility.

@pawanpraka1 pawanpraka1 added the pr/hold-review hold the review. label Feb 16, 2021
@pawanpraka1 pawanpraka1 added this to the v1.5.0 milestone Feb 16, 2021
@pawanpraka1 pawanpraka1 added this to In progress in ZFS Local PV Feb 16, 2021
@pawanpraka1 pawanpraka1 added this to Pre-commits and Designs - Due: Jan 31 2020 in 2.7 Release Tracker - Due Mar 15th. Feb 16, 2021
@codecov-io
Copy link

codecov-io commented Feb 16, 2021

Codecov Report

Merging #292 (9310c31) into master (36e0f69) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master    #292   +/-   ##
======================================
  Coverage    1.08%   1.08%           
======================================
  Files          11      11           
  Lines         918     918           
======================================
  Hits           10      10           
  Misses        908     908           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 36e0f69...48638af. Read the comment docs.

Encrypted pool does not allow the volume to be pre created for the
restore purpose. Here changing the design to do the restore first
and then create the ZFSVolume object which will bind the volume
already created while doing restore.

Signed-off-by: Pawan <pawan@mayadata.io>
Signed-off-by: Pawan <pawan@mayadata.io>
@kmova kmova merged commit 6ec49df into openebs:master Mar 1, 2021
ZFS Local PV automation moved this from In progress to Done Mar 1, 2021
2.7 Release Tracker - Due Mar 15th. automation moved this from Pre-commits and Designs - Due: Feb 28 2021 to Done Mar 1, 2021
@pawanpraka1 pawanpraka1 deleted the encr branch April 3, 2021 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
ZFS Local PV
  
Done
Development

Successfully merging this pull request may close these issues.

Cannot restore backups to encrypted pools
4 participants