clustercheck: use fqdn instead of ip for bind address
Clustercheck service is accessible via port 9200 on the Mysql network
(e.g. internal API). The bind address specified in the config currently
uses IP address. This breaks the OpenStack healthcheck because curl
refuses to fetch a URI with unquoted IPv6 address.
Use an fqdn as the bind address in the config to make sure the service
is reachable no matter the type of network used.
Change-Id: Ia41bf10ea65edd51cafee5416697628f972c693e
Closes-Bug: #1860124
(cherry picked from commit 643c4028b8
)
This commit is contained in:
parent
cf467ead1b
commit
190adb2b9f
|
@ -62,7 +62,15 @@ outputs:
|
|||
description: Containerized service clustercheck using composable services.
|
||||
value:
|
||||
service_name: clustercheck
|
||||
config_settings: {get_attr: [MysqlPuppetBase, role_data, config_settings]}
|
||||
config_settings:
|
||||
map_merge:
|
||||
- get_attr: [MysqlPuppetBase, role_data, config_settings]
|
||||
- tripleo::profile::pacemaker::clustercheck::bind_address:
|
||||
str_replace:
|
||||
template:
|
||||
"%{hiera('fqdn_$NETWORK')}"
|
||||
params:
|
||||
$NETWORK: {get_param: [ServiceNetMap, MysqlNetwork]}
|
||||
# BEGIN DOCKER SETTINGS #
|
||||
puppet_config:
|
||||
config_volume: clustercheck
|
||||
|
|
Loading…
Reference in New Issue