Skip to main content

I am trying to add my ONTAP S3 bucket and I am getting error  

 

I am not able to add location profile with below inputs:

Profile Name : test1
Cloud Storage Provider : S3 Compatible ONTAP S3

Endpoint : https://10.31.48.29/  (same result with the domain name)

Valid access and secret keys

Region : Not applicable

Bucket : toolpod

 

I know the bucket works because other applications are using it without any issues

profile,{\"apiVersion\":\"config.kio.kasten.io/v1alpha1\",\"kind\":\"Profile\",\"metadata\":{\"name\":\"backup2sec\",\"namespace\":\"kasten-io\"},\"spec\":{\"locationSpec\":{\"objectStore\":{\"objectStoreType\":\"S3\",\"name\":\"toolpod\",\"region\":\"\",\"endpoint\":\"https://10.31.48.29/\",\"skipSSLVerify\":true},\"type\":\"ObjectStore\"},\"type\":\"Location\"}}","origin":"frontend","sessionId":"e421dc9e-8b66-448e-885d-0e18ffd31a16","time":"20220925-14:42:22.243Z","version":"5.0.2"}

26{"File":"kasten.io/k10/kio/bff/profiles.go","Function":"kasten.io/k10/kio/bff.CreateCredentialAndProfileCR","Line":145,"cluster_name":"6af318d6-027e-4eb9-baaa-306ed88aa89e","error":{"message":"Failed to create profile","function":"kasten.io/k10/kio/bff.CreateProfileCR","linenumber":29,"file":"kasten.io/k10/kio/bff/profiles.go:29","fields":i{"name":"namespace","value":"kasten-io"},{"name":"name","value":"backup2sec"}],"cause":{"message":"{\"message\":\"Failed to validate profile location\",\"function\":\"kasten.io/k10/kio/configcontroller/profile.validateProfile\",\"linenumber\":59,\"file\":\"kasten.io/k10/kio/configcontroller/profile/profile_validation.go:59\",\"cause\":{\"message\":\"Could not get profile bucket\",\"function\":\"kasten.io/k10/kio/configcontroller/profile.checkLocationObjectStore\",\"linenumber\":340,\"file\":\"kasten.io/k10/kio/configcontroller/profile/profile_validation.go:340\",\"fields\":e{\"name\":\"bucket\",\"value\":\"toolpod\"}],\"cause\":{\"message\":\"failed to get bucket toolpod…

 

Can anyone help?

“failed to get bucket toolpod…”, can you validate that’s the name of the bucket?


Hi MicoolPaul, yes the bucket name is correct, like i said other application use it, so it is fine


There’s a checklist of things we should validate here:

  1. Your bucket is case-sensitive matching what you’ve input into Kasten
  2. This bucket is to be accessible via HTTPS and not HTTP
  3. The access key & secret have suitable API Permissions on this bucket
  4. Then I’d validate that the bucket is attached to the SVM IP you’ve specified

I’d also strongly suggest using a dedicated bucket just for Kasten, buckets have their own limits before performance is impacted etc so I’d be conscious of the impact that bucket could have to neighbouring data, plus it’s general good practice to silo backup & production data.

Best next step will be a screenshot of the config both in NetApp and Kasten so we can compare.


Hi, to answer your questions

  1. I have made sure that the bucket name is exactly the same, and it is not case sensitive
  2. It can be accessed both via HTTP and HTTPS 
  3. The access key and secret have the right permission (already work with other application)
  4. The SVM IP also is correct, with the domain name it still fail

I can use a dedicate bucket no problem, but I wanted to test this first to make sure it works before going forward. I will share the config screenshot of the bucket next.


Thanks @Efe.O, please share the config screenshots and then we can validate :)


Hi @MicoolPaul Unfortunately i am not able to send screenshoot, but here is an error message we got 

 

bucket","function":"kasten.io/k10/kio/configcontroller/profile.checkLocationObjectStore","linenumber":340,"file":"kasten.io/k10/kio/configcontroller/profile/profile_validation.go:340","fields":s{"name":"bucket","value":"toolpod"}],"cause":{"message":"failed

      to get bucket toolpod: GetBucketLocation: NotImplemented: A header you

      provided implies functionality that is not implemented.\n\tstatus code:

      501, request id: , host id: "}}}'

Is there a way to solve this, because the Storage does not have this GetBucketLocation


Just check again, please ignore… This is an issue with the version of ONTAP. thanks for your help


Comment