]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
NVP: Add LOG.exception to see why router was not created
authorAaron Rosen <aaronorosen@gmail.com>
Tue, 14 Jan 2014 21:03:32 +0000 (13:03 -0800)
committerAaron Rosen <aaronorosen@gmail.com>
Tue, 14 Jan 2014 21:04:54 +0000 (13:04 -0800)
Add missing LOG.exception so that it exposes what error occurred.

Change-Id: I9194795678a6be59eb1d2555dfa99ca7a035c418
Closes-bug: #1269152

neutron/plugins/nicira/NeutronPlugin.py

index a44b73d8df25c032b90d4db6b22fc91ce3ec6ba5..cd459d289049736efaf34b36cba8f605bf077d46 100644 (file)
@@ -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: