Skip to main content
Question

Unable to validate the profile on OCI


I am getting error while i am creating a location profile for storage on oracle cloud, please suggest what should i look for ? 

6 comments

jaiganeshjk
Forum|alt.badge.img+2
  • Experienced User
  • 274 comments
  • December 30, 2024

Thank you for creating this topic.

Would you be able to add more details to the topic ?

What kind of storage are you using ? What’s the error message that you are seeing while creating the profile in the UI ?


  • Author
  • Not a newbie anymore
  • 2 comments
  • December 30, 2024

I am creating location profile for  s3 compatible storage using UI on kasten and my object storage is on oracle. 

 

Error: failed to get the bucket.

 


jaiganeshjk
Forum|alt.badge.img+2
  • Experienced User
  • 274 comments
  • December 30, 2024

Thank you for the details. 

If the object storage in Oracle is compatible with S3 APIs, then it should work without much problems. 

The region should be correctly used usually and if the region is not available, please try with `us-east-1`.

 

We don’t test compatibility with Oracle S3 with our releases. Regardless, it should work if it is S3 API compatible. 


jaiganeshjk
Forum|alt.badge.img+2
  • Experienced User
  • 274 comments
  • December 30, 2024

For more details on the error message, Please look at the logs from dashboardbff-svc pod and the controllermanager-svc pod. You would be able to see the details of the endpoints used to access the bucket. 

You can mimic the behaviour with the minio client (mc) with the same details and see if it works. 

 


  • Author
  • Not a newbie anymore
  • 2 comments
  • December 30, 2024

While inspecting oci dashboardbff-svc pod , i got these logs can you see

 

_"File":"kasten.io/k10/rest/srv/dashboardbffserver/kio_profile_handler.go","Function":"kasten.io/k10/rest/srv/dashboardbffserver.(*profileHandler).addProfile","Line":75,"RequestID":"90b97b82-c68e-11ef-95b5-9a049f45f332","cluster_name":"378c21a5-d545-4939-b9e4-7d7bb3a6232d","error":{"message":"Failed to create profile","function":"kasten.io/k10/kio/bff.CreateProfileCR","linenumber":40,"file":"kasten.io/k10/kio/bff/profiles.go:40","fields":[{"name":"namespace","value":"kasten-io"},{"name":"name","value":"kasten-test-profile"}],"cause":{"message":"{\"message\":\"Location profile validation failed\",\"function\":\"kasten.io/k10/kio/configcontroller/profile.validateProfile\",\"linenumber\":49,\"file\":\"kasten.io/k10/kio/configcontroller/profile/profile_validation.go:49\",\"cause\":{\"message\":\"Could not find profile bucket\",\"function\":\"kasten.io/k10/kio/configcontroller/profile/internal/locationprofile.getReducedError\",\"linenumber\":166,\"file\":\"kasten.io/k10/kio/configcontroller/profile/internal/locationprofile/object_store_validation.go:166\",\"fields\":[{\"name\":\"bucket\",\"value\":\"oci-abc-object-storage\"}],\"cause\":{\"message\":\"failed to get bucket oci-abc-object-storage: GetBucketLocation: RequestError: send request failed\\ncaused by: Get \\\"https://namespace/oci-abc-object-storage?location=\\\": dial tcp: lookup namespace on 10.96.5.5:53: no such host\"}}}","function":"kasten.io/k10/kio/api/profiles/clients.Create","linenumber":238,"file":"kasten.io/k10/kio/api/profiles/clients/client.go:238"}},"hostname":"dashboardbff-svc-79cb7f9564-8cdx4","level":"error","msg":"Could not add profile","time":"2024-12-30T09:15:10.309Z","version":"7.5.1"}
{"File":"kasten.io/k10/rest/srv/dashboardbffserver/kio_frontend_log_handler.go","Function":"kasten.io/k10/rest/srv/dashboardbffserver.(*frontendLogHandler).log","Line":30,"cluster_name":"378c21a5-d545-4939-b9e4-7d7bb3a6232d","data":["{\"message\":\"Failed to create profile\",\"function\":\"kasten.io/k10/kio/bff.CreateProfileCR\",\"linenumber\":40,\"file\":\"kasten.io/k10/kio/bff/profiles.go:40\",\"fields\":[{\"name\":\"namespace\",\"value\":\"kasten-io\"},{\"name\":\"name\",\"value\":\"kasten-test-profile\"}],\"cause\":{\"message\":\"{\\\"message\\\":\\\"Location profile validation failed\\\",\\\"function\\\":\\\"kasten.io/k10/kio/configcontroller/profile.validateProfile\\\",\\\"linenumber\\\":49,\\\"file\\\":\\\"kasten.io/k10/kio/configcontroller/profile/profile_validation.go:49\\\",\\\"cause\\\":{\\\"message\\\":\\\"Could not find profile bucket\\\",\\\"function\\\":\\\"kasten.io/k10/kio/configcontroller/profile/internal/locationprofile.getReducedError\\\",\\\"linenumber\\\":166,\\\"file\\\":\\\"kasten.io/k10/kio/configcontroller/profile/internal/locationprofile/object_store_validation.go:166\\\",\\\"fields\\\":[{\\\"name\\\":\\\"bucket\\\",\\\"value\\\":\\\"oci-abc-object-storage\\\"}],\\\"cause\\\":{\\\"message\\\":\\\"failed to get bucket oci-abc-object-storage: GetBucketLocation: RequestError: send request failed\\\\ncaused by: Get \\\\\\\"https://namespace/oci-abc-object-storage?location=\\\\\\\": dial tcp: lookup namespace on 10.96.5.5:53: no such host\\\"}}}\",\"function\":\"kasten.io/k10/kio/api/profiles/clients.Create\",\"linenumber\":238,\"file\":\"kasten.io/k10/kio/api/profiles/clients/client.go:238\"}}"],"hostname":"dashboardbff-svc-79cb7f9564-8cdx4","level":"info","msg":"Validation failed for new profile. Showing validation flash msg.","origin":"frontend","sessionId":"f896ecaf-f8fa-41ec-a4af-357ae8093d88","time":"2024-12-30T09:15:10.328Z","version":"7.5.1"}
{"File":"kasten.io/k10/kio/bff/profiles.go","Function":"kasten.io/k10/kio/bff.CreateCredentialAndProfileCR","Line":328,"RequestID":"a7d054b6-c68e-11ef-95b5-9a049f45f332","cluster_name":"378c21a5-d545-4939-b9e4-7d7bb3a6232d","error":{"message":"Failed to create profile","function":"kasten.io/k10/kio/bff.CreateProfileCR","linenumber":40,"file":"kasten.io/k10/kio/bff/profiles.go:40","fields":[{"name":"namespace","value":"kasten-io"},{"name":"name","value":"kasten-test-profile"}],"cause":{"message":"{\"message\":\"Location profile validation failed\",\"function\":\"kasten.io/k10/kio/configcontroller/profile.validateProfile\",\"linenumber\":49,\"file\":\"kasten.io/k10/kio/configcontroller/profile/profile_validation.go:49\",\"cause\":{\"message\":\"Could not find profile bucket\",\"function\":\"kasten.io/k10/kio/configcontroller/profile/internal/locationprofile.getReducedError\",\"linenumber\":166,\"file\":\"kasten.io/k10/kio/configcontroller/profile/internal/locationprofile/object_store_validation.go:166\",\"fields\":[{\"name\":\"bucket\",\"value\":\"oci-abc-object-storage\"}],\"cause\":{\"message\":\"failed to get bucket oci-abc-object-storage: not found\"}}}","function":"kasten.io/k10/kio/api/profiles/clients.Create","linenumber":238,"file":"kasten.io/k10/kio/api/profiles/clients/client.go:238"}},"hostname":"dashboardbff-svc-79cb7f9564-8cdx4","level":"error","msg":"Failed to create profile. Deleting secret, if created.","time":"2024-12-30T09:15:47.618Z","version":"7.5.1"}
{"File":"kasten.io/k10/rest/srv/dashboardbffserver/kio_profile_handler.go","Function":"kasten.io/k10/rest/srv/dashboardbffserver.(*profileHandler).addProfile","Line":75,"RequestID":"a7d054b6-c68e-11ef-95b5-9a049f45f332","cluster_name":"378c21a5-d545-4939-b9e4-7d7bb3a6232d","error":{"message":"Failed to create profile","function":"kasten.io/k10/kio/bff.CreateProfileCR","linenumber":40,"file":"kasten.io/k10/kio/bff/profiles.go:40","fields":[{"name":"namespace","value":"kasten-io"},{"name":"name","value":"kasten-test-profile"}],"cause":{"message":"{\"message\":\"Location profile validation failed\",\"function\":\"kasten.io/k10/kio/configcontroller/profile.validateProfile\",\"linenumber\":49,\"file\":\"kasten.io/k10/kio/configcontroller/profile/profile_validation.go:49\",\"cause\":{\"message\":\"Could not find profile bucket\",\"function\":\"kasten.io/k10/kio/configcontroller/profile/internal/locationprofile.getReducedError\",\"linenumber\":166,\"file\":\"kasten.io/k10/kio/configcontroller/profile/internal/locationprofile/object_store_validation.go:166\",\"fields\":[{\"name\":\"bucket\",\"value\":\"oci-abc-object-storage\"}],\"cause\":{\"message\":\"failed to get bucket oci-abc-object-storage: not found\"}}}","function":"kasten.io/k10/kio/api/profiles/clients.Create","linenumber":238,"file":"kasten.io/k10/kio/api/profiles/clients/client.go:238"}},"hostname":"dashboardbff-svc-79cb7f9564-8cdx4","level":"error","msg":"Could not add profile","time":"2024-12-30T09:15:47.627Z","version":"7.5.1"}
{"File":"kasten.io/k10/rest/srv/dashboardbffserver/kio_frontend_log_handler.go","Function":"kasten.io/k10/rest/srv/dashboardbffserver.(*frontendLogHandler).log","Line":30,"cluster_name":"378c21a5-d545-4939-b9e4-7d7bb3a6232d","data":["{\"message\":\"Failed to create profile\",\"function\":\"kasten.io/k10/kio/bff.CreateProfileCR\",\"linenumber\":40,\"file\":\"kasten.io/k10/kio/bff/profiles.go:40\",\"fields\":[{\"name\":\"namespace\",\"value\":\"kasten-io\"},{\"name\":\"name\",\"value\":\"kasten-test-profile\"}],\"cause\":{\"message\":\"{\\\"message\\\":\\\"Location profile validation failed\\\",\\\"function\\\":\\\"kasten.io/k10/kio/configcontroller/profile.validateProfile\\\",\\\"linenumber\\\":49,\\\"file\\\":\\\"kasten.io/k10/kio/configcontroller/profile/profile_validation.go:49\\\",\\\"cause\\\":{\\\"message\\\":\\\"Could not find profile bucket\\\",\\\"function\\\":\\\"kasten.io/k10/kio/configcontroller/profile/internal/locationprofile.getReducedError\\\",\\\"linenumber\\\":166,\\\"file\\\":\\\"kasten.io/k10/kio/configcontroller/profile/internal/locationprofile/object_store_validation.go:166\\\",\\\"fields\\\":[{\\\"name\\\":\\\"bucket\\\",\\\"value\\\":\\\"oci-abc-object-storage\\\"}],\\\"cause\\\":{\\\"message\\\":\\\"failed to get bucket oci-abc-object-storage: not found\\\"}}}\",\"function\":\"kasten.io/k10/kio/api/profiles/clients.Create\",\"linenumber\":238,\"file\":\"kasten.io/k10/kio/api/profiles/clients/client.go:238\"}}"],"hostname":"dashboardbff-svc-79cb7f9564-8cdx4","level":"info","msg":"Validation failed for new profile. Showing validation flash msg.","origin":"frontend","sessionId":"f896ecaf-f8fa-41ec-a4af-357ae8093d88","time":"2024-12-30T09:15:47.642Z","version":"7.5.1"}


AndrePulia
Forum|alt.badge.img+6
  • Veeam Legend, Veeam Vanguard
  • 333 comments
  • December 30, 2024
malyusufi wrote:

I am getting error while i am creating a location profile for storage on oracle cloud, please suggest what should i look for ? 

Do you have any other location profile using other cloud?


Comment