Clustercheck healthcheck with socat and ipv6
When clustercheck uses socat and IPv6, the healthcheck has to wrap the service IP in brackets for the call to succeed. Change-Id: I61da4f85ccf88f0287886334c8a9f43e3be8ef7e Closes-Bug: #1983266
This commit is contained in:
parent
6939ec8b46
commit
b48d0d5758
|
@ -14,6 +14,9 @@ elif pgrep -a socat 2> /dev/null | grep -w clustercheck; then
|
|||
TRIPLEO_SOCAT_BIND=$(sed -nE "s/^TRIPLEO_SOCAT_BIND='?([^']*)'?$/\1/p" $SOCAT_CONF)
|
||||
PORT=$(echo $TRIPLEO_SOCAT_BIND | sed -n -E 's/.*listen:([0-9]*),.*/\1/p')
|
||||
ADDR=$(echo $TRIPLEO_SOCAT_BIND | sed -n -E 's/.*bind="?([^",]*)"?,?.*/\1/p')
|
||||
if echo $TRIPLEO_SOCAT_BIND | grep -q '^tcp6'; then
|
||||
ADDR="[${ADDR}]"
|
||||
fi
|
||||
else
|
||||
IS_MYSQL=1
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue