From 2987f94bbb33d9c154d842b84b6501d66332274e Mon Sep 17 00:00:00 2001 From: Suresh Venkata Date: Mon, 30 Oct 2017 14:23:20 -0700 Subject: [PATCH] Log api-server exception details in neutron Description: Neutron doesn't seem to return strings posted by api-server to the user. So logging the exception details in neutron logs. Previous commit was partial. Change-Id: I912acf65155259a771ef5c14535186587a959afd Closes-Bug: #1721609 --- .../plugins/opencontrail/contrail_plugin_base.py | 1 + 1 file changed, 1 insertion(+) diff --git a/neutron_plugin_contrail/plugins/opencontrail/contrail_plugin_base.py b/neutron_plugin_contrail/plugins/opencontrail/contrail_plugin_base.py index b4f2df9..2e104b6 100644 --- a/neutron_plugin_contrail/plugins/opencontrail/contrail_plugin_base.py +++ b/neutron_plugin_contrail/plugins/opencontrail/contrail_plugin_base.py @@ -84,6 +84,7 @@ def _raise_contrail_error(info, obj_name): exc_name = info.get('exception') if exc_name: + LOG.exception(str(exc_name) + str(info) + str(obj_name)) if str(exc_name) == 'OverQuota': info['exception'] = str(info['exception']) if 'msg' in info: