Installing OpenStack Dashboard

Installing OpenStack Dashboard is a straightforward process using Ubuntu's package repository.

Getting ready

Ensure that you are logged in to the OpenStack controller node. If you use Vagrant to create this as described in the Installing the OpenStack Identity service recipe of Chapter 1, Keystone – OpenStack Identity Service, we can access this with the following command:

vagrant ssh controller

How to do it...

To install OpenStack Dashboard, we simply install the required packages and dependencies by following these steps:

  1. Install the required packages as follows:
    sudo apt-get update
    sudo apt-get install openstack-dashboard
    
  2. We can configure the OpenStack Dashboard by editing the /etc/openstack-dashboard/local_settings.py file, thus:
    OPENSTACK_HOST = "192.168.100.200"
    OPENSTACK_KEYSTONE_URL = "http://%s:5000/v2.0" % OPENSTACK_HOST
    OPENSTACK_KEYSTONE_DEFAULT_ROLE = "_member_"
    CACHES = {
       'default': {
           'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
           'LOCATION': '127.0.0.1:11211',
       }
    }
    ALLOWED_HOSTS = '*'
  3. Now we need to configure OpenStack Compute to use our Virtual Network Console (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
    novnc_enabled=true
    novncproxy_host=192.168.100.200
    novncproxy_base_url=http://192.168.100.200:6080/vnc_auto.html
    novncproxy_port=6080
    
    xvpvncproxy_port=6081
    xvpvncproxy_host=192.168.100.200
    xvpvncproxy_base_url=http://192.168.100.200:6081/console
    
    vncserver_proxyclient_address=192.168.100.200
    vncserver_listen=0.0.0.0
  4. Restart nova-api to pick up the changes:
    sudo restart nova-api
    sudo restart nova-compute
    sudo service apache2 restart
    

Note

Installing OpenStack Dashboard under Ubuntu gives a slightly different look and feel from a stock installation of Dashboard. The functions remain the same, although Ubuntu adds an additional feature to allow the user to download environment settings for the Canonicals' orchestration tool, Juju. To remove the Ubuntu theme, execute the following command:

sudo dpkg --purge openstack-dashboard-ubuntu-theme

How it works...

Installing the OpenStack Dashboard, Horizon, is done using the Ubuntu package repository. Given that the OpenStack Dashboard runs over an Apache web server, we have to restart the web server to pick up the changes.

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.

For the remainder of this chapter, the screenshots show the standard OpenStack interface after the removal of the Ubuntu theme.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset