Use proper galera port in configuration

While <service>_galera_port is defined and used for db_setup
role, it's not in fact used in a connection string for oslo.db.

Change-Id: I7835892960360ddea73ba98ed1cbdc8268d5e71e
This commit is contained in:
Dmitriy Rabotyagov 2023-07-31 15:42:54 +02:00 committed by Dmitriy Rabotyagov
parent 8d4a5ec633
commit 610cb66262
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ service_type = {{ tacker_service_type }}
# be set in the corresponding core plugin '.ini' file. However, it is suggested
# to put the [database] section and its connection attribute in this
# configuration file.
connection = mysql+pymysql://{{ tacker_galera_user }}:{{ tacker_container_mysql_password }}@{{ tacker_galera_address }}/{{ tacker_galera_database }}?charset=utf8{% if tacker_galera_use_ssl | bool %}&ssl_verify_cert=true{% if tacker_galera_ssl_ca_cert | length > 0 %}&ssl_ca={{ tacker_galera_ssl_ca_cert }}{% endif %}{% endif +%}
connection = mysql+pymysql://{{ tacker_galera_user }}:{{ tacker_container_mysql_password }}@{{ tacker_galera_address }}:{{ tacker_galera_port }}/{{ tacker_galera_database }}?charset=utf8{% if tacker_galera_use_ssl | bool %}&ssl_verify_cert=true{% if tacker_galera_ssl_ca_cert | length > 0 %}&ssl_ca={{ tacker_galera_ssl_ca_cert }}{% endif %}{% endif +%}
max_overflow = {{ tacker_db_max_overflow }}
max_pool_size = {{ tacker_db_max_pool_size }}
pool_timeout = {{ tacker_db_pool_timeout }}