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

[DNM] Improve rgw management #21692

Closed
wants to merge 2 commits into from
Closed

Conversation

votdev
Copy link
Member

@votdev votdev commented Apr 27, 2018

Requires PR #21351.

  • Return always a HTTP 500 status code in case of an error
  • Add meaningful error message to be displayed in the UI

Signed-off-by: Volker Theile vtheile@suse.com

Signed-off-by: Volker Theile <vtheile@suse.com>
- Return always a HTTP 500 status code in case of an error
- Add meaningful error message to be displayed in the UI

Signed-off-by: Volker Theile <vtheile@suse.com>
@votdev
Copy link
Member Author

votdev commented Apr 27, 2018

Closed because PR #21351 must address review comments, so this improvement can be included, too.

@votdev votdev closed this Apr 27, 2018
try:
rgw_client = RgwClient.instance(uid)
return rgw_client.create_bucket(bucket)
except Exception as e: # pylint: disable=broad-except
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The problem here, and also in the RgwProxy controller, is that you are catching ALL errors, and you are skipping our current exception handler that prints the stack trace in the log file.

Can you be a bit more precise/specific on the kind of exceptions you want to catch here.

@votdev votdev deleted the improve_rgw_management branch May 2, 2018 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants