Merge "Refactor the usage of save_and_reraise_exception"

This commit is contained in:
Jenkins 2017-04-17 09:11:56 +00:00 committed by Gerrit Code Review
commit 84af5de22b
1 changed files with 13 additions and 17 deletions

View File

@ -209,8 +209,6 @@ class L3NATAgent(ha.AgentMixin,
self.neutron_service_plugins = (
self.plugin_rpc.get_service_plugin_list(self.context))
except oslo_messaging.RemoteError as e:
with excutils.save_and_reraise_exception() as ctx:
ctx.reraise = False
LOG.warning(_LW('l3-agent cannot check service plugins '
'enabled at the neutron server when '
'startup due to RPC error. It happens '
@ -220,8 +218,6 @@ class L3NATAgent(ha.AgentMixin,
'warning. Detail message: %s'), e)
self.neutron_service_plugins = None
except oslo_messaging.MessagingTimeout as e:
with excutils.save_and_reraise_exception() as ctx:
ctx.reraise = False
LOG.warning(_LW('l3-agent cannot contact neutron server '
'to retrieve service plugins enabled. '
'Check connectivity to neutron server. '