Merge "[OVN][FT] Mech driver stop accessing DB at exit" into stable/wallaby

This commit is contained in:
Zuul 2021-04-01 09:57:34 +00:00 committed by Gerrit Code Review
commit fec9d8f073
1 changed files with 3 additions and 0 deletions

View File

@ -314,6 +314,9 @@ class TestOVNFunctionalBase(test_plugin.Ml2PluginV2TestCase,
trigger_cls.trigger.__self__.__class__ = neutron.wsgi.WorkerService trigger_cls.trigger.__self__.__class__ = neutron.wsgi.WorkerService
self.addCleanup(self.stop) self.addCleanup(self.stop)
# NOTE(ralonsoh): do not access to the DB at exit when the SQL
# connection is already closed, to avoid useless exception messages.
mock.patch.object(self.mech_driver, '_clean_hash_ring').start()
self.mech_driver.pre_fork_initialize( self.mech_driver.pre_fork_initialize(
mock.ANY, mock.ANY, trigger_cls.trigger) mock.ANY, mock.ANY, trigger_cls.trigger)