Merge "ovn: Override clean_hash_ring for sync util"

This commit is contained in:
Zuul 2020-05-22 11:41:01 +00:00 committed by Gerrit Code Review
commit 7b7ced04bb

View File

@ -55,6 +55,14 @@ class OVNMechanismDriver(mech_driver.OVNMechanismDriver):
def ovn_client(self):
return self._ovn_client
def _clean_hash_ring(self):
"""Don't clean the hash ring.
If this method was not overriden, cleanup would be performed when
calling the db sync and running neutron server would lose all the nodes
from the ring.
"""
# Since we are not using the ovn mechanism driver while syncing,
# we override the post and pre commit methods so that original ones are
# not called.