From 0e38fc28529737cf785752702fb7089276bb8a15 Mon Sep 17 00:00:00 2001 From: Jeffrey Zhang Date: Sun, 9 Apr 2017 09:34:23 +0800 Subject: [PATCH] Configure coordination_url for cloudkitty processor Cloudkitty processor use tooz to handle multi processor processes. Otherwise, duplicated billing will be inserted into mysql. Change-Id: Ifdc1be78afa89499ee4c3bbec5b9db8ddb2929cf Closes-Bug: #1681160 --- ansible/roles/cloudkitty/templates/cloudkitty.conf.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ansible/roles/cloudkitty/templates/cloudkitty.conf.j2 b/ansible/roles/cloudkitty/templates/cloudkitty.conf.j2 index dea701a7b0..9ac91dcd6c 100644 --- a/ansible/roles/cloudkitty/templates/cloudkitty.conf.j2 +++ b/ansible/roles/cloudkitty/templates/cloudkitty.conf.j2 @@ -49,3 +49,6 @@ auth_section = keystone_authtoken [api] host_ip = {{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }} port = {{ cloudkitty_api_port }} + +[orchestrator] +coordination_url = mysql://{{ cloudkitty_database_user }}:{{ cloudkitty_database_password }}@{{ cloudkitty_database_address }}/{{ cloudkitty_database_name }}