tripleo-common/healthcheck/heat-api
Alex Schultz db47c12099 Update heat api healtchecks
The heat-api and heat-api-cfn containers need to check for 401 which is
what the api will return when it is up. There is not currently a
specific healthcheck url for heat that would return 200 so we need to
update the container healthcheck to look for the 401.

Change-Id: Ib0ac8847a47a42e7e0d73b699236df3355f58dcd
Closes-Bug: #1772492
2018-05-21 13:59:01 -06:00

7 lines
210 B
Bash
Executable File

#!/bin/sh
. ${HEALTHCHECK_SCRIPTS:-/usr/share/openstack-tripleo-common/healthcheck}/common.sh
check_url=$(get_url_from_vhost /etc/httpd/conf.d/10-heat_api_wsgi.conf)
healthcheck_curl ${check_url} | grep ^401