Switch to using spawn to properly treat errors during sync_state
Changesf1b9ac5a
and9f6ff7e3
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:
parent
5d5073b328
commit
db866fb542
@ -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'))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user