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.1] Brakes S3 compatible external storage location - NetApp ONTAP 9 Release 9.13.1P2 #8152

Closed
leftyb opened this issue Aug 26, 2024 · 8 comments
Assignees

Comments

@leftyb
Copy link

leftyb commented Aug 26, 2024

Steps followed:
Upgrade to :
velero-plugin-for-aws:v1.9.1
Velero chart version : version: "6.7.0"
Velero version: appVersion: 1.13.2

Previous versions:
velero-plugin-for-aws:v1.8.2
Velero chart version : version: "5.2.2"
Velero version: appVersion: 1.12.3

What did you expect to happen:
Velero Backups properly stored to external S3 compatible storage location.
Before upgrade was working properly.

From velero logs:
When using checksumAlgorithm: "" Following error logs:
operation error S3: PutObject, https response error StatusCode: 501, RequestID: , HostID: , api error NotImplemented: The s3 command you requested is not implemented."

When NOT setting checksumAlgorithm so by default Velero BackupStorageLocation setting to CRC32
Getting following errors from velero logs (tested all available algorithms and got same error) :
operation error S3: PutObject, https response error StatusCode: 400, RequestID: , HostID: , api error InvalidArgument: x-amz-content-sha256 must be UNSIGNED-PAYLOAD, STREAMING-AWS4-HMAC-SHA256-PAYLOAD or a valid sha256 value."

S3 Provider:
ONTAP 9
According to the ONTAP engineers AWS SDK V2 is supported

https://docs.netapp.com/us-en/ontap/s3-config/ontap-s3-supported-actions-reference.html#bucket-operations

similar to
#7543
#7828

@leftyb leftyb changed the title [velero-plugin-for-aws:v1.9.1] Brakes S3 compatible external storage location - netapp ONTAP 9 [velero-plugin-for-aws:v1.9.1] Brakes S3 compatible external storage location - NetApp ONTAP 9 Release 9.13.1P2 Aug 26, 2024
@kaovilai
Copy link
Member

So we need a way to set the signer to be unsigned.. and other values from https://github.com/aws/aws-sdk-go-v2/blob/84ca95e16adf482b8a80069d5ffa85814c7f61a2/aws/signer/internal/v4/const.go#L12

@kaovilai
Copy link
Member

Can assign me and I'll double check where if any it can be set and publish some docs.

@kaovilai
Copy link
Member

AWS SDK V2 is supported

If it is completely supported, all algorithms will be supported, including x-amz-content-sha256 which error mentions isn't supported here by ONTAP.

We will make best effort to allow configuration that will be compatible with others however.

@reasonerjt reasonerjt self-assigned this Sep 2, 2024
@leftyb
Copy link
Author

leftyb commented Sep 8, 2024

Hi,

Is there any update on the issue facing with velero-plugin-for-aws > v1.9.1. On pushing backups at ONTAP 9, which is S3 compatible?

Thank you.

@kaovilai
Copy link
Member

kaovilai commented Sep 8, 2024

This isn't currently on my short list of priorities so if you need something in less than 3 months I'd suggest trying prior to v1.9.1 AWS plugin

@leftyb
Copy link
Author

leftyb commented Sep 17, 2024

Hi @kaovilai,
Thank you for the contact. I would like to ask, what is that you consider is the problem so that ONTAP 9 is not "allowing" Velero AWS plugin to connect and push backups? It seems that ONTAP 9 is supporting AWS SDK V2?
Thank you .

@kaovilai
Copy link
Member

kaovilai commented Sep 18, 2024

@leftyb ONTAP 9 is missing S3 compatible (at least not documented) Checking object integrity
checksum algorithms support.

As you discovered, velero with sdkv2 bump in plugin v1.9.1 uses CRC32 by default per aws documentation.

This is not available or documented at all in ONTAP docs.

So ONTAP 9 do not make available all s3 APIs. Velero with the SDKv2 will need to make accomodations to limit usage of features ONTAP 9 has not implemented.

It would help in the meantime for you to open a support case with ONTAP to get these implemented.

@leftyb
Copy link
Author

leftyb commented Nov 8, 2024

Hi all,

I would like to update that issue is fixed using latest version NetApp Release 9.15.1P2.
We tested it and we can properly create backups and recover.
Issue can be considered as solved and can be closed.

Thanks for the support.

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

6 participants
@reasonerjt @leftyb @ywk253100 @kaovilai and others