Ceilometer cannot create standalone mysql database

Users can configure standalone database but bootstrap takes
wrong address - instead of cluster VIP it should take
ceilometer_database_mysql_address. The latter is set to VIP by
default.

Change-Id: I7fc789e53565190c1d3b9966dc67f668237ebd83
Closes-Bug: #1634083
This commit is contained in:
Vladislav Belogrudov 2016-10-17 12:59:06 +03:00 committed by Paul Bourke (pbourke)
parent 580fcde959
commit a60e47dce7

View File

@ -13,7 +13,7 @@
- name: Creating Ceilometer mysql database
command: docker exec -t kolla_toolbox /usr/bin/ansible localhost
-m mysql_db
-a "login_host='{{ database_address }}'
-a "login_host='{{ ceilometer_database_mysql_address }}'
login_port='{{ database_port }}'
login_user='{{ database_user }}'
login_password='{{ database_password }}'
@ -30,7 +30,7 @@
- name: Creating Ceilometer database user and setting permissions
command: docker exec -t kolla_toolbox /usr/bin/ansible localhost
-m mysql_user
-a "login_host='{{ database_address }}'
-a "login_host='{{ ceilometer_database_mysql_address }}'
login_port='{{ database_port }}'
login_user='{{ database_user }}'
login_password='{{ database_password }}'