tripleo-common/healthcheck
Alex Schultz dbdaa05dc6 Revert "Revert "Fix a couple of Swift healthchecks""
This reverts commit 750b562521.

Depending on the used procps version, the output of "ps -e" is width
limited and thus not matching the quite long process names. Using
"ps -ef" fixes this, along with a small hack in the piped grep to filter
out grep itself (pgrep itself is not working for this).

Removes swift-*-replicator because it does not seem to be used
anymore in any of the container build configurations.

This change removes the renames from the previous commit because they
are backwards incompatible depending on how the containers are built. We
use healthcheck from the openstack-tripleo-common-containers-base which
is a package. If this package does not have the new file names (or old
filenames) and the containers are built with a different version of
tripleo-common, the container builds fail.  So let's skip renaming of
files so that we can deal with that as a separate issue as a whole.

Change-Id: I3e58de46835307d4332b34d22d2895e6382292dd
(cherry picked from commit 21fd04f038)
(cherry picked from commit 8c385c3633)
(cherry picked from commit 22ecc9c65b)
2021-04-12 12:49:47 +02:00
..
releasenotes/notes Revert "Revert "Fix a couple of Swift healthchecks"" 2021-04-12 12:49:47 +02:00
README.md Fix formatting options 2018-09-11 17:15:11 +02:00
aodh-api Fix formatting options 2018-09-11 17:15:11 +02:00
aodh-evaluator Fix formatting options 2018-09-11 17:15:11 +02:00
aodh-listener Fix formatting options 2018-09-11 17:15:11 +02:00
aodh-notifier Fix formatting options 2018-09-11 17:15:11 +02:00
barbican-api Fix formatting options 2018-09-11 17:15:11 +02:00
barbican-keystone-listener Fix formatting options 2018-09-11 17:15:11 +02:00
barbican-worker Fix formatting options 2018-09-11 17:15:11 +02:00
ceilometer-agent-central Fix formatting options 2018-09-11 17:15:11 +02:00
ceilometer-agent-compute Fix ceilometer_agent_compute health check 2019-11-12 12:42:05 +00:00
ceilometer-agent-ipmi Fix formatting options 2018-09-11 17:15:11 +02:00
ceilometer-agent-notification Fix formatting options 2018-09-11 17:15:11 +02:00
cinder-api Fix formatting options 2018-09-11 17:15:11 +02:00
cinder-backup Fix formatting options 2018-09-11 17:15:11 +02:00
cinder-scheduler Fix formatting options 2018-09-11 17:15:11 +02:00
cinder-volume Fix formatting options 2018-09-11 17:15:11 +02:00
collectd Activate new healthchecks 2018-03-07 10:44:59 +01:00
common.sh Revert "Revert "Fix a couple of Swift healthchecks"" 2021-04-12 12:49:47 +02:00
cron Fix bashate and flake8 errors 2019-06-14 19:23:53 +01:00
etcd Activate new healthchecks 2018-03-07 10:44:59 +01:00
fluentd Bracket IPv6 address in ironic_inspector healthcheck 2020-02-26 01:10:18 +00:00
glance-api Bracket IPv6 address in ironic_inspector healthcheck 2020-02-26 01:10:18 +00:00
gnocchi-api Fix formatting options 2018-09-11 17:15:11 +02:00
gnocchi-metricd Fix formatting options 2018-09-11 17:15:11 +02:00
gnocchi-statsd Switch gnocchi-statsd HC to healthcheck_port 2021-01-20 10:28:05 +00:00
heat-api Fix formatting options 2018-09-11 17:15:11 +02:00
heat-api-cfn Fix formatting options 2018-09-11 17:15:11 +02:00
heat-engine Fix formatting options 2018-09-11 17:15:11 +02:00
horizon Fix formatting options 2018-09-11 17:15:11 +02:00
http-healthcheck.py Conditionally use python instead of cURL 2021-02-03 09:50:06 +01:00
ironic-api Fix formatting options 2018-09-11 17:15:11 +02:00
ironic-conductor Fix formatting options 2018-09-11 17:15:11 +02:00
ironic-inspector Use healthcheck_port for ironic_inspector_dnsmasq healthcheck 2020-04-17 11:24:42 +00:00
ironic-neutron-agent Add a healthcheck for ironic-neutron-agent 2019-11-26 17:59:10 +00:00
ironic-pxe Bracket IPv6 address in ironic_inspector healthcheck 2020-02-26 01:10:18 +00:00
iscsid Activate new healthchecks 2018-03-07 10:44:59 +01:00
keystone Fix keystone healthcheck 2019-01-16 22:12:23 +01:00
manila-scheduler Fix formatting options 2018-09-11 17:15:11 +02:00
mariadb Fix formatting options 2018-09-11 17:15:11 +02:00
memcached Fix memcached healthcheck regression 2020-03-04 21:15:51 +00:00
mistral-api Fix formatting options 2018-09-11 17:15:11 +02:00
mistral-engine Fix formatting options 2018-09-11 17:15:11 +02:00
mistral-event-engine Fix formatting options 2018-09-11 17:15:11 +02:00
mistral-executor Fix formatting options 2018-09-11 17:15:11 +02:00
multipathd Activate new healthchecks 2018-03-07 10:44:59 +01:00
neutron-api Bracket IPv6 address in ironic_inspector healthcheck 2020-02-26 01:10:18 +00:00
neutron-dhcp Fix formatting options 2018-09-11 17:15:11 +02:00
neutron-l3 Fix formatting options 2018-09-11 17:15:11 +02:00
neutron-metadata Fix formatting options 2018-09-11 17:15:11 +02:00
neutron-ovs-agent Fix formatting options 2018-09-11 17:15:11 +02:00
neutron-sriov-agent Fix formatting options 2018-09-11 17:15:11 +02:00
nova-api Fix nova-api healthcheck 2018-11-12 09:21:45 +01:00
nova-compute Fix formatting options 2018-09-11 17:15:11 +02:00
nova-conductor Fix formatting options 2018-09-11 17:15:11 +02:00
nova-ironic Fix formatting options 2018-09-11 17:15:11 +02:00
nova-libvirt Fix nova-virtlogd container healthcheck 2020-05-28 14:14:04 +00:00
nova-metadata Fix formatting options 2018-09-11 17:15:11 +02:00
nova-scheduler Fix formatting options 2018-09-11 17:15:11 +02:00
nova-vnc-proxy Bracket IPv6 address in ironic_inspector healthcheck 2020-02-26 01:10:18 +00:00
octavia-api Fixup octavia-api healthcheck 2019-04-24 10:14:43 -02:30
octavia-health-manager healthcheck: List udp ports with ss 2019-09-13 23:20:37 +05:30
octavia-housekeeping Fix formatting options 2018-09-11 17:15:11 +02:00
octavia-worker Fix formatting options 2018-09-11 17:15:11 +02:00
opendaylight-api Bracket IPv6 address in ironic_inspector healthcheck 2020-02-26 01:10:18 +00:00
ovn-controller Fix formatting options 2018-09-11 17:15:11 +02:00
ovn-dbs Correct ovn-dbs health check 2019-04-16 13:40:29 +02:00
ovn-metadata Fix formatting options 2018-09-11 17:15:11 +02:00
panko-api Fix formatting options 2018-09-11 17:15:11 +02:00
placement-api placement: Add missing healthcheck for extracted service 2019-01-21 10:13:22 +00:00
qdrouterd Add health check script for qdrouterd 2019-08-23 15:35:20 +02:00
rabbitmq Fix formatting options 2018-09-11 17:15:11 +02:00
redis Fix formatting options 2018-09-11 17:15:11 +02:00
sahara-api Bracket IPv6 address in ironic_inspector healthcheck 2020-02-26 01:10:18 +00:00
sahara-engine Fix formatting options 2018-09-11 17:15:11 +02:00
sensu-client Fix formatting options 2018-09-11 17:15:11 +02:00
swift-account-server Revert "Revert "Fix a couple of Swift healthchecks"" 2021-04-12 12:49:47 +02:00
swift-container-server Revert "Revert "Fix a couple of Swift healthchecks"" 2021-04-12 12:49:47 +02:00
swift-object-server Revert "Revert "Fix a couple of Swift healthchecks"" 2021-04-12 12:49:47 +02:00
swift-proxy Revert "Revert "Fix a couple of Swift healthchecks"" 2021-04-12 12:49:47 +02:00
swift-rsync Fix formatting options 2018-09-11 17:15:11 +02:00
tacker Bracket IPv6 address in ironic_inspector healthcheck 2020-02-26 01:10:18 +00:00
zaqar-api Add new healthchecks for zaqar services 2019-04-24 18:00:30 +02:00
zaqar-socket Fix bashate and flake8 errors 2019-06-14 19:23:53 +01:00

README.md

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