nova/nova/api
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
..
ec2 delete more i18n log markers 2017-03-21 07:37:21 -04:00
metadata Merge "conf: Remove 'vendordata_driver' opt" 2018-01-19 11:41:15 +00:00
openstack placement: Fix HTTP error generation 2018-05-16 10:45:16 +02:00
validation Enable reset keypair while rebuilding instance 2017-11-13 10:49:02 +08:00
__init__.py Remove unused copyright from nova.api.__init__ 2014-01-10 16:24:50 +08:00
auth.py delete more i18n log markers 2017-03-21 07:37:21 -04:00
compute_req_id.py Migrate to oslo request_id middleware - mv 2.46 2017-05-27 10:11:44 +00:00
manager.py Only setup iptables for metadata if using nova-net 2017-07-20 00:00:22 +00:00