OpenStack Dashboard
The OpenStack Dashboard service provides users of the cloud environment with a web-accessible GUI as an alternative
to using the command-line tools.
To enable it, install the OpenStack Dashboard package and its
dependencies: # apt-get install openstack-dashboard memcached python-memcache# yum install httpd memcached
( cat | sudo tee -a /etc/openstack-dashboard/local_settings ) <<EOF
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'horizon',
'USER': 'horizon',
'PASSWORD': 'password',
'HOST': '$MY_IP',
'PORT': '',
}
}
EOF
# zypper install openstack-dashboard memcached python-python-memcached
( cat | sudo tee -a /usr/share/openstack-dashboard/openstack_dashboard/\
local/local_settings.py ) <<EOF
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'horizon',
'USER': 'horizon',
'PASSWORD': 'password',
'HOST': '$MY_IP',
'PORT': '',
}
}
EOF
Setup apache configuration:
# cp /etc/apache2/conf.d/openstack-dashboard.conf.sample \
/etc/apache2/conf.d/openstack-dashboard.conf
# a2enmod rewrite;a2enmod ssl;a2enmod wsgi
Start the service:
# systemctl restart apache2.service
# systemctl enable apache2.service
If you are running Ubuntu, it is optional, but
recommended to remove the
openstack-dashboard-ubuntu-theme
package. This theme prevents several menus as well as
the network map from rendering correctly:
# apt-get remove --purge openstack-dashboard-ubuntu-theme
OpenStack Dashboard is now available at
http://10.10.10.10/horizon. We can login
with the admin / password credentials or demo / password.
Check the
/var/log/apache2/error.log
/var/log/httpd/error_log
/var/log/apache2/error.log
file for errors that wold prevent either the Apache service
or the Dashboard service from successfully
starting.