Openstack Horizon service is just a web interface that enables cloud administrators and users to manage various OpenStack resources and services.It is powered by django which is a popular web framework.
The Dashboard provides web-based interactions with the OpenStack Compute cloud controller through the OpenStack APIs.
You can customize the dashboard to your liking with Horizon.Core classes and reusable templates and tools are available at your disposal.
Since we’ve installed major Openstack components from previous Openstack Lab guide series, it’s time to easen management of our cloud by bringing Dashboard into the mix.
Previous Articles are:

Openstack Liberty Lab Part One: Setup Networking and all Prerequisites

Openstack Liberty Lab Part Two: Install Openstack Packages

Openstack Liberty Lab Part Three: Configuring Keystone identity service

Openstack Liberty Lab Part Four: Configuring Glance Image Service

Openstack Liberty Lab Part Five: Configure Nova Compute Service

Openstack Liberty Lab Part Six: Configure Neutron Network Service

It’s easy to setup Openstack Horizon service,Packages to be installed are available in Part Two of this series. After installing, Configure it as shown below:

[root@controller ~]# vim /etc/openstack-dashboard/local_settings

Modify sections given here:

  • Change Openstack Host to ip address of the controller/server.
OPENSTACK_HOST = "192.168.1.60"
  • Allow connection to Dashboard from any host:
ALLOWED_HOSTS = ['*', ]

You can also allow only specified ip addresses.

  • Configure Memcache to look like this:
CACHES = {


'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': '127.0.0.1:11211',
}
}
  •  Set Timezone to the one used by the server:
TIME_ZONE = "Africa/Nairobi"
  • Openstack Neutron Patameters:

 

OPENSTACK_NEUTRON_NETWORK = {

'enable_router': False,
'enable_quotas': False,
'enable_ipv6': False,
'enable_distributed_router': False,
'enable_ha_router': False,
'enable_lb': False,
'enable_firewall': False,
'enable_vpn': False,
'enable_fip_topology_check': False,

Restart httpd and memcached to effect changes made:

[root@controller ~]# systemctl restart httpd.service memcached.service

Start and enable novncproxy:

[root@controller ~]#  systemctl start openstack-nova-novncproxy
[root@controller ~]#  systemctl enable openstack-nova-novncproxy
  • Change ownership of /usr/share/openstack-dashboard/staticto apache user.
[root@controller ~]# chown -R apache. /usr/share/openstack-dashboard/static

Configure vnc if you didn’t do it on nova configuration part:

openstack-config --set /etc/nova/nova.conf vnc enabled True 
openstack-config --set /etc/nova/nova.conf vnc vncserver_listen 0.0.0.0 
openstack-config --set /etc/nova/nova.conf vnc vncserver_proxyclient_address 192.168.1.60
openstack-config --set /etc/nova/nova.conf vnc novncproxy_base_url http://192.168.1.60:6080/vnc_auto.html

You may now access Dashboard by typing:

http://192.168.1.60/dashboard

 

Login with user admin and password you set in step 3 for admin user.
PREVIOUS ARTICLE:

Openstack Liberty Lab Part Six: Configure Neutron Network Service

NEXT ARTICLE: