-
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
problem on backup cluster scoped resource and namespaced resource together #5119
Comments
I think there are 2 aspects for this problem:
|
@reasonerjt Being mounted by pods isn't the issue. It's only with Restic backups that the PVC/PV must be mounted to a pod for backup/restore to work. For snapshots/CSI, no pods are necessary. The issue above isn't a missing Pod for a PVC+PV but that there's a PV backed up without the corresponding PVC. |
@half-life666
I believe this would be fixed after the proposal in #5333 is implemented, right? In this case, by adding |
@reasonerjt |
@reasonerjt Hmm. So there's one thing that's still not covered by that proposal. Whether we're talking about the new design in #5333 or the current design, with cluster-scoped resources, we can either include all resources of the types specified setting |
As we discussed earlier, with |
@half-life666 |
Fixed by #5838 |
What steps did you take and what happened:
persistentvolumes
inincludedResources
below is an example yaml:
This setup can backup the pvc/pv from the specified namespace, however, it will introduces a few issues:
Because velero believes the PV will be "dynamic provisioned" by later PVC creation, so it will accumulate the "itemsRestored" count and log "Restored x items out of an estimated total of y"
What did you expect to happen:
Under this setup the backup and restore will cause confusion to user, because the backup details includes every PV from the cluster, but at restore, the PVs has no PVC will not be restored, and the "itemsRestored" is wrong. I think it would be more clearer if:
This will not cause the restore issues mentioned above.
The following information will help us better understand what's going on:
If you are using velero v1.7.0+:
Please use
velero debug --backup <backupname> --restore <restorename>
to generate the support bundle, and attach to this issue, more options please refer tovelero debug --help
If you are using earlier versions:
Please provide the output of the following commands (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:
[Miscellaneous information that will assist in solving the issue.]
Environment:
velero version
): v1.7.0velero client config get features
):kubectl version
):/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: