Commit e99aef30 authored by Daniele Venzano's avatar Daniele Venzano

Fix bug with elastic services not starting

parent 1889d319
......@@ -195,6 +195,11 @@ class Service:
self.sql_manager.service_update(, status=self.STARTING_STATUS)
self.status = self.STARTING_STATUS
def set_runnable(self):
"""The service is elastic and can be started."""
self.sql_manager.service_update(, status=self.RUNNABLE_STATUS)
self.status = self.RUNNABLE_STATUS
def set_active(self, backend_id, ip_address):
"""The service is running and has a valid backend_id."""
self.sql_manager.service_update(, status=self.ACTIVE_STATUS, backend_id=backend_id, error_message=None, ip_address=ip_address)
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