nova/nova/api/openstack
Balazs Gibizer dddee4189c placement: Fix HTTP error generation
The traits and the inventories wsgi handler inserted the detailed error
message to the webob.exc.HTTPXXX exceptions via the 'explanation' kwarg.
This caused that the generated error messages does not contain the generic
explanation of the HTTP error code just the passed in explanation text.
The rest of the placement API uses first positional arg of the exception
classes to pass in the extra details. Having this inconsistency makes
really hard to print proper error messages from the osc-placement
plugin.

This patch removes the incosistency by changing the code to use the
positional arg.

The change does not affect nova.scheduler.client.report._RE_INV_IN_USE
regex usage as that regex applied via re.search() and this change only
adds a new sentece to the message.

Change-Id: I196c2e3dabcbf0564c1ca0bd4870dc2df3efc836
Close-Bug: #1771325
(cherry picked from commit 90d2dbedef)
2018-05-16 10:45:16 +02:00
..
compute List instances performace optimization 2018-04-16 20:54:34 +00:00
placement placement: Fix HTTP error generation 2018-05-16 10:45:16 +02:00
__init__.py Remove dead code of api.fault notification sending 2017-10-09 17:29:40 +02:00
api_version_request.py [api] Allow multi-attach in compute api 2018-01-22 10:45:13 -05:00
auth.py conf: Move api options to a group 2016-11-25 16:32:31 -06:00
common.py [api] Allow multi-attach in compute api 2018-01-22 10:45:13 -05:00
identity.py Use ksa adapter for keystone conf & requests 2017-11-30 22:33:01 +00:00
requestlog.py request_log addition for running under uwsgi 2017-07-24 14:23:38 -04:00
urlmap.py Use of six.PY3 should be forward compatible 2016-01-17 03:32:34 +00:00
versioned_method.py Implement microversion support on api methods 2014-12-05 09:54:41 +08:00
wsgi.py Remove the inherits parameter for the Resource object 2017-12-21 19:33:35 +08:00
wsgi_app.py Log options at debug when starting API services under wsgi 2018-01-31 15:45:27 +00:00