![]() During the execution of ``AgentCache.__iter__``, the content of "self.agents" can change; the Neutron server can attend to an event to add or delete an OVN agent. If that happens, the iteration will fail with the error: "RuntimeError: dictionary changed size during iteration" To avoid this, before iterating the list of agents, the cache singleton creates a copy of the local cache. The aim of making this copy is to avoid using locks between threads. Conflicts: neutron/plugins/ml2/drivers/ovn/agent/neutron_agent.py Closes-Bug: #1976292 Change-Id: Icf92685579409282bad0a80ba42531c93738e0b1 (cherry picked from commit |
||
---|---|---|
.. | ||
__init__.py | ||
test_neutron_agent.py |