memcached healthcheck doesn't work when config has multiple endpoints or tls
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
Medium
|
Damien Ciabrini |
Bug Description
Lately, memcached is configured by t-h-t to listen to both localhost and the internal api. Since then, the generated memcached config can no longer be parsed by the memcached healthcheck:
# bash -x /openstack/
+ . /usr/share/
++ set -euo pipefail
++ : 0
++ '[' 0 -ne 0 ']'
++ exec
++ : 10
++ : curl-healthcheck
++ : pyrequests-
++ : '\n%{http_code}' '%{remote_
++ : /dev/null
+++ awk 'match($0, /-l +([0-9a-fA-F\.\:]+) /, a) {print a[1]}' /etc/sysconfig/
++ wrap_ipv6
/usr/share/
Note: the same parsing error will occur when memcached is configured with TLS, because the current regex won't parse properly the IP to connect to.
Fix proposed to branch: master /review. opendev. org/c/openstack /tripleo- common/ +/793507
Review: https:/