placement: Add missing healthcheck for extracted service

Change-Id: I637b5af8c2ad4c2744d8ac65f198717cbba1cb6a
This commit is contained in:
Lee Yarwood 2019-01-21 10:12:45 +00:00
parent b98d1ac1f1
commit 27d7c6bd17
2 changed files with 12 additions and 0 deletions

View File

@ -549,6 +549,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}