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
| ... | ... |
@@ -81,9 +81,6 @@ function configure_horizon() {
|
| 81 | 81 |
|
| 82 | 82 |
# init_horizon() - Initialize databases, etc. |
| 83 | 83 |
function init_horizon() {
|
| 84 |
- # Remove stale session database. |
|
| 85 |
- rm -f $HORIZON_DIR/openstack_dashboard/local/dashboard_openstack.sqlite3 |
|
| 86 |
- |
|
| 87 | 84 |
# ``local_settings.py`` is used to override horizon default settings. |
| 88 | 85 |
local_settings=$HORIZON_DIR/openstack_dashboard/local/local_settings.py |
| 89 | 86 |
cp $HORIZON_SETTINGS $local_settings |
| ... | ... |
@@ -106,12 +103,6 @@ function init_horizon() {
|
| 106 | 106 |
_horizon_config_set $local_settings OPENSTACK_NEUTRON_NETWORK enable_vpn True |
| 107 | 107 |
fi |
| 108 | 108 |
|
| 109 |
- # Initialize the horizon database (it stores sessions and notices shown to |
|
| 110 |
- # users). The user system is external (keystone). |
|
| 111 |
- cd $HORIZON_DIR |
|
| 112 |
- python manage.py syncdb --noinput |
|
| 113 |
- cd $TOP_DIR |
|
| 114 |
- |
|
| 115 | 109 |
# Create an empty directory that apache uses as docroot |
| 116 | 110 |
sudo mkdir -p $HORIZON_DIR/.blackhole |
| 117 | 111 |
|