[openstack-dev] [Nova]Response code with cinder api down

saki.iwata sakiwa.1109 at gmail.com
Fri May 2 08:34:52 UTC 2014


Dear all

Hi my name is Saki Iwata

I'm working on this bug fix.
https://bugs.launchpad.net/nova/+bug/1239952
https://review.openstack.org/#/c/86213/

This patch change response code from 400 to 503.

This patch got many reviewed but we can't make a decision.
To put it simply, which code (500 or 503) should it return?
Which is better do you think?
I would like to hear your opinion.


opinion of reviewer
- recommend return 500
-- GlanceConnectionFailed is returning a generic 500
-- 503 would be appropriate if Nova was unavailable but
   Cinder being unavailable would be a 500 from a Nova point of view.

- recommend return 503
-- This exceptions is handled in the FaultWrapper middleware


- my opinion
-- I think should return 503.
   500 should be used when  a cause is not known.
   In this patch, cinder down cause of the exception.

Sincerely, Saki Iwata
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140502/bc4782aa/attachment.html>


More information about the OpenStack-dev mailing list