Exceptions that get returned via REST api should have more user friendly messages

Bug #1263204 reported by Joe Gordon
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
lizheming

Bug Description

Exceptions in nova/exception.py that get returned via REST api should have more user friendly (non-admin and non-dev) messages.

For example

 class InstanceRecreateNotSupported(Invalid):
     msg_fmt = _('Instance recreate is not implemented by this virt driver.')

Assuming that exception gets returned via the REST API, a user shouldn't have to know what a 'virt driver' is, that is a backend concept that we should be hiding.

Instead this exception should say something like 'Instance recreate is not supported'

Changed in nova:
status: New → Confirmed
lizheming (lizheming-li)
Changed in nova:
assignee: nobody → lizheming (lizheming-li)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

Changed in nova:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/67755
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=8cc59d2084a8b1129929a162b753d4ca407018e7
Submitter: Jenkins
Branch: master

commit 8cc59d2084a8b1129929a162b753d4ca407018e7
Author: lizheming <email address hidden>
Date: Mon Jan 20 11:10:37 2014 +0800

    Make exception message more friendly

    Exceptions that get returned via REST api
    should have more user friendly message,
    users shouldn't have to know backend concept.
    more detail,see bug.

    Change-Id: Idc20680e46c36fa3441838177ce61b6f5e1d2979
    Closes-Bug: #1263204

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → icehouse-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: icehouse-3 → 2014.1
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.