Add healthcheck script for Nova metadata

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

Existing script healthcheck/nova-metadata is also removed as this
script is linked in nova_metadata_footer template block. This block
does not exist (anymore?) and we have to have metadata check as part
of nova-api check, because those two services share container image.

Change-Id: I597efc57f9c564409b566c598d9d2467bb31d8cd
This commit is contained in:
Martin Mágr
2018-03-07 12:27:30 +01:00
parent da0b138ba4
commit 1760afaacc
3 changed files with 9 additions and 13 deletions

View File

@@ -399,12 +399,6 @@ 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 && \