-
Notifications
You must be signed in to change notification settings - Fork 362
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
restic snapshot command try to get S3 bucket's credentials in the wrong path #477
Comments
Actually it seems that having Velero setuped in multiple namespace is not working. I think the Velero Pod can not make the difference between node agent pods of each namespace. For me, when i create a backup with Restic Volume Backup on namespace A, Velero tried to use the node-agent pods of the namespace B The solution to use is simply to merge all Velero Backups in a single namespace. The reason to use 2 namespace where that before Velero can not handle multiple |
@ZoroXV Hmm. If that's happening to you, that's a bug. Velero should be installable in multiple namespaces, and each velero instance (including node-agent pods) should ignore velero CRs in the other namespace. @reasonerjt @blackpiglet maybe it's good to test this? We may have a regression here with recent kopia/node-agent refactoring. |
@sseago |
@blackpiglet what seems expected? If velero is installed in 2 namespces, pod volume backups should work just fine in each namespace. It looks like the pod volume backup controller is grabbing PVBs in the wrong namespaces sometimes. This is a regression -- this all worked fine in Velero 1.9, but I suspect we introduced a bug in this area with the kopia refactor. I don't think this is a helm chart issue but a controller issue. I'll create a velero issue referencing this. |
By "test this" I meant "lets make sure that kopia/restic backup/restore still works fine in both velero installs if velero is installed in multiple namespaces." |
@sseago
@Lyndon-Li |
@sseago @blackpiglet Anyway, I will fix the problem by adding the namespace parameter. |
What steps did you take and what happened:
I have a on-premise kubernetes cluster and we used to have a velero running daily backup on it
We have installed velero using the Helm chart and we used to run under v3.1.4 of it
Recently i found out that the backups where partially failed so i first upgrade the chart to the version 4.1.3
Unfortunatelly this does not solve the issue
To explain more our setup, we want to store backups in two S3 buckets, one in our office in a Minio Server and the other one in OVH.
For that we have velero installed in two namespace in the cluster "velero-syno" and "velero-ovh"
And i don't know why but backups on "velero-syno",
restic
try to find credentials of bucket in the wrong pathHere is the error log in a backup in namespace "velero-syno"
And the error is identical on velero-ovh namespace except restic try to find credentials in
velero-syno
Otherwise, Velero access normally to my S3 buckets for backuping Kubernetes Object.
Only Pod Volume are not backuped
What did you expect to happen:
Restic using the correct path to retrieve credentials for S3 buckets
Environment:
helm version
): v3.2.4helm list -n <YOUR NAMESPACE>
): v4.1.3kubectl version
): v1.24.13/etc/os-release
): Ubuntu 20.04The text was updated successfully, but these errors were encountered: