]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Switch to using spawn to properly treat errors during sync_state
authorarmando-migliaccio <armamig@gmail.com>
Fri, 6 Dec 2013 15:31:53 +0000 (07:31 -0800)
committerarmando-migliaccio <armamig@gmail.com>
Fri, 6 Dec 2013 15:31:53 +0000 (07:31 -0800)
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

index f848deace0975b55fc8fa3e694a6ea9d9637d032..777668f674dd79b8ede3ba3030d00a1ede4533f6 100644 (file)
@@ -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'))