From 9592a3f21280f848fb861473bd48e7cf49b1564e Mon Sep 17 00:00:00 2001 From: Andrey Pavlov Date: Wed, 30 Nov 2016 12:12:09 +0300 Subject: [PATCH] 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 --- fuel_ccp_entrypoint/start_script.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fuel_ccp_entrypoint/start_script.py b/fuel_ccp_entrypoint/start_script.py index 3089c5f..2bcdba5 100644 --- a/fuel_ccp_entrypoint/start_script.py +++ b/fuel_ccp_entrypoint/start_script.py @@ -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")