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
This commit is contained in:
Vladimir Kozhukalov 2017-01-18 19:19:04 +03:00
parent 625a6e7333
commit 7c1608c2f4
1 changed files with 1 additions and 0 deletions

View File

@ -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)"