tripleo-common/healthcheck/nova-api
Martin Schuppert da02cd1cf6 Fix nova-api healthcheck
Fixes if statement to match correct nova metadata process name.

Change-Id: If02312254694ccdb74fceadd992a47707ff41fdf
2018-11-12 09:21:45 +01:00

13 lines
327 B
Bash
Executable File

#!/bin/bash
. ${HEALTHCHECK_SCRIPTS:-/usr/share/openstack-tripleo-common/healthcheck}/common.sh
if pgrep -f 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}