]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Fix DVR log strings in agent
authorSwaminathan Vasudevan <swaminathan.vasudevan@hp.com>
Wed, 26 Aug 2015 18:39:24 +0000 (11:39 -0700)
committerSwaminathan Vasudevan <swaminathan.vasudevan@hp.com>
Thu, 27 Aug 2015 16:26:42 +0000 (09:26 -0700)
This patch fixes a couple of DVR log strings that
was not reporting the right information.

Change-Id: Ic6919d00214a001ecdaa709c4e0f01a84adab2c7

neutron/agent/l3/dvr_local_router.py
neutron/agent/l3/dvr_router_base.py

index 6e5b37028309b3b63c33ab08f1fed00a990c2b98..e0a1059aef77082e7496eaea353660aeb11f5c9e 100644 (file)
@@ -265,7 +265,8 @@ class DvrLocalRouter(dvr_router_base.DvrRouterBase):
             if is_add:
                 exc = _LE('DVR: error adding redirection logic')
             else:
-                exc = _LE('DVR: removed snat failed')
+                exc = _LE('DVR: snat remove failed to clear the rule '
+                          'and device')
             LOG.exception(exc)
 
     def _snat_redirect_add(self, gateway, sn_port, sn_int):
index 0c872c4c3457515305684c8c048659515f1e2845..c8381aefc63f4640da951f88770ddefb5ff512fb 100644 (file)
@@ -39,4 +39,8 @@ class DvrRouterBase(router.RouterInfo):
         if match_port:
             return match_port[0]
         else:
-            LOG.error(_LE('DVR: no map match_port found!'))
+            LOG.error(_LE('DVR: SNAT port not found in the list '
+                          '%(snat_list)s for the given router '
+                          ' internal port %(int_p)s'), {
+                              'snat_list': snat_ports,
+                              'int_p': int_port})