f15417d662
This http-healthcheck always fails in the case the request is against to IPv6 address. Usually, the socket in IPv6 return a tuple that contains four values but only two values in IPv4. Currently, only two variables are defined to store return values. Therefore when extract the return value of socket.getpeername() in IPv6, an ValueError exception is raised and then healthcheck fails. This change restrict the return value of the socket.getpeername() to return only first two elements regardless of IPv4/IPv6. Closes-Bug: #2004268 Change-Id: I57ae54518a86f93ec92f0e74efadf1fa4da29f0f |
||
---|---|---|
.. | ||
releasenotes/notes | ||
aodh-api | ||
aodh-evaluator | ||
aodh-listener | ||
aodh-notifier | ||
barbican-api | ||
barbican-keystone-listener | ||
barbican-worker | ||
ceilometer-agent-central | ||
ceilometer-agent-compute | ||
ceilometer-agent-ipmi | ||
ceilometer-agent-notification | ||
cinder-api | ||
cinder-backup | ||
cinder-scheduler | ||
cinder-volume | ||
collectd | ||
common.sh | ||
cron | ||
etcd | ||
frr | ||
glance-api | ||
gnocchi-api | ||
gnocchi-metricd | ||
gnocchi-statsd | ||
heat-api | ||
heat-api-cfn | ||
heat-engine | ||
horizon | ||
http-healthcheck.py | ||
ironic-api | ||
ironic-conductor | ||
ironic-inspector | ||
ironic-neutron-agent | ||
ironic-pxe | ||
iscsid | ||
keystone | ||
manila-api | ||
manila-scheduler | ||
manila-share | ||
mariadb | ||
memcached | ||
multipathd | ||
neutron-api | ||
neutron-dhcp | ||
neutron-l3 | ||
neutron-metadata | ||
neutron-ovs-agent | ||
neutron-sriov-agent | ||
nova-api | ||
nova-compute | ||
nova-conductor | ||
nova-ironic | ||
nova-libvirt | ||
nova-metadata | ||
nova-scheduler | ||
nova-vnc-proxy | ||
octavia-api | ||
octavia-health-manager | ||
octavia-housekeeping | ||
octavia-worker | ||
ovn-bgp-agent | ||
ovn-controller | ||
ovn-dbs | ||
ovn-metadata | ||
placement-api | ||
qdrouterd | ||
rabbitmq | ||
README.md | ||
redis | ||
swift-account-server | ||
swift-container-server | ||
swift-object-server | ||
swift-proxy | ||
swift-rsync |
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
Notes about changing healthchecks
Because healthchecks are provided via a package when building containers, you cannot rename or remove a health check in combination with a change to a, file in tripleo-common/container-images/. Changes need to be backwards and forwards compatible when updating healthchecks. You may also need to land a new healthcheck first and update the container build process in a subsequent change that lands later.