tripleo-common/healthcheck
Martin Mágr c2d2f93d99 Add healthcheck script for etcd
This patch adds script for docker health check of etcd service.
The script uses etcdctl control tool to check enpoint health.

Change-Id: Idd759abc454b17f3798900c5bab9ef68899610d7
2018-02-23 14:04:12 +01:00
..
aodh-api Add healthcheck script for Aodh API 2018-02-19 13:32:50 +00:00
aodh-evaluator Fix nova_vnc_proxy, ceilometer_agent_central and aodh_evaluator health check 2017-10-23 11:32:13 +00:00
aodh-listener Set healthchecks executable. 2017-08-21 17:59:39 -04:00
aodh-notifier Set healthchecks executable. 2017-08-21 17:59:39 -04:00
barbican-api Add healthchecks for barbican containers 2018-02-19 13:32:42 +00:00
barbican-keystone-listener Add healthchecks for barbican containers 2018-02-19 13:32:42 +00:00
barbican-worker Add healthchecks for barbican containers 2018-02-19 13:32:42 +00:00
ceilometer-agent-central Fix nova_vnc_proxy, ceilometer_agent_central and aodh_evaluator health check 2017-10-23 11:32:13 +00:00
ceilometer-agent-ipmi Set healthchecks executable. 2017-08-21 17:59:39 -04:00
ceilometer-agent-notification Set healthchecks executable. 2017-08-21 17:59:39 -04:00
cinder-api Add healthcheck script for Cinder API 2018-02-19 13:31:55 +00:00
cinder-backup Set healthchecks executable. 2017-08-21 17:59:39 -04:00
cinder-scheduler Set healthchecks executable. 2017-08-21 17:59:39 -04:00
cinder-volume Set healthchecks executable. 2017-08-21 17:59:39 -04:00
collectd Add healthcheck script for Collectd 2018-02-19 13:33:12 +00:00
common.sh IPv6 healthcheck fixes for Glance/Swift 2017-12-02 10:10:22 -05:00
etcd Add healthcheck script for etcd 2018-02-23 14:04:12 +01:00
glance-api IPv6 healthcheck fixes for Glance/Swift 2017-12-02 10:10:22 -05:00
gnocchi-api Add healthcheck script for Gnocchi API 2018-02-19 13:31:48 +00:00
gnocchi-metricd Add healthcheck script for gnocchi-metricd 2018-02-19 13:32:56 +00:00
gnocchi-statsd Add healthcheck script for gnocchi-statsd 2018-02-19 13:33:08 +00:00
heat-api Make curl healthchecks work with internal TLS 2017-08-30 13:19:25 +02:00
heat-api-cfn Make curl healthchecks work with internal TLS 2017-08-30 13:19:25 +02:00
heat-engine Set healthchecks executable. 2017-08-21 17:59:39 -04:00
ironic-api Fix the path to HEALTHCHECK_SCRIPTS in healthcheck/ironic-api 2017-09-05 13:07:53 +00:00
ironic-conductor Set healthchecks executable. 2017-08-21 17:59:39 -04:00
ironic-pxe Read the tftp IP to test from the command line 2018-01-03 17:28:11 +00:00
iscsid Add healthcheck script for iSCSId 2018-02-21 20:42:29 +00:00
keystone-admin Make curl healthchecks work with internal TLS 2017-08-30 13:19:25 +02:00
keystone-public Make curl healthchecks work with internal TLS 2017-08-30 13:19:25 +02:00
manila-scheduler Set healthchecks executable. 2017-08-21 17:59:39 -04:00
mariadb Add clustercheck healthcheck 2017-08-29 12:39:59 +02:00
memcached Add healthcheck script for memcached 2018-02-19 13:33:04 +00:00
mistral-engine Set healthchecks executable. 2017-08-21 17:59:39 -04:00
mistral-executor Set healthchecks executable. 2017-08-21 17:59:39 -04:00
multipathd Add healthcheck script for multipathd 2018-02-19 13:33:17 +00:00
neutron-api Add healthcheck script for Neutron server 2018-02-19 13:32:37 +00:00
neutron-dhcp Set healthchecks executable. 2017-08-21 17:59:39 -04:00
neutron-l3 Set healthchecks executable. 2017-08-21 17:59:39 -04:00
neutron-metadata Set healthchecks executable. 2017-08-21 17:59:39 -04:00
neutron-ovs-agent Set healthchecks executable. 2017-08-21 17:59:39 -04:00
nova-api Make curl healthchecks work with internal TLS 2017-08-30 13:19:25 +02:00
nova-compute Healthcheck for nova_migration_target container 2017-11-07 12:30:28 +01:00
nova-conductor Set healthchecks executable. 2017-08-21 17:59:39 -04:00
nova-consoleauth Set healthchecks executable. 2017-08-21 17:59:39 -04:00
nova-ironic Set healthchecks executable. 2017-08-21 17:59:39 -04:00
nova-placement Add healthcheck script for Nova placement API 2018-01-19 23:12:43 +01:00
nova-scheduler Set healthchecks executable. 2017-08-21 17:59:39 -04:00
nova-vnc-proxy Fix nova_vnc_proxy, ceilometer_agent_central and aodh_evaluator health check 2017-10-23 11:32:13 +00:00
octavia-health-manager Set healthchecks executable. 2017-08-21 17:59:39 -04:00
octavia-housekeeping Set healthchecks executable. 2017-08-21 17:59:39 -04:00
octavia-worker Set healthchecks executable. 2017-08-21 17:59:39 -04:00
opendaylight-api Optimize opendaylight_api container healhcheck 2017-11-16 18:01:39 +05:30
ovn-metadata Fix health check for ovn-metadata 2018-02-08 14:47:56 +00:00
panko-api Add healthcheck script for Panko API 2018-01-23 07:53:15 +00:00
rabbitmq healthchecks: service checks for rabbit, swift-*, mysql 2017-07-28 02:42:50 +00:00
README.md Add health check for services connected to RabbitMQ 2017-07-25 14:10:21 +02:00
redis Add healthcheck script for Redis 2018-01-23 07:53:46 +00:00
sahara-engine Set healthchecks executable. 2017-08-21 17:59:39 -04:00
sensu-client Set healthchecks executable. 2017-08-21 17:59:39 -04:00
swift-account-server IPv6 healthcheck fixes for Glance/Swift 2017-12-02 10:10:22 -05:00
swift-container-server IPv6 healthcheck fixes for Glance/Swift 2017-12-02 10:10:22 -05:00
swift-object-server IPv6 healthcheck fixes for Glance/Swift 2017-12-02 10:10:22 -05:00
swift-proxy IPv6 healthcheck fixes for Glance/Swift 2017-12-02 10:10:22 -05:00
tacker Add healthcheck script for Tacker 2018-02-19 13:32:46 +00: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