Skip to content
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

Failed to upload snapshot to durable object storage XMinioInvalidObjectName: Object name contains unsupported characters #549

Open
yafithl opened this issue Aug 16, 2023 · 7 comments
Assignees

Comments

@yafithl
Copy link

yafithl commented Aug 16, 2023

Snapshot is created but it is not uploaded to Minio:
Failed to upload snapshot, ivd:32fd3abb-f051-4051-bfcc-fa7d06615593:5e9f42a2-c69b-41b2-a51d-89a42336515e,
to durable object storage. XMinioInvalidObjectName: Object name contains unsupported
characters

Velero Plugin for vSphere Version: 1.4.0
vSphere Version: 7.0.2
Kubernetes Version: 1.23
vSphere CSI Driver Version: 2.6.1
velero: 1.8.1

Steps to Reproduce:
1.velero install --provider aws --bucket dev --secret-file ./minio.credentials --backup-location-config region=minio,s3ForcePathStyle="true",s3Url=http://x.x.x.x:9000/ --plugins velero/velero-plugin-for-aws:v1.4.1 --image velero/velero:v1.8.1 --use-volume-snapshots=true --snapshot-location-config region=”default”

2.Later, I installed the Vsphere plugin following the instruction below:
https://github.com/vmware-tanzu/velero-plugin-for-vsphere/blob/main/docs/vanilla.md

  1. velero backup create mongo6 --include-namespaces internal

Results
user@stg9-master0:~$ kubectl -n internal get snapshot
NAME AGE
snap-4f0e0edc-1c74-49de-9a57-a612b1d53cbd 2d3h
snap-6702081b-f95b-4a73-a684-eb4a71d4001b 2d5h
snap-6a311ed1-1f29-4f06-b75a-d043b55db9d2 21m

kubectl -n velero get uploads -o yaml

message: "Failed to upload snapshot, ivd:32fd3abb-f051-4051-bfcc-fa7d06615593:5e9f42a2-c69b-41b2-a51d-89a42336515e,
  to durable object storage. XMinioInvalidObjectName: Object name contains unsupported
  characters.\n\tstatus code: 400, request id: 177BDFA167ED3FAC, host id: dd9025bab4ad464b049177c95eb6ebf374d3b3fd1af9251148b658df7ac2e3e8"

kubectl describe -n internal snapshot
Phase: UploadFailed

@yafithl
Copy link
Author

yafithl commented Aug 20, 2023

?

@deepakkinni
Copy link
Collaborator

Please upload the relevant logs.

@yafithl
Copy link
Author

yafithl commented Aug 30, 2023

Which logs do you need? Velero logs doesn't show an error. The error I have seen was in "kubectl -n velero get uploads -o yaml" (as I attached)

@deepakkinni
Copy link
Collaborator

@yafithl
Copy link
Author

yafithl commented Sep 11, 2023

I used https://github.com/vmware-tanzu/velero-plugin-for-vsphere/blob/main/docs/vanilla.md instruction.
It is just a wrong link that I have attached.

According to ticket #546, I changed to the configuration:

You need "--snapshot-location-config". You don't need "--use-volume-snapshots=true".

velero install --provider aws --bucket dev --secret-file ./minio.credentials --backup-location-config region=minio,s3ForcePathStyle="true",s3Url=http://x.x.x.x:9000 --plugins velero/velero-plugin-for-aws:v1.4.1 --image velero/velero:v1.8.1 --snapshot-location-config region=”default”

->->

Same error still occurs. upload fails (Object name contains unsupported characters)

Which extra logs do you need in order to investigate it?

Thanks for your assistance (:

Yafit

@yafithl
Copy link
Author

yafithl commented Sep 19, 2023

?

@BarelElbaz
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants