Merge "Don't check if any bridges were recrected when OVS was restarted" into stable/rocky
This commit is contained in:
commit
94fa5f9197
|
@ -2297,6 +2297,7 @@ class OVSNeutronAgent(l2population_rpc.L2populationRpcCallBackTunnelMixin,
|
||||||
LOG.info("Agent rpc_loop - iteration:%d started",
|
LOG.info("Agent rpc_loop - iteration:%d started",
|
||||||
self.iter_num)
|
self.iter_num)
|
||||||
ovs_status = self.check_ovs_status()
|
ovs_status = self.check_ovs_status()
|
||||||
|
bridges_recreated = False
|
||||||
if ovs_status == constants.OVS_RESTARTED:
|
if ovs_status == constants.OVS_RESTARTED:
|
||||||
self._handle_ovs_restart(polling_manager)
|
self._handle_ovs_restart(polling_manager)
|
||||||
tunnel_sync = self.enable_tunneling or tunnel_sync
|
tunnel_sync = self.enable_tunneling or tunnel_sync
|
||||||
|
@ -2307,6 +2308,7 @@ class OVSNeutronAgent(l2population_rpc.L2populationRpcCallBackTunnelMixin,
|
||||||
port_stats = self.get_port_stats({}, {})
|
port_stats = self.get_port_stats({}, {})
|
||||||
self.loop_count_and_wait(start, port_stats)
|
self.loop_count_and_wait(start, port_stats)
|
||||||
continue
|
continue
|
||||||
|
else:
|
||||||
# Check if any physical bridge wasn't recreated recently
|
# Check if any physical bridge wasn't recreated recently
|
||||||
if bridges_monitor:
|
if bridges_monitor:
|
||||||
added_bridges = (
|
added_bridges = (
|
||||||
|
@ -2315,7 +2317,8 @@ class OVSNeutronAgent(l2population_rpc.L2populationRpcCallBackTunnelMixin,
|
||||||
added_bridges)
|
added_bridges)
|
||||||
if bridges_recreated:
|
if bridges_recreated:
|
||||||
# In case when any bridge was "re-created", we need to
|
# In case when any bridge was "re-created", we need to
|
||||||
# ensure that there is no any stale flows in bridges left
|
# ensure that there is no any stale flows in bridges
|
||||||
|
# left
|
||||||
need_clean_stale_flow = True
|
need_clean_stale_flow = True
|
||||||
sync |= bridges_recreated
|
sync |= bridges_recreated
|
||||||
# Notify the plugin of tunnel IP
|
# Notify the plugin of tunnel IP
|
||||||
|
|
Loading…
Reference in New Issue