Merge "placement: Add missing healthcheck for extracted service"

This commit is contained in:
Zuul 2019-01-29 18:53:50 +00:00 committed by Gerrit Code Review
commit bb71524988
2 changed files with 12 additions and 0 deletions

View File

@ -548,6 +548,12 @@ RUN mkdir -p /openstack && \
chmod a+rx /openstack/healthcheck
{% endblock %}
{% block placement_api_footer %}
RUN mkdir -p /openstack && \
ln -s /usr/share/openstack-tripleo-common/healthcheck/placement-api /openstack/healthcheck && \
chmod a+rx /openstack/healthcheck
{% endblock %}
{% block rabbitmq_install_plugins %}
# External rabbitmq plugins installation is disabled
{% endblock %}

6
healthcheck/placement-api Executable file
View File

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