Add retry decorator to dhcp_ready_on_ports
Enable DB retries for this provisioning blocks phase. Closes-Bug: #1602833 Change-Id: Ie6444d6552b4c1e73c00d5624e3866417204c9e8
This commit is contained in:
parent
4b82d0a443
commit
890c30fc52
|
@ -232,6 +232,7 @@ class DhcpRpcCallback(object):
|
||||||
'host': host})
|
'host': host})
|
||||||
return self._port_action(plugin, context, port, 'update_port')
|
return self._port_action(plugin, context, port, 'update_port')
|
||||||
|
|
||||||
|
@db_api.retry_db_errors
|
||||||
def dhcp_ready_on_ports(self, context, port_ids):
|
def dhcp_ready_on_ports(self, context, port_ids):
|
||||||
for port_id in port_ids:
|
for port_id in port_ids:
|
||||||
provisioning_blocks.provisioning_complete(
|
provisioning_blocks.provisioning_complete(
|
||||||
|
|
Loading…
Reference in New Issue