From 41e92316c550a94271afcf38f58f606d418e9993 Mon Sep 17 00:00:00 2001 From: Aaron Rosen Date: Tue, 14 Jan 2014 13:03:32 -0800 Subject: [PATCH] NVP: Add LOG.exception to see why router was not created Add missing LOG.exception so that it exposes what error occurred. Change-Id: I9194795678a6be59eb1d2555dfa99ca7a035c418 Closes-bug: #1269152 --- neutron/plugins/nicira/NeutronPlugin.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/neutron/plugins/nicira/NeutronPlugin.py b/neutron/plugins/nicira/NeutronPlugin.py index a44b73d8d..cd459d289 100644 --- a/neutron/plugins/nicira/NeutronPlugin.py +++ b/neutron/plugins/nicira/NeutronPlugin.py @@ -1393,8 +1393,9 @@ class NvpPluginV2(addr_pair_db.AllowedAddressPairsMixin, LOG.exception(msg) raise q_exc.BadRequest(resource='router', msg=msg) except NvpApiClient.NvpApiException: - raise nvp_exc.NvpPluginException( - err_msg=_("Unable to create logical router on NVP Platform")) + err_msg = _("Unable to create logical router on NVP Platform") + LOG.exception(err_msg) + raise nvp_exc.NvpPluginException(err_msg=err_msg) # Create the port here - and update it later if we have gw_info try: -- 2.45.2