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

Added CSI Example to Docs #554

Merged
merged 5 commits into from
Feb 3, 2022
Merged

Conversation

eemcmullan
Copy link
Contributor

No description provided.

@codecov-commenter
Copy link

Codecov Report

Merging #554 (bcbf689) into master (a101e9a) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #554   +/-   ##
=======================================
  Coverage   38.01%   38.01%           
=======================================
  Files          13       13           
  Lines        2825     2825           
=======================================
  Hits         1074     1074           
  Misses       1671     1671           
  Partials       80       80           

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 a101e9a...bcbf689. Read the comment docs.

@kaovilai
Copy link
Member

/retest

Copy link
Member

@shubham-pampattiwar shubham-pampattiwar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the CSI example @eemcmullan
+1 on the steps and ymls, added a nit/question, rest looks good to me.


`oc create secret generic cloud-credentials --namespace openshift-adp --from-file cloud=<CREDENTIALS_FILE_PATH>`

* Make sure your DataProtectionApplication (DPA) CR is similar to below. Note

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIT: Just add save this config as config/samples/oadp_v1alpha1_dpa.yaml as you are directly asking the user to create DPA isntance using this file OR just mention that create DPA instance using the above config in Install Velero step.

provisioner: ebs.csi.aws.com
parameters:
type: gp2
reclaimPolicy: Delete

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't the reclaimPolicy be set to Retain ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shubham-pampattiwar actually Retain is only required on the VolumeSnapshotClass for snapshots to be retained. We wouldn't want to Retain on StorageClass
https://github.com/vmware-tanzu/velero/blob/main/site/content/docs/main/csi.md#implementation-choices
A new pvc is created and pointed to retained VolumeSnapshot
https://github.com/vmware-tanzu/velero-plugin-for-csi/blob/64cbe394b7bc0bea1a8e88d31452e841e1c673b2/internal/restore/pvc_action.go#L73

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If StorageClass is set to Retain I believe upon restore you would end up with two PVs, the original retained one, and a newly restored one with content from snapshot.
The original PV would be dangling and not connected to anything.. either that or new pv would fail to create due to some kind of conflict which I think velero would be ok with and "skip, already exists"

Copy link
Contributor Author

@eemcmullan eemcmullan Jan 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes what @kaovilai mentioned was my understanding as well. I can verify though.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"skip, already exists" when restoring PV is undesired because the data could've diverged from initial snapshot and we wanted stuff from snapshot in the PV.

@kaovilai
Copy link
Member

/retest

1 similar comment
@eemcmullan
Copy link
Contributor Author

/retest

@openshift-ci openshift-ci bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 30, 2022
@openshift-ci openshift-ci bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 31, 2022
@openshift-ci
Copy link

openshift-ci bot commented Jan 31, 2022

@eemcmullan: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@dymurray dymurray merged commit 40715b3 into openshift:master Feb 3, 2022
@eemcmullan eemcmullan deleted the csi-example branch August 30, 2022 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants