Merge "Refactor the usage of save_and_reraise_exception"
This commit is contained in:
commit
84af5de22b
|
@ -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. '
|
||||
|
|
Loading…
Reference in New Issue