bad error message on trove database initialisation failure

Bug #1308313 reported by Tom Fifield
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
New
Undecided
Andrew Bramley
OpenStack Dashboard (Horizon)
New
Undecided
Andrew Bramley

Bug Description

When there is a

DatastoreDefaultDatastoreNotFound

or

DatastoreDefaultVersionNotFound

exception raised on trove database creation attempt through horizon, only this is shown to the user:

"""
 Error: There was an error submitting the form. Please try again.
"""

This is not useful in terms of fixing the problem, and should provide more information.

Example debug log:
  File "/opt/stack/trove/trove/common/wsgi.py", line 251, in execute_action
    **action_args)
  File "/opt/stack/trove/trove/openstack/common/wsgi.py", line 395, in execute_action
    return self.dispatch(self.controller, action, request, **action_args)
  File "/opt/stack/trove/trove/openstack/common/wsgi.py", line 404, in dispatch
    return method(*args, **kwargs)
  File "/opt/stack/trove/trove/instance/service.py", line 186, in create
    datastore_models.get_datastore_version(**datastore_args))
  File "/opt/stack/trove/trove/datastore/models.py", line 179, in get_datastore_version
    datastore.name)
DatastoreDefaultVersionNotFound: Default version for datastore 'Legacy MySQL' not found.

Steps to reproduce.

1. Install devstack with all services enabled, using milestone-proposed branch
2. try to create a new database through horizon

Andrew Bramley (andrlw)
Changed in trove:
assignee: nobody → Andrew Bramley (andrlw)
Changed in horizon:
assignee: nobody → Andrew Bramley (andrlw)
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.