-
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
better document using spec.publicUrl
to access logs/backups from minIO
#2256
Comments
Hm this is odd. Mind dumping the actual output, it might be helpful to see. Is this an on-prem cluster you are backing up? |
Yes, this is an on-prem cluster we are backing up to. Below is the requested output...thx
./velero backup describe minio-backup --details
Name: minio-backupNamespace: veleroLabels: velero.io/storage-location=minioAnnotations: <none>
Phase: Completed
Namespaces: Included: grafana Excluded: <none>
Resources: Included: * Excluded: <none> Cluster-scoped: auto
label selector: <none>
Storage Location: minio
Snapshot PVs: auto
TTL: 720h0m0s
Hooks: <none>
Backup Format Version: 1
Started: XXXXXCompleted: XXXXX
Expiration: XXXXX
Resource List: <error getting backup resource list: request failed: garbled garbled garbled....
Persistent Volumes: <none included>
Restic Backups: Completed: grafana/grafana-56d485dbb8-8rhqf: config, ldap, storage
On Friday, February 7, 2020, 7:43:25 PM EST, Carlisia Campos <notifications@github.com> wrote:
Hm this is odd. Mind dumping the actual output, it might be helpful to see.
Is this an on-prem cluster you are backing up?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
@a4nowgh Are you using https on your Minio installation? |
Yes.
On Monday, February 10, 2020, 11:56:41 AM EST, Nolan Brubaker <notifications@github.com> wrote:
@a4nowgh Are you using https on your Minio installation?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Here's my guess - the Velero client is using your BackupStorageLocation's If my suspicion is correct, then the The reason this happens is that with AWS S3 buckets, Velero requests 1-time use signed URLs for downloads. Minio doesn't support this, so a workaround is to use the This used to be documented, but appears to have been dropped as things have moved around. I'll get a PR in for it. The closest we have right now is https://velero.io/docs/v1.2.0/contributions/minio/#work-with-ingress. |
It works OK now!
Thanks very much for your help!! Any documentation updated to reflect this would be great...
On Monday, February 10, 2020, 4:03:42 PM EST, Nolan Brubaker <notifications@github.com> wrote:
Here's my guess - the Velero client is using your BackupStorageLocation's spec.config.s3url, which is an https URL, and getting the encrypted contents. If you add an http URL to spec.config.publicUrl, the velero client should be able to download the resource list in readable format.
If my suspicion is correct, then the velero restore logs and velero backup logs commands should also return encrypted values.
The reason this happens is that with AWS S3 buckets, Velero requests 1-time use signed URLs for downloads. Minio doesn't support this, so a workaround is to use the publicURL config value.
This used to be documented, but appears to have been dropped as things have moved around. I'll get a PR in for it. The closest we have right now is https://velero.io/docs/v1.2.0/contributions/minio/#work-with-ingress.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
spec.publicUrl
to access logs/backups from minIO
@a4nowgh Did you change your Minio installation to use HTTP only, or did you add a HTTP endpoint? |
What steps did you take and what happened:
[A clear and concise description of what the bug is, and what commands you ran.)
This occurs after when using minIO storage location.
velero backup create --storage-location <minIO_storage>
velero backup describe --details
Output:
Request List: request failed: garbled special characters/encoding repeat repeat etc...
The rest of the output looks OK
NOTE: I am able to perform successful restores with this backup
What did you expect to happen:
Show Request List
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
Resource lists from backups to my other non-minIO S3-Compliant bucket display OK
Environment:
The text was updated successfully, but these errors were encountered: