Martin Schuppert a77d5c86e2 Fix nova-api healthcheck in case of nova metadata wsgi
While we have a dedicated nova_metadata healthcheck script, the
nova_metadata and nova_api use the same container image and the current
nova api healtcheck script still checks the non wsgi implementation. This
changes the nova_api healthcheck script to check the metadata wsgi vhost
config for details instead of the details in nova.conf.

Change-Id: I028caee75e47618d5d0c55054ef33216d05d41b6
Closes-Bug: #1797514
2018-10-12 11:57:56 +02:00
..
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-03-07 10:44:59 +01:00
2018-09-11 17:15:11 +02:00
2018-03-07 10:44:59 +01:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-03-07 10:44:59 +01:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-03-07 10:44:59 +01:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00
2018-09-11 17:15:11 +02:00

Health check commands

The scripts in this directory are meant to implement the container-healthcheck blueprint. They are written to be compatible with the Docker HEALTHCHECK api.

The scripts expect to source /usr/share/tripleo-common/healthcheck/common.sh. If you want to run scripts without installing to that file, you can set the HEALTHCHECKS_DIR environment variable, e.g:

    $ export HEALTHCHECKS_DIR=$PWD
    $ ./heat-api
    {"versions": [{"status": "CURRENT", "id": "v1.0", "links": [{"href": "http://192.168.24.1:8004/v1/", "rel": "self"}]}]}
    300 192.168.24.1:8004 0.002 seconds