Installing OpenStack Dashboard
Recommended by 0 users
Managing our OpenStack environment through a command-line interface allows us complete control of our cloud environment, but having a GUI that operators and administrators can use to manage their environments and instances makes this process easier. OpenStack Dashboard, known as Horizon, provides this GUI and is a Web service that runs from an Apache installation, using Python’s Web Service Gateway Interface (WSGI) and Django, a rapid development Web framework.
The OpenStack dashboard is a Web interface that enables cloud administrators and users to manage various OpenStack resources and services. The dashboard enables web-based interactions with the OpenStack Compute cloud controller through the OpenStack APIs. Horizon enables you to customize the brand of the dashboard. It provides a set of core classes and reusable templates and tools.
With OpenStack Dashboard installed, we can manage all the core components of our OpenStack environment.
We can also configure the dashboard for a simple HTTP deployment. You can configure the dashboard for a secured HTTPS deployment. While the standard installation uses a non-encrypted HTTP channel, you can enable SSL support for the dashboard. Also, you can configure the size of the VNC window in the dashboard.
As a cloud end user, you can use the OpenStack dashboard to provision your own resources within the limits set by administrators.
Installing OpenStack Dashboard
Installation of OpenStack Dashboard is a simple and straightforward process using Ubuntu’s package repository.
Ensure that you are logged into the OpenStack Controller Node. If you use Vagrant to create this as described in Creating a sandbox environment using VirtualBox and Vagrant recipe of Keystone OpenStack Identity Service, we can access this with the following command:
vagrant ssh controller
How to accomplish it…
To install OpenStack Dashboard, we simply install the required packages and dependencies by following the ensuing steps:
- Install the required packages as follows:
sudo apt-get update
sudo apt-get -y install openstack-dashboard novnc \ nova-consoleauth nova-console memcached
- We can configure OpenStack Dashboard by editing the /etc/openstack-dashboard/local_settings.py file, thus:
OPENSTACK_HOST = "172.16.0.200"
OPENSTACK_KEYSTONE_URL = "http://%s:5000/v2.0" % OPENSTACK_HOST
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "Member"
- Now we need to configure OpenStack Compute to use our VNC proxy service that can be used through our OpenStack Dashboard interface. To do so, add the following lines to /etc/nova/nova.conf:
novnc_enabled=true novncproxy_base_url=http://172.16.0.200:6080/vnc_auto.html vncserver_proxyclient_address=172.16.0.200 vncserver_listen=172.16.0.200
- Restart nova-api to pick up the changes:
sudo restart nova-api
sudo restart nova-compute
sudo service apache2 restart
Installation of OpenStack Dashboard under Ubuntu gives a slightly different look and feel than a stock installation of the Dashboard. The functions remain the same, although Ubuntu adds an additional feature to allow the user to download environment settings for Canonicals’ orchestration tool, Juju. To remove the Ubuntu theme execute the following:
sudo dpkg --purge openstack-dashboard-ubuntu-theme
How it works…
Installation of OpenStack Dashboard, Horizon, is simple when using Ubuntu’s package repository. As it uses the Python RAD Web environment, Django, and WSGI, OpenStack Dashboard can run under Apache. So, to pick up our changes, we restart our Apache 2 service.
We also include the VNC Proxy service. It provides us with a great feature to access our instances over the network, through the Web interface.