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 losing track of backups #7268
Comments
Since the scenario wasn't very logical to me, I experimented a little more and the problem just happens after some time from the backup - no actual action needed:
Edit: What I'm seeing in the velero logs just before this happens is:
|
After enabling debug logs, it appears that:
The backups are actually there in S3, uploded quite successfully. Debug log:
|
The backup sync controller deletes the backups. The backup sync controller is defaulted to run per minute. |
Hello, @blackpiglet thanks for the suggestion alas - that's not it. There's only one Velero pod present.
I wonder, are the connection parameters/coordinates exactly the same for backup upload and backup sync? |
Phew! I think I found where the problem came from - it was the I worked on my config following https://github.com/vmware-tanzu/helm-charts/blob/main/charts/velero/values.yaml and it didn't say what this parameter means. Since it worked well for uploads, I assumed it's safe to leave it at the default. After stumbling across https://velero.io/docs/main/contributions/minio/#set-up-server however, I've noticed the example does set this value to I'd like to suggest 2 things:
|
Which version of the velero-plugin-for-aws you are using? I found a MinIO issue reporting that AWS SDK version 2 cannot work well with MinIO to list objects. |
I used 1.8.0 initially and tried 1.8.2 afterwards. |
I will update the document to give more information about the setting. But I don't think we can make the behavior of data upload and download aligned for this setting. We can resolve this in two ways.
|
That makes sense; if there's no logic in the AWS plugin to handle the different path styles (it's all in the SDK) then indeed, not much can be done about it other than good documentation. Thank you! |
Document PR is created: |
Interesting, I have a similar issue using the velero plugin for AWS. I've tried with both version 1.8.0 and 1.8.2. The backup CRD indeed does not exist, however the backup is available in the S3 bucket. Edit: |
Yeah, there was a similar issue related to ArgoCD too. |
The related PR is merged. Close the issue. |
Fantastic, many thanks - the docs are now explaining this very well. |
name: Bug report
about: Velero losing track of backups
What steps did you take and what happened:
I installed Velero on a Kubernetes (K3s to be specific) cluster using the latest Helm chart
It's been installed to a non-default namespace
sm-opensource
. Backups are being made to an S3 bucket (on MinIO to be specific).After performing a couple of Velero / kubectl operations, Velero seems to be losing track of existing backups. I've encountered that in several scenarios (e.g. a combination of backup success + backup failure usually triggers that too, if not always).
One of the scenarios which seem to trigger the issue:
velero backup logs foo1 --insecure-skip-tls-verify
https://gist.github.com/weakcamel/bc75ac6d2de9ec0525e79294ed222a82
What did you expect to happen:
I would've expected a list of backups I can work with.
The following information will help us better understand what's going on:
Output from
kubectl logs deployments/sm-opensource-velero -n sm-opensource
https://gist.github.com/weakcamel/ab0756cf00e68b576543fb3280862b16
Anything else you would like to add:
Environment:
velero version
):v1.12.2 -velero client config get features
):kubectl version
):vSphere VMs
/etc/os-release
):Ubuntu 22.04 for the server (K3s deployment), MacOS 13 for Velero client
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: