-
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
Got backup PartiallyFailed result when backing up PVCs which are not used by any pod #7233
Comments
I agree we should do better in this scenario. First, the potential errors should be converted to warnings. |
hi team, thanks for creating this backup/restore tooling. Unfortunately, we encountered this issue when our serverless applications relied on an RWX mode PVC. We choose to do a backup at midnight, where the traffic is low and it also keeps the running pod minimized to zero. But, the backup didn't cover our PVCs for serverless :( |
@hsinhoyeh |
Hi @blackpiglet we use file system for backup. the PVC is supposed to be mounted by multiple pods (with mode: RWM). having say that, our multiple pods are mostly read from the PVC (during backup), not writing it. |
@hsinhoyeh |
If there is no pod mounting the PVC when a backup is ongoing, the file-system backup cannot cover the PVC, because the file-system uploader needs to read the PVC's volume data by the mounting directory for the pod on the k8s node. For your scenario, if the PVC's volume supports the snapshot function, then we can use snapshot to back up the data. |
This is working as expected I don't think we wanna change the error into a warning, which will be a breakchange. |
Is there any way to exclude PVCs with unbound PVs? As long as this is not the case I would see this as as a Warning and not as Error. |
Yes, even though this issue is closed, I think it should be re-opened. Is there no possibility to add a pre-backup hook or add a |
Can you clarify what is needed here? |
@stp-bsh That could be a separate new issue if you want to open. Unbound =/= not used by any pod (ie. this issue.) |
Describe the problem/challenge you have
Backup namespace contains PVCs which not in used by any pod, then got PartiallyFailed result.
Describe the solution you'd like
Warning should be enough to let user notice this workload might have issue or not.
Anything else you would like to add:
Environment:
velero version
):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: