From 2ec800116e53a36edcee23795f38dc6c699d5cc9 Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Mon, 31 Jul 2023 15:08:24 +0200 Subject: [PATCH] Use proper galera port in configuration While _galera_port is defined and used for db_setup role, it's not in fact used in a connection string for oslo.db. Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/888517 Change-Id: Idbd2bef71983f6fb3cc402563a166349621bf03c --- templates/gnocchi.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/gnocchi.conf.j2 b/templates/gnocchi.conf.j2 index 2e36ebd..5900fcf 100644 --- a/templates/gnocchi.conf.j2 +++ b/templates/gnocchi.conf.j2 @@ -18,7 +18,7 @@ secure_proxy_ssl_header = {{ gnocchi_secure_proxy_ssl_header }} {% endif %} [indexer] -url = mysql+pymysql://{{ gnocchi_galera_user }}:{{ gnocchi_container_mysql_password }}@{{ gnocchi_galera_address }}/{{ gnocchi_galera_database }}?charset=utf8{% if gnocchi_galera_use_ssl | bool %}&ssl_verify_cert=true{% if gnocchi_galera_ssl_ca_cert | length > 0 %}&ssl_ca={{ gnocchi_galera_ssl_ca_cert }}{% endif %}{% endif %} +url = mysql+pymysql://{{ gnocchi_galera_user }}:{{ gnocchi_container_mysql_password }}@{{ gnocchi_galera_address }}:{{ gnocchi_galera_port }}/{{ gnocchi_galera_database }}?charset=utf8{% if gnocchi_galera_use_ssl | bool %}&ssl_verify_cert=true{% if gnocchi_galera_ssl_ca_cert | length > 0 %}&ssl_ca={{ gnocchi_galera_ssl_ca_cert }}{% endif %}{% endif %} {% if gnocchi_auth_mode == "keystone" %} [keystone_authtoken]