Merge "Add healthcheck script for nova-metadata service"

This commit is contained in:
Zuul 2018-03-08 03:57:17 +00:00 committed by Gerrit Code Review
commit a6abc4e3cf
2 changed files with 12 additions and 0 deletions

View File

@ -312,6 +312,12 @@ RUN mkdir -p /openstack && \
chmod a+rx /openstack/healthcheck
{% endblock %}
{% block nova_metadata_footer %}
RUN mkdir -p /openstack && \
ln -s /usr/share/openstack-tripleo-common/healthcheck/nova-metadata /openstack/healthcheck && \
chmod a+rx /openstack/healthcheck
{% endblock %}
{% block nova_novncproxy_footer %}
RUN mkdir -p /openstack && \
ln -s /usr/share/openstack-tripleo-common/healthcheck/nova-vnc-proxy /openstack/healthcheck && \

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-metadata_wsgi.conf)
healthcheck_curl ${check_url}