From 67db4a9bd5c0d0a119c244e8dbb1a0a1990944b8 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Fri, 7 Feb 2014 16:02:37 -0500 Subject: [PATCH] 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 --- lib/horizon | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lib/horizon b/lib/horizon index c64d8502ba..2f5795d1ca 100644 --- a/lib/horizon +++ b/lib/horizon @@ -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