Commit 4ffa2f1b authored by Daniele Venzano's avatar Daniele Venzano

Heal automatically a database inconsistency due to spurious events generated by docker

parent 169776e7
......@@ -160,3 +160,5 @@ class DockerEngineBackend(zoe_master.backends.base.BaseBackend):
engine.update(service.backend_id, cpu_quota=cpu_quota, mem_reservation=memory)
else:
log.error('Cannot update reservations for service {} ({}), since it has no backend ID'.format(service.name, service.id))
if service.status == service.INACTIVE_STATUS:
service.set_backend_status(service.BACKEND_UNDEFINED_STATUS)
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