Add healthcheck script for Cinder API

This patch adds script for docker health check of Cinder API service.
The script checks API service using curl.

Change-Id: Iebb0cdb911c65a78eeba148337028e8ef9aad4be
This commit is contained in:
Martin Mágr 2018-02-09 16:43:58 +01:00
parent 1550e16d6e
commit 24c12e93b1
1 changed files with 6 additions and 0 deletions

6
healthcheck/cinder-api Normal file
View File

@ -0,0 +1,6 @@
#!/bin/sh
. ${HEALTHCHECK_SCRIPTS:-/usr/share/openstack-tripleo-common/healthcheck}/common.sh
check_url=$(get_url_from_vhost /etc/httpd/conf.d/10-cinder_wsgi.conf)
healthcheck_curl ${check_url}