OSAPI poor error handling on server resize down

Bug #817771 reported by Brian Waldon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Unassigned

Bug Description

In OSAPI v1.0, an attempt to resize down returns the following error entity. It should probably be a 400:

{"cloudServersFault": {"message": "Invalid flavor: cannot downsizeinstances", "code": 500}}

In OSAPI v1.1, a different error entity is returned. It's status code is correct, but it needs to explain to the user what went wrong (like "cannot downsize instances" in v1.0):

{"badRequest": {"message": "The server could not comply with the request since it is either malformed or otherwise incorrect.", "code": 400}}

Revision history for this message
Brian Waldon (bcwaldon) wrote :

This was fixed recently by Brian Lamar.

Changed in nova:
status: New → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → diablo-4
Thierry Carrez (ttx)
Changed in nova:
milestone: diablo-4 → 2011.3
status: Fix Committed → Fix Released
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.