cassandra-medusa icon indicating copy to clipboard operation
cassandra-medusa copied to clipboard

NetApp Storage Grid Query Parameter Issue

Open mikelitka opened this issue 3 years ago • 1 comments

Version: 0.11.2 Storage Provider: s3_compatible Object Storage: NetApp StorageGrid

We are trying to backup to an S3 compatible NetApp StorageGrid. This seems to fine until the tokenmap is downloaded for what I assume is a verification operation. We get a 501 back complaining about an invalid query parameter ?Version=2006-03-01.

However, in the libcloud debug logs, I don't see a request being sent with this query parameter.

Does anyone have any insights they could share here?

Please see attached log file.

libdebug.log

┆Issue is synchronized with this Jira Task by Unito ┆friendlyId: K8SSAND-1395 ┆priority: Medium

mikelitka avatar Nov 19 '21 15:11 mikelitka

I setup a man in the middle proxy to analyze this traffic. It appears that we are sending a ?Version query parameter on GET requests.

This fixes the issue:

In:

libcloud/common/aws.py

Commenting out the Version parameter logic fixes the 501 response from the NetApp StorageGrid

class AWSRequestSignerAlgorithmV4(AWSRequestSigner): def get_request_params(self, params, method='GET', path='/'): return params #if method == 'GET': # params['Version'] = self.version #return params

Not knowing this codebase well, would this be fixable using a new storage provider?

I also have a ticket open with NetApp to advise on why they don't like this behavior.

mikelitka avatar Dec 02 '21 01:12 mikelitka

We moved away from libcloud meanwhile.

rzvoncek avatar Apr 04 '24 12:04 rzvoncek