Updates devstack to E4 final horizon package structure.

Change-Id: Iedc30eb532b93e5755310b1037a2ecbb3552aab0
This commit is contained in:
Gabriel Hurley 2012-02-29 01:36:53 -08:00
parent b32c876ed5
commit f1a11adf2b
3 changed files with 9 additions and 13 deletions

View File

@ -1,12 +1,12 @@
<VirtualHost *:80> <VirtualHost *:80>
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 WSGIDaemonProcess horizon user=%USER% group=%GROUP% processes=3 threads=10
SetEnv APACHE_RUN_USER %USER% SetEnv APACHE_RUN_USER %USER%
SetEnv APACHE_RUN_GROUP %GROUP% SetEnv APACHE_RUN_GROUP %GROUP%
WSGIProcessGroup horizon WSGIProcessGroup horizon
DocumentRoot %HORIZON_DIR%/.blackhole/ DocumentRoot %HORIZON_DIR%/.blackhole/
Alias /media %HORIZON_DIR%/openstack-dashboard/dashboard/static Alias /media %HORIZON_DIR%/openstack_dashboard/static
Alias /vpn /opt/stack/vpn Alias /vpn /opt/stack/vpn
<Directory /> <Directory />

View File

@ -37,7 +37,7 @@ MAILER_EMAIL_BACKEND = EMAIL_BACKEND
HORIZON_CONFIG = { HORIZON_CONFIG = {
'dashboards': ('nova', 'syspanel', 'settings',), 'dashboards': ('nova', 'syspanel', 'settings',),
'default_dashboard': 'nova', 'default_dashboard': 'nova',
'user_home': 'dashboard.views.user_home', 'user_home': 'openstack_dashboard.views.user_home',
} }
OPENSTACK_HOST = "127.0.0.1" 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

View File

@ -618,8 +618,7 @@ if is_service_enabled g-api n-api; then
fi fi
cd $NOVA_DIR; sudo python setup.py develop cd $NOVA_DIR; sudo python setup.py develop
if is_service_enabled horizon; then if is_service_enabled horizon; then
cd $HORIZON_DIR/horizon; sudo python setup.py develop cd $HORIZON_DIR; sudo python setup.py develop
cd $HORIZON_DIR/openstack-dashboard; sudo python setup.py develop
fi fi
if is_service_enabled q-svc; then if is_service_enabled q-svc; then
cd $QUANTUM_DIR; sudo python setup.py develop 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 apt_get install apache2 libapache2-mod-wsgi
# Link to quantum client directory. # Link to quantum client directory.
rm -fr ${HORIZON_DIR}/openstack-dashboard/quantum rm -fr ${HORIZON_DIR}/openstack_dashboard/quantum
ln -s ${QUANTUM_CLIENT_DIR}/quantum ${HORIZON_DIR}/openstack-dashboard/quantum ln -s ${QUANTUM_CLIENT_DIR}/quantum ${HORIZON_DIR}/openstack_dashboard/quantum
# Remove stale session database. # 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.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 cp $FILES/horizon_settings.py $local_settings
# Enable quantum in dashboard, if requested # 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 # Initialize the horizon database (it stores sessions and notices shown to
# users). The user system is external (keystone). # users). The user system is external (keystone).
cd $HORIZON_DIR/openstack-dashboard cd $HORIZON_DIR
python manage.py syncdb python manage.py syncdb
# create an empty directory that apache uses as docroot # create an empty directory that apache uses as docroot