Fix readiness check dependency check

Readiness check should depend on "done" state of
the service launched on the same anode where this check performs.

Change-Id: I848da62d560902c7c0cd44bb319b87ed80168cb5
This commit is contained in:
Andrey Pavlov 2016-11-30 12:12:09 +03:00
parent 6be82b25fc
commit 9592a3f212
1 changed files with 3 additions and 2 deletions

View File

@ -489,8 +489,9 @@ def run_probe(probe):
def do_status(role_name):
workflow = get_workflow(role_name)
service_name = workflow["name"]
# check status in etcd
if not check_is_done(service_name):
# check local status in etcd
local_dep = "%s:local" % service_name
if not check_is_done(local_dep):
LOG.info("Service is not done")
sys.exit(1)
LOG.info("Service in done state")