neutron/neutron
Rafael Weingärtner 2f0c352973 Log exception generated in Controller.prepare_request_body
While implementing some Neutron extension, I noticed that whenever a parameter
that is expected by the API is not entered, we receive an internal error
message. However, from the user/operator/dev calling the API, it might not be
clear what the error is. Therefore, we should at least, log these validation
errors.

This patch proposes to enclose the call to Controller.prepare_request_body with
a try/except block, and then we log the exception in warning level. After
logging the exception, we raise it to allow the normal execution flow to
continue.

Change-Id: I855442ee8c0c4b4f0aff19968a5db07fca898146
2020-08-18 16:18:34 -03:00
..
agent Merge "Migrate "ethtool" to oslo.privsep" 2020-08-14 22:58:44 +00:00
api Log exception generated in Controller.prepare_request_body 2020-08-18 16:18:34 -03:00
cmd [ovn]: port forwarding -- feature support under ovn_db_sync 2020-08-12 12:06:54 -04:00
common [ovn]: port forwarding -- core changes 2020-08-11 14:54:05 -04:00
conf Allow RBAC on Neutron quotas 2020-07-31 10:46:31 -05:00
core_extensions Remove usage of six.add_metaclass 2020-05-21 14:41:18 -04:00
db Fix port can not be created with the sg of other project 2020-08-10 10:58:30 -04:00
debug Fix neutron debug probe to use integration_bridge 2020-03-31 11:17:47 +00:00
extensions Log exception generated in Controller.prepare_request_body 2020-08-18 16:18:34 -03:00
hacking Remove "six" library 2020-07-28 16:55:52 +00:00
ipam [OVN] Use new distributed device_owner for OVN distributed services 2020-07-08 13:26:35 +00:00
locale Imported Translations from Zanata 2020-05-03 07:38:11 +00:00
notifiers Add config option `http_retries` 2020-06-29 22:07:46 -04:00
objects Merge "Remove "six" library" 2020-07-30 00:35:59 +00:00
pecan_wsgi Log exception generated in Controller.prepare_request_body 2020-08-18 16:18:34 -03:00
plugins Merge "[ovn]: port forwarding -- feature support under ovn_db_sync" 2020-08-18 16:37:22 +00:00
privileged Merge "Support pyroute2 0.5.13" 2020-08-17 02:34:27 +00:00
profiling Remove "six" library 2020-07-28 16:55:52 +00:00
quota Remove "six" library 2020-07-28 16:55:52 +00:00
scheduler L3 agent scheduler should return a valid index if manual scheduling 2020-06-24 15:37:23 +00:00
server Re-use existing ProcessLauncher from wsgi in RPC workers 2020-02-07 14:51:06 +01:00
services Merge "port_forwarding: validate args before invoking db update (cont.)" 2020-08-18 00:44:26 +00:00
tests Merge "[ovn]: port forwarding -- feature support under ovn_db_sync" 2020-08-18 16:37:22 +00:00
__init__.py Remove usage of six.PY2 2020-05-22 12:59:01 -04:00
_i18n.py Make code follow log translation guideline 2017-08-14 02:01:48 +00:00
auth.py
manager.py Remove usage of six.add_metaclass 2020-05-21 14:41:18 -04:00
neutron_plugin_base_v2.py Remove usage of six.add_metaclass 2020-05-21 14:41:18 -04:00
opts.py No rpc_response_max_timeout in LB-agent 2020-06-01 15:25:20 +00:00
policy.py Remove usage of six.text_type and six.string_type 2020-05-22 14:02:55 -04:00
service.py Re-use existing ProcessLauncher from wsgi in RPC workers 2020-02-07 14:51:06 +01:00
version.py
worker.py Change process name of neutron-server to match worker role 2019-03-01 14:18:09 -05:00
wsgi.py Remove usage of six.text_type and six.string_type 2020-05-22 14:02:55 -04:00