From f1a11adf2bc308c386cb2c818088fe040019f114 Mon Sep 17 00:00:00 2001 From: Gabriel Hurley Date: Wed, 29 Feb 2012 01:36:53 -0800 Subject: [PATCH] Updates devstack to E4 final horizon package structure. Change-Id: Iedc30eb532b93e5755310b1037a2ecbb3552aab0 --- files/000-default.template | 4 ++-- files/horizon_settings.py | 5 +---- stack.sh | 13 ++++++------- 3 files changed, 9 insertions(+), 13 deletions(-) diff --git a/files/000-default.template b/files/000-default.template index d97f365924..f499ea073b 100644 --- a/files/000-default.template +++ b/files/000-default.template @@ -1,12 +1,12 @@ - WSGIScriptAlias / %HORIZON_DIR%/openstack-dashboard/dashboard/wsgi/django.wsgi + WSGIScriptAlias / %HORIZON_DIR%/openstack_dashboard/wsgi/django.wsgi WSGIDaemonProcess horizon user=%USER% group=%GROUP% processes=3 threads=10 SetEnv APACHE_RUN_USER %USER% SetEnv APACHE_RUN_GROUP %GROUP% WSGIProcessGroup horizon DocumentRoot %HORIZON_DIR%/.blackhole/ - Alias /media %HORIZON_DIR%/openstack-dashboard/dashboard/static + Alias /media %HORIZON_DIR%/openstack_dashboard/static Alias /vpn /opt/stack/vpn diff --git a/files/horizon_settings.py b/files/horizon_settings.py index bbff08fa03..2d1d1f8648 100644 --- a/files/horizon_settings.py +++ b/files/horizon_settings.py @@ -37,7 +37,7 @@ MAILER_EMAIL_BACKEND = EMAIL_BACKEND HORIZON_CONFIG = { 'dashboards': ('nova', 'syspanel', 'settings',), 'default_dashboard': 'nova', - 'user_home': 'dashboard.views.user_home', + 'user_home': 'openstack_dashboard.views.user_home', } OPENSTACK_HOST = "127.0.0.1" @@ -98,6 +98,3 @@ SWIFT_PAGINATE_LIMIT = 100 # } # } #} - -# How much ram on each compute host? -COMPUTE_HOST_RAM_GB = 16 diff --git a/stack.sh b/stack.sh index 8b69428661..20c44e2e27 100755 --- a/stack.sh +++ b/stack.sh @@ -618,8 +618,7 @@ if is_service_enabled g-api n-api; then fi cd $NOVA_DIR; sudo python setup.py develop if is_service_enabled horizon; then - cd $HORIZON_DIR/horizon; sudo python setup.py develop - cd $HORIZON_DIR/openstack-dashboard; sudo python setup.py develop + cd $HORIZON_DIR; sudo python setup.py develop fi if is_service_enabled q-svc; then cd $QUANTUM_DIR; sudo python setup.py develop @@ -718,14 +717,14 @@ if is_service_enabled horizon; then apt_get install apache2 libapache2-mod-wsgi # Link to quantum client directory. - rm -fr ${HORIZON_DIR}/openstack-dashboard/quantum - ln -s ${QUANTUM_CLIENT_DIR}/quantum ${HORIZON_DIR}/openstack-dashboard/quantum + rm -fr ${HORIZON_DIR}/openstack_dashboard/quantum + ln -s ${QUANTUM_CLIENT_DIR}/quantum ${HORIZON_DIR}/openstack_dashboard/quantum # Remove stale session database. - rm -f $HORIZON_DIR/openstack-dashboard/local/dashboard_openstack.sqlite3 + 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 + local_settings=$HORIZON_DIR/openstack_dashboard/local/local_settings.py cp $FILES/horizon_settings.py $local_settings # Enable quantum in dashboard, if requested @@ -735,7 +734,7 @@ if is_service_enabled horizon; then # Initialize the horizon database (it stores sessions and notices shown to # users). The user system is external (keystone). - cd $HORIZON_DIR/openstack-dashboard + cd $HORIZON_DIR python manage.py syncdb # create an empty directory that apache uses as docroot