tripleo-common/healthcheck/octavia-health-manager
Rabi Mishra 0ca91f0d14 healthcheck: List udp ports with ss
Looks like octavia healthmanager uses UDP 5555 port.

Also changes octavia-health-manager healath check to use
healthcheck_port rather than healthcheck_listen, as udp
is a connectionless protocol.

Change-Id: Id48d5efe17eeb1a524e280d8885e98cfe1a5577a
Related-Bug: #1843555
2019-09-13 23:20:37 +05:30

15 lines
311 B
Bash
Executable File

#!/bin/bash
. ${HEALTHCHECK_SCRIPTS:-/usr/share/openstack-tripleo-common/healthcheck}/common.sh
process='octavia-health-manager'
args="${@:-5555}"
if healthcheck_port $process $args; then
exit 0
else
ports=${args// /,}
echo "There is no $process process listening on ports $ports."
exit 1
fi