From 7c1608c2f4340b00779f2a0ea887d1f5294efead Mon Sep 17 00:00:00 2001 From: Vladimir Kozhukalov Date: Wed, 18 Jan 2017 19:19:04 +0300 Subject: [PATCH] Nailgun status check should include http responses Fuel-utils could be used for automation of some tasks and it is crucial service status checks to be adequate. It is not enough to check that nailgun is started we also need to check that it accepts requests and responds. Change-Id: I587925a468283cf48e22dc8afef36d7674af9903 Partial-Bug: #1656872 --- files/fuel-utils/functions.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/files/fuel-utils/functions.sh b/files/fuel-utils/functions.sh index 312d68b65e..9bfcffaac7 100644 --- a/files/fuel-utils/functions.sh +++ b/files/fuel-utils/functions.sh @@ -48,6 +48,7 @@ function check_ready { else retry_checker "supervisorctl status nailgun | grep -q RUNNING" fi + retry_checker "fuel fuel-version >/dev/null 2>&1" ;; ostf) retry_checker "egrep -q ^[2-4][0-9]? < <(curl --connect-timeout 1 -s -w '%{http_code}' http://$ADMIN_IP:8777/ostf/not_found -o /dev/null)"