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:
parent
625a6e7333
commit
7c1608c2f4
@ -48,6 +48,7 @@ function check_ready {
|
|||||||
else
|
else
|
||||||
retry_checker "supervisorctl status nailgun | grep -q RUNNING"
|
retry_checker "supervisorctl status nailgun | grep -q RUNNING"
|
||||||
fi
|
fi
|
||||||
|
retry_checker "fuel fuel-version >/dev/null 2>&1"
|
||||||
;;
|
;;
|
||||||
ostf)
|
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)"
|
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)"
|
||||||
|
Loading…
Reference in New Issue
Block a user