Files
tripleo-common/healthcheck/nova-api
Martin Schuppert a77d5c86e2 Fix nova-api healthcheck in case of nova metadata wsgi
While we have a dedicated nova_metadata healthcheck script, the
nova_metadata and nova_api use the same container image and the current
nova api healtcheck script still checks the non wsgi implementation. This
changes the nova_api healthcheck script to check the metadata wsgi vhost
config for details instead of the details in nova.conf.

Change-Id: I028caee75e47618d5d0c55054ef33216d05d41b6
Closes-Bug: #1797514
2018-10-12 11:57:56 +02:00

13 lines
340 B
Bash
Executable File

#!/bin/bash
. ${HEALTHCHECK_SCRIPTS:-/usr/share/openstack-tripleo-common/healthcheck}/common.sh
if ps -ef | grep --quiet nova-metadata; then
check_url=$(get_url_from_vhost /etc/httpd/conf.d/10-nova_metadata_wsgi.conf)
else
check_url=$(get_url_from_vhost /etc/httpd/conf.d/10-nova_api_wsgi.conf)
fi
healthcheck_curl ${check_url}