From 51e6c102d1f5626f1b7ea9d7b7a5a317f127f803 Mon Sep 17 00:00:00 2001 From: Pete Birley Date: Wed, 2 Nov 2016 18:28:42 +0000 Subject: [PATCH] Barbican: Fix race condition when starting procs simultaneously This fixes a race condition when starting barbican processes, as by default they attempt to manage the db schema on startup. TrivialFix Change-Id: Ic168211880709a3279511ce519756e4cbdd57fe8 --- ansible/roles/barbican/templates/barbican.conf.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible/roles/barbican/templates/barbican.conf.j2 b/ansible/roles/barbican/templates/barbican.conf.j2 index b6e0e14a1e..55c6b22101 100644 --- a/ansible/roles/barbican/templates/barbican.conf.j2 +++ b/ansible/roles/barbican/templates/barbican.conf.j2 @@ -10,6 +10,7 @@ backlog = 4096 max_allowed_secret_in_bytes = 10000 max_allowed_request_size_in_bytes = 1000000 +db_auto_create = False sql_connection = mysql://{{ barbican_database_user }}:{{ barbican_database_password }}@{{ barbican_database_address }}/{{ barbican_database_name }} transport_url = rabbit://{% for host in groups['rabbitmq'] %}{{ rabbitmq_user }}:{{ rabbitmq_password }}@{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ rabbitmq_port }}{% if not loop.last %},{% endif %}{% endfor %}