charm-barbican/src/layer.yaml
David Ames ca80b266ed Run db sync manually by leader only
Without db_auto_create = False each barbican-worker attempts to run
alembic upgrades on the database whenever they start. This leads to
race conditions that can leave the sate of the database broken
(multiple alembic version that "overlap").

This change runs the barbican-manage db upgrade by the leader only
avoiding the race condition. charms.openstack also handles the
openstack upgrade process with a call to instance.db_sync.

Change-Id: I6b9498059c7057b73b1c3db0e355456c38b0510e
Closes-Bug: #1827690
2021-02-05 15:39:52 -08:00

17 lines
341 B
YAML

includes:
- layer:leadership
- layer:openstack-api
- interface:mysql-shared
- interface:rabbitmq
- interface:keystone
- interface:barbican-hsm
- interface:barbican-secrets
repo: https://github.com/openstack/charm-barbican
options:
basic:
use_venv: True
include_system_packages: False
config:
deletes:
- verbose