Janki Chhatbar 83eeb181f3 Add healthcheck for ODL container
This patch adds healtcheck logic for ODL container.

Change-Id: I75af8119f495e2eb1b617b9773dde7abb6ea1727
Closes-Bug: #1713632
2017-09-20 12:02:16 +05:30
..
2017-08-21 17:59:39 -04:00
2017-08-21 17:59:39 -04:00
2017-08-21 17:59:39 -04:00
2017-08-21 17:59:39 -04:00
2017-08-21 17:59:39 -04:00
2017-08-21 17:59:39 -04:00
2017-08-21 17:59:39 -04:00
2017-08-21 17:59:39 -04:00
2017-08-21 17:59:39 -04:00
2017-08-29 12:39:59 +02:00
2017-08-21 17:59:39 -04:00
2017-08-21 17:59:39 -04:00
2017-08-21 17:59:39 -04:00
2017-08-21 17:59:39 -04:00
2017-08-21 17:59:39 -04:00
2017-08-21 17:59:39 -04:00
2017-08-21 17:59:39 -04:00
2017-08-21 17:59:39 -04:00
2017-08-21 17:59:39 -04:00
2017-08-21 17:59:39 -04:00
2017-08-21 17:59:39 -04:00
2017-08-21 17:59:39 -04:00
2017-08-21 17:59:39 -04:00
2017-08-21 17:59:39 -04:00
2017-08-21 17:59:39 -04: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