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

velero-plugin-for-aws v1.9 and aws-sdk-go-v2 Upload not working on OVH Object Storage, Invalid Argument #7952

Closed
genjudev opened this issue Jun 28, 2024 · 5 comments
Assignees

Comments

@genjudev
Copy link

What steps did you take and what happened:
velero update to v1.13, velero-plugin-for-aws update from v1.8 to v1.9

What did you expect to happen:
s3 upload Working

The following information will help us better understand what's going on:
velero-plugin-for-aws switched to aws-sdk-go-v2
with the aws cli v2 we had no complication

Error:
time="2024-06-28T13:56:59Z" level=error msg="Error uploading log file" backup= bucket= error="rpc error: code = Unknown desc = error putting object backups/-logs.gz: operation error S3: PutObject, https response error StatusCode: 400, RequestID: tx8097d8716a824688b5614-00667ec12b, HostID: tx8097d8716a824688b5614-00667ec12b, api error InvalidArgument: Invalid Argument." error.file="/go/src/velero-plugin-for-aws/velero-plugin-for-aws/object_store.go:280" error.function="main.(*ObjectStore).PutObject" logSource="pkg/persistence/object_store.go:256" prefix=

Anything else you would like to add:
Downgrade to v1.8 will fix the problem. Velero can be updated.

Environment:
OVH https://www.ovhcloud.com/

  • managed kubernetes service version 1.28.3-2
  • object storage s3 (swift)
Plugin Version Velero Version
v1.9.x v1.13.x
v1.8.x v1.12.x
@genjudev genjudev changed the title velero-plugin-for-aws since v1.9 and aws-sdk-go-v2 Upload not working on OVH Object Storage, Invalid Argument velero-plugin-for-aws v1.9 and aws-sdk-go-v2 Upload not working on OVH Object Storage, Invalid Argument Jun 28, 2024
@mateusoliveira43
Copy link
Contributor

There are some similar issues related by other users

velero-plugin-for-aws updated default value of checksumAlgorithm field in BackupStorageLocations (BSLs) from "" (no checksum calculation) to CRC32 algorithm (Reference https://github.com/vmware-tanzu/velero-plugin-for-aws/blob/release-1.9/backupstoragelocation.md)

Can you try using an empty string for that field to see if your problem is fixed?

@sseago
Copy link
Collaborator

sseago commented Jun 28, 2024

Note that you need 1.9.2 or later for the checksumAlgorithm param to work.

@genjudev
Copy link
Author

There are some similar issues related by other users

velero-plugin-for-aws updated default value of checksumAlgorithm field in BackupStorageLocations (BSLs) from "" (no checksum calculation) to CRC32 algorithm (Reference https://github.com/vmware-tanzu/velero-plugin-for-aws/blob/release-1.9/backupstoragelocation.md)

Can you try using an empty string for that field to see if your problem is fixed?

Because its not my personal system I have no access till monday. I will update you next week. Thanks for your help.

@sseago
Copy link
Collaborator

sseago commented Jun 28, 2024

@genjudev Also note that Velero 1.14 was just released (with v1.10 AWS plugin) -- if 1.9.2 plugin is still not working for you, it might be worth upgrading to the latest and trying there as well.

@genjudev
Copy link
Author

genjudev commented Jul 3, 2024

Hello,

There are some similar issues related by other users

velero-plugin-for-aws updated default value of checksumAlgorithm field in BackupStorageLocations (BSLs) from "" (no checksum calculation) to CRC32 algorithm (Reference https://github.com/vmware-tanzu/velero-plugin-for-aws/blob/release-1.9/backupstoragelocation.md)

Can you try using an empty string for that field to see if your problem is fixed?

Note that you need 1.9.2 or later for the checksumAlgorithm param to work.

we tried backing up with v1.9.2 and set the value of checksumAlgorithm to an emtpy string.

this works fine. Thanks!!

@genjudev Also note that Velero 1.14 was just released (with v1.10 AWS plugin) -- if 1.9.2 plugin is still not working for you, it might be worth upgrading to the latest and trying there as well.

Thanks for the information.

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

No branches or pull requests

4 participants