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

Dashboard gives a generic error message when duplicate bucket is created in multi-cloud #573

Open
asifdxtreme opened this issue Apr 2, 2021 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@asifdxtreme
Copy link
Member

Issue/Feature Description:
Dashboard gives a generic error message while creating bucket with the exisiting bucket name.

Why this issue to fixed / feature is needed(give scenarios or use cases):
Error seems to be generic and confuses the user to believe something is wrong with the configuration.

How to reproduce, in case of a bug:
Create a mult-cloud bucket with the same name which exisit already in cloud.

@asifdxtreme
Copy link
Member Author

A follow up PR can be raised in multi-cloud if it need changes in the backend

@asifdxtreme asifdxtreme changed the title Dashboard gives a generic error message when duplicate bucket is created in mult-cloud Dashboard gives a generic error message when duplicate bucket is created in multi-cloud Apr 2, 2021
@anvithks anvithks added the enhancement New feature or request label Apr 2, 2021
@anvithks anvithks added this to the Iter1_J milestone Apr 6, 2021
@anvithks
Copy link
Member

anvithks commented Apr 9, 2021

@asifdxtreme I checked this and see that the dashboard receives a generic error from the API, which is shown to the user.

image
image

The logs from the S3 container show that the cloud returns an error 409 as the bucket name was already present on the cloud.

[2021-04-09T08:55:10+05:30] [ERROR] [/root/gopath/src/github.com/sodafoundation/multi-cloud/s3/pkg/datastore/aws/aws.go] [aws.(*AwsAdapter).BucketCreate():77] [PID:8] the create bucket failed in aws-s3 service with err:%sBucketAlreadyOwnedByYou: Your previous request to create the named bucket succeeded and you already own it.
	status code: 409, request id: 56R6N8R9QXAJB7SJ, host id: gmN8PFktES89VnRnM2jnFSw0DuSvP5yDtY2CbjZUN6Qd6HF2yL+wL0rQLhwrDZBvF/6dWAluA4Q=

image

If this error can be send through in the API response then we can display the same.

@anvithks anvithks modified the milestones: Iter1_Jerba, Iter2_K Jul 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants