-
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
Restore using Restic into a deployment that been scaled down and PV/PVCs deleted hangs #1919
Comments
Perhaps due to the controller wanting to put the annotation: Before the backup, I only patch the pod to have the annotation, I scale down the deployment, but the deployment does not have annotation. Velero controller wants to patch the deployment to add the backup and restore annotation and it can't ...that's where I suspect the bug is...if this helps in the analysis. |
If it's the above case, it should be made explicit in the docs to annotate the deployment instead: https://velero.io/docs/v1.1.0/restic/ although I do see: |
As discussed in slack, To explain some of the things happening here, if the deployment is scaled to 0 and exists in the cluster, Velero won't actually try to restore that resource, as it already exists. If Velero restored the requested pods, the reconciliation loops that manage Deployments would delete the running pods because the scale is set to be 0, so Kubernetes will ensure that's the case. Until the pods are created and remain running, the current logic around restic restores won't work. This is a consequence of how we implement restic support, and I think the current best approach will be to document this behavior. |
The behavior is going to fail, but we shouldn't hang. Leaving as a bug. |
What steps did you take and what happened:
[A clear and concise description of what the bug is, and what commands you ran.)
PV restore with restic hangs
InProgress
when scaling down deployment:But works with:
What did you expect to happen:
Scaling down deployment should still result in a successful restore.
The text was updated successfully, but these errors were encountered: