neutron/neutron/tests/unit/agent
Rodolfo Alonso Hernandez 3b509e11b7 [DHCP] Break reference chain to any Exception object when resync
In the DHCP agent, if an exception is raised during the driver call,
"DhcpAgent.schedule_resync" is called. Before this patch, the
exception instance was passed instead of a string. This instance
reference was stored in the dictionary "needs_resync_reasons" and
used in "_periodic_resync_helper" to resync the DHCP agent
information.

The call to "sync_state" passed the dictionary ".keys()" method. In
python2.7 when that was implemented, this method was creating a list
with the dictionary keys. In python3, this method is a generator
that holds the dictionary content.

This patch breaks this reference chain in two points (actually only
one is needed):
- "sync_state" now passes a list created from the mentioned generator.
- The dictionary "needs_resync_reasons" now stores the exception
  strings only, instead of the exception instance.

Closes-Bug: #1969270
Change-Id: I07e9818021283d321fc32066be7e0f8e2b81e639
(cherry picked from commit e3b3ec9309)
2022-04-14 21:27:18 +00:00
..
common Don't setup bridge controller if it is already set 2021-11-03 11:05:41 +00:00
dhcp [DHCP] Break reference chain to any Exception object when resync 2022-04-14 21:27:18 +00:00
l2 Add the base class DHCPResponder 2021-03-10 10:33:39 +08:00
l3 [L3][QoS] L3 agent QoS extension to handle duplicated FIPs 2022-04-07 15:27:16 +00:00
linux When creating a VXLAN interface, a device is mandatory 2022-04-11 16:22:49 +02:00
metadata Stop metadata proxy gracefully 2021-02-06 17:24:38 +00:00
ovn [OVN] Accept OVS system-id as non UUID formatted string 2021-12-21 17:57:25 +00:00
ovsdb Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
windows Remove "six" library 2020-07-28 16:55:52 +00:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
test_agent_extensions_manager.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_resource_cache.py Replace assertItemsEqual with assertCountEqual 2021-08-24 10:00:56 +00:00
test_rpc.py Set RPC timeout in PluginReportStateAPI to report_interval 2021-11-11 16:21:19 +00:00
test_securitygroups_rpc.py Merge "Remove rootwrap execution (4)" 2021-02-17 15:43:21 +00:00