remove database init from horizon
horizon default config no longer uses a session database, it uses signed cookies instead, so we can stop doing db initialization and cleanup (which based on errexit we weren't doing correctly anyway). Change-Id: Icae4318e2784486db2888cbf353e95ac9a5d7cba
This commit is contained in:
parent
daa0ce2f05
commit
67db4a9bd5
@ -81,9 +81,6 @@ function configure_horizon() {
|
||||
|
||||
# init_horizon() - Initialize databases, etc.
|
||||
function init_horizon() {
|
||||
# Remove stale session database.
|
||||
rm -f $HORIZON_DIR/openstack_dashboard/local/dashboard_openstack.sqlite3
|
||||
|
||||
# ``local_settings.py`` is used to override horizon default settings.
|
||||
local_settings=$HORIZON_DIR/openstack_dashboard/local/local_settings.py
|
||||
cp $HORIZON_SETTINGS $local_settings
|
||||
@ -106,12 +103,6 @@ function init_horizon() {
|
||||
_horizon_config_set $local_settings OPENSTACK_NEUTRON_NETWORK enable_vpn True
|
||||
fi
|
||||
|
||||
# Initialize the horizon database (it stores sessions and notices shown to
|
||||
# users). The user system is external (keystone).
|
||||
cd $HORIZON_DIR
|
||||
python manage.py syncdb --noinput
|
||||
cd $TOP_DIR
|
||||
|
||||
# Create an empty directory that apache uses as docroot
|
||||
sudo mkdir -p $HORIZON_DIR/.blackhole
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user