Horizon Dashboard is an optional component in Openstack which provides the webpage to launch the instances in few clicks. Horizon is fully depend on openstack core functionalities like keystone (Identify), Glance (Image Service), nova-compute (Compute), and Networking (neutron) or legacy networking (nova-network). Object Storage service can’t be used in dashboard since its a stand alone service. In this article, we will see that how to install and configure horizon(Dashboard) on controller node. Dashboard will make you to forget all the openstack commands for sure.
Install the Dashboard components:
1.Login to the Openstack Controller node.
2. Install the Dashboard packages .
root@OSCTRL-UA:~# apt-get install openstack-dashboard apache2 libapache2-mod-wsgi memcached python-memcache Reading package lists... Done Building dependency tree Reading state information... Done libapache2-mod-wsgi is already the newest version. The following extra packages will be installed: apache2-bin apache2-data openstack-dashboard-ubuntu-theme python-appconf python-ceilometerclient python-compressor python-django python-django-horizon python-django-pyscss python-heatclient python-openstack-auth python-pyscss python-saharaclient python-troveclient Suggested packages: apache2-doc apache2-suexec-pristine apache2-suexec-custom apache2-utils libcache-memcached-perl libmemcached python-psycopg2 python-psycopg python-flup python-sqlite geoip-database-contrib gettext python-django-doc ipython bpython libgdal1 The following NEW packages will be installed: memcached openstack-dashboard openstack-dashboard-ubuntu-theme python-appconf python-ceilometerclient python-compressor python-django python-django-horizon python-django-pyscss python-heatclient python-memcache python-openstack-auth python-pyscss python-saharaclient python-troveclient The following packages will be upgraded: apache2 apache2-bin apache2-data 3 upgraded, 15 newly installed, 0 to remove and 37 not upgraded. Need to get 6,681 kB of archives. After this operation, 58.0 MB of additional disk space will be used. Do you want to continue? [Y/n] Y
You might get error like below due to “openstack-dashboard-ubuntu-theme”,
apache2_invoke: Enable configuration openstack-dashboard.conf * Reloading web server apache2 * * Apache2 is not running invoke-rc.d: initscript apache2, action "reload" failed. Setting up memcached (1.4.14-0ubuntu9) ... Starting memcached: memcached. Setting up openstack-dashboard-ubuntu-theme (1:2014.2.3-0ubuntu1~cloud0) ... Collecting and compressing static assets... * Reloading web server apache2 * * Apache2 is not running dpkg: error processing package openstack-dashboard-ubuntu-theme (--configure): subprocess installed post-installation script returned error exit status 1 Processing triggers for ureadahead (0.100.0-16) ... Errors were encountered while processing: openstack-dashboard-ubuntu-theme E: Sub-process /usr/bin/dpkg returned an error code (1) root@OSCTRL-UA:~#
You can remove the openstack-dashboard-ubuntu-theme package using below command.
# dpkg --remove --force-remove-reinstreq openstack-dashboard-ubuntu-theme
Configure the Dashboard:
1.Login to the Openstack Controller Node.
2.Edit the “/etc/openstack-dashboard/local_settings.py” file and complete the following actions.
- Specify the Controller node Name.
OPENSTACK_HOST = "OSCTRL-UA"
- Make sure that all the systems are allowed to access the dashboard.
ALLOWED_HOSTS = '*'
Finalize the installation:
- Restart the web-service & session storage service.
root@OSCTRL-UA:~# service apache2 restart * Restarting web server apache2 [ OK ] root@OSCTRL-UA:~# service memcached restart Restarting memcached: memcached. root@OSCTRL-UA:~#
Verify the Dashboard Installation & Configuration:
1.Access the dashboard using a web browser – http://192.168.203.130/horizon .
2.Login to the dashboard using admin or tenant user(lingesh) credentials .
On the successful configuration of Horizon, you should b e able to login to the portal using admin or tenant id.
Hope this article is informative to you . Share it ! Be Sociable !!!
Leave a Reply