Commit b5f389b7 authored by Kostas Papadimitriou's avatar Kostas Papadimitriou Committed by Christos Stavrakakis
Browse files

Fix serious bug in reconciliation

Do not perform reconciliation for VMs that are hosted in Backends
that are currently offline, since it is impossible to get the
state of these VMs from the backend. Before this patch, the
reconciliation mechanism would report these VMs as stale (and with
--fix-* would also mark them as deleted in the DB).
parent 7ede7569
......@@ -160,7 +160,7 @@ def instances_with_build_errors(D, G):
def get_servers_from_db():
vms = VirtualMachine.objects.filter(deleted=False)
vms = VirtualMachine.objects.filter(deleted=False, backend__offline=False)
return dict(map(lambda x: (x.id, x.operstate), vms))
......
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