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
This commit is contained in:
armando-migliaccio 2013-12-06 07:31:53 -08:00
parent 5d5073b328
commit db866fb542

View File

@ -163,7 +163,7 @@ class DhcpAgent(manager.Manager):
'network %s'), deleted_id) 'network %s'), deleted_id)
for network in active_networks: 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() pool.waitall()
LOG.info(_('Synchronizing state complete')) LOG.info(_('Synchronizing state complete'))