From 5d75bf762f02466648d961b8c5fa7a65de6e709d Mon Sep 17 00:00:00 2001 From: armando-migliaccio Date: Fri, 6 Dec 2013 07:31:53 -0800 Subject: [PATCH] Switch to using spawn to properly treat errors during sync_state Changes f1b9ac5a and 9f6ff7e3 were aimed at improving the robustness of the sync_state method. However both missed switching from spawn_n to spawn to properly deal with raised exceptions. Change-Id: Ieda4a5ecca63de67d8a9757962e7e3383fd9c9ea Related-bug: #1257514 --- neutron/agent/dhcp_agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neutron/agent/dhcp_agent.py b/neutron/agent/dhcp_agent.py index f848deace09..777668f674d 100644 --- a/neutron/agent/dhcp_agent.py +++ b/neutron/agent/dhcp_agent.py @@ -163,7 +163,7 @@ class DhcpAgent(manager.Manager): 'network %s'), deleted_id) for network in active_networks: - pool.spawn_n(self.safe_configure_dhcp_for_network, network) + pool.spawn(self.safe_configure_dhcp_for_network, network) pool.waitall() LOG.info(_('Synchronizing state complete'))