Uses alembic migration when deploying devstack

Changes devstack to deploy the barbican database using the
alembic migrations instead of the auto-migrate feature. This allows
us to make sure any migrations do not break barbican-manage.

Closes-Bug: #1500629
Change-Id: Ia68698311c8e6ec84672701f38967d8d0016b784
This commit is contained in:
Christopher Solis 2016-03-28 17:00:37 +00:00
parent df8aab57fb
commit 99397de06f

View File

@ -119,6 +119,9 @@ function configure_barbican {
# Set the database connection url
iniset $BARBICAN_CONF DEFAULT sql_connection `database_connection_url barbican`
# Disable auto-migration when deploying Barbican
iniset $BARBICAN_CONF DEFAULT db_auto_create False
# Increase default request buffer size, keystone auth PKI tokens can be very long
iniset $BARBICAN_CONF_DIR/vassals/barbican-api.ini uwsgi buffer-size 65535
@ -152,6 +155,8 @@ function init_barbican {
rm -f $BARBICAN_AUTH_CACHE_DIR/*
recreate_database barbican utf8
$BARBICAN_BIN_DIR/barbican-manage db upgrade -v head
}
# install_barbican - Collect source and prepare