commit be7882be27237e7803c0b8411335f66594729175 Author: Rodolfo Alonso Hernandez Date: Thu Oct 1 15:46:19 2020 +0000 Do not update agents "alive" state in TestAgentApi During the execution of FT TestAgentApi, we should not update the chassis agents "alive" state; during the FT execution, some of the agents returned by "agents_from_chassis" do not really exist (not relevant for the test case). Change-Id: Ied5bdca2a3b3832f11d42614d609d0849111ae1a Closes-Bug: #1897921 diff --git a/neutron/tests/functional/plugins/ml2/drivers/ovn/mech_driver/test_mech_driver.py b/neutron/tests/functional/plugins/ml2/drivers/ovn/mech_driver/test_mech_driver.py index 7f0efa2..f7135bb 100644 --- a/neutron/tests/functional/plugins/ml2/drivers/ovn/mech_driver/test_mech_driver.py +++ b/neutron/tests/functional/plugins/ml2/drivers/ovn/mech_driver/test_mech_driver.py @@ -754,6 +754,8 @@ class TestAgentApi(base.TestOVNFunctionalBase): agent = {'agent_type': 'test', 'binary': '/bin/test', 'host': self.host, 'topic': 'test_topic'} self.plugin.create_or_update_agent(self.context, agent) + mock.patch.object(self.mech_driver, 'ping_all_chassis', + return_value=False).start() def get_agent(self, agent_type): return next(iter(self.plugin.get_agents(