From: Swaminathan Vasudevan Date: Wed, 26 Aug 2015 18:39:24 +0000 (-0700) Subject: Fix DVR log strings in agent X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=177f738ffe1ee6acb3ecd31f7e147d7608d2ad9e;p=openstack-build%2Fneutron-build.git Fix DVR log strings in agent This patch fixes a couple of DVR log strings that was not reporting the right information. Change-Id: Ic6919d00214a001ecdaa709c4e0f01a84adab2c7 --- diff --git a/neutron/agent/l3/dvr_local_router.py b/neutron/agent/l3/dvr_local_router.py index 6e5b37028..e0a1059ae 100644 --- a/neutron/agent/l3/dvr_local_router.py +++ b/neutron/agent/l3/dvr_local_router.py @@ -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): diff --git a/neutron/agent/l3/dvr_router_base.py b/neutron/agent/l3/dvr_router_base.py index 0c872c4c3..c8381aefc 100644 --- a/neutron/agent/l3/dvr_router_base.py +++ b/neutron/agent/l3/dvr_router_base.py @@ -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})