-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Velero cannot backup one StorageClass with plugins and another StorageClass with restic #2999
Comments
I'm double checking if restic is supposed to work when CSI is enabled. |
Not right now, no. There's not a way to allow Velero to use restic for one storage class (TopolVM in your case) and a plugin for another. We have had similar requests, and this is likely a feature we need to look into, as mixed environments seem to becoming more prevalent. I'm going to update the issue title to reflect that this would be a feature request, and I can't find a pre-existing issue. |
@betta1 I think you were requesting this too at one point, if I'm not mistaken. |
@sagor999 It looks to me like you wanted to use restic to backup volumes that were backed by a CSI provider using the Please update your |
The reported issue is fixed in the I think the "Enhancement/User" label was added for
So preserving that label. |
@ashish-amarnath I just tried to use this again. For some reason, now it doesn't use restic at all.
I looked at storage, and couldn't find actual restic data in there. I also tried adding annotation: |
@sagor999 Can you please share a sample workload that you are trying to backup and restore? |
@ashish-amarnath Sure, here it is:
And PVC that is referenced is backed by TopolVM (https://github.com/topolvm/topolvm). Velero itself is installed via helm chart, using two plugins: Thank you! |
@ashish-amarnath I found the cause I think. in helm chart I had this set: |
Closing because it seems to be resolved from a Velero point of view. Looks like the current issue is with the Helm chart. If so, please open an issue against the Helm chart. |
What steps did you take and what happened:
Upgraded to velero 1.5.1 to take advantage of
--default-volumes-to-restic
and not having to annotate every single volume.Unfortunately it doesn't work. Fails with
PartiallyFailed
.Here is the command that I run:
velero backup create lvm-test6 --default-volumes-to-restic --include-namespaces default --selector app=lvm-test
Here is log:
Velero is installed using helm:
We have two storage providers in our on-prem cluster: CephCSI, and TopolVM.
CephCSI supports snapshotting and works fine.
TopolVM volumes do not support snapshotting and should be using restic.
Annotating volume for opt-in works fine though:
Is there a way to make it so that velero automatically backs up volumes that support snapshotting via snapshot feature, and for the rest to default to restic?
What did you expect to happen:
Expected it to work.
The output of the following commands will help us better understand what's going on:
(Pasting long output into a GitHub gist or other pastebin is fine.)
kubectl logs deployment/velero -n velero
velero backup describe <backupname>
orkubectl get backup/<backupname> -n velero -o yaml
velero backup logs <backupname>
velero restore describe <restorename>
orkubectl get restore/<restorename> -n velero -o yaml
velero restore logs <restorename>
Anything else you would like to add:
Environment:
velero version
):velero client config get features
):kubectl version
):on prem cluster.
/etc/os-release
):Vote on this issue!
This is an invitation to the Velero community to vote on issues, you can see the project's top voted issues listed here.
Use the "reaction smiley face" up to the right of this comment to vote.
The text was updated successfully, but these errors were encountered: