Error message is obscured when creating an initial admin user with a reserved name

Bug #1706995 reported by Thomas Hartland
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Fix Committed
Low
Unassigned

Bug Description

The exception raised when an initial admin user is created with a reserved name is a ValueError with the relevant information.

At trove/instance/service.py:291 the ValueError is caught and a BadRequest exception is raised, but the message from the ValueError is not properly passed to the BadRequest. The final error message seen by the user is the default message for BadRequest "The server could not comply with the request since it is either malformed or otherwise incorrect."

Changed in trove:
assignee: nobody → Thomas Hartland (h4rtland)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to trove (master)

Fix proposed to branch: master
Review: https://review.openstack.org/489125

Changed in trove:
status: New → In Progress
Changed in trove:
importance: Undecided → Low
Changed in trove:
assignee: Thomas Hartland (h4rtland) → Mateusz Kowalski (makowals)
Changed in trove:
assignee: Mateusz Kowalski (makowals) → nobody
Revision history for this message
Sam Morrison (sorrison) wrote :
Changed in trove:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.