Commit cf0d2fcd authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

cyclades: Catch corner case in reconciliation

Include 'ERROR' in the states for which we check if the NIC exists in
the Ganeti instance.
parent cad09510
......@@ -995,7 +995,7 @@ def disk_is_stale(vm, disk, timeout=60):
def nic_is_stale(vm, nic, timeout=60):
"""Check if a NIC is stale or exists in the Ganeti backend."""
# First check the state of the NIC and if there is a pending CONNECT
if nic.state in ["BUILD", "DOWN"]:
if nic.state in ["BUILD", "DOWN", "ERROR"]:
if < nic.created + timedelta(seconds=timeout):
# Do not check for too recent NICs to avoid the time overhead
return False
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment