Openstack Liberty Lab Part 7: Configure Horizon Dashboard Service

You can download this article in PDF format via the link below to support us.Download the guide in PDF formatClose

The Openstack Horizon service is just a web interface that enables cloud administrators and users to manage various OpenStack resources and services. It is supported by the popular web framework django. The dashboard provides web-based interaction with the OpenStack Compute cloud controller through the OpenStack API. You can use Horizon to customize the dashboard according to your own preferences. Core classes and reusable templates and tools are available for you to use. Since we have installed the main Openstack components from the previous Openstack Lab guide series, it is time to simplify our cloud management by introducing Dashboard into hybrid. The previous article is:

Openstack Liberty Lab Part 1: Setting up the network and all prerequisites

Openstack Liberty Lab Part 2: Install the Openstack software package

Openstack Liberty Lab Part 3: Configure Keystone Identity Service

Openstack Liberty Lab Part 4: Configure Glance Image Service

Openstack Liberty Lab Part V: Configure Nova Computing Service

Openstack Liberty Lab Part VI: Configure Neutron Network Services

Setting up the Openstack Horizon service is easy, and the packages to be installed are provided in the second part of this series. After installation, configure as follows:

[root[email protected] ~]# vim /etc/openstack-dashboard/local_settings

Modify the part given here:

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

You can also allow only specified IP addresses.

  • Configure Memcache as follows:
CACHES = {


'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': '127.0.0.1:11211',
}
}
  • Set “Time Zone” to the time zone used by the server:
TIME_ZONE = "Africa/Nairobi"
  • Openstack neutron parameter instrument:
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 make changes:

[[email protected] ~]# systemctl restart httpd.service memcached.service

Start and enable novncproxy:

[[email protected] ~]#  systemctl start openstack-nova-novncproxy
[[email protected] ~]#  systemctl enable openstack-nova-novncproxy
  • Change the ownership of /usr/share/openstack-dashboard/static to the apache user.
[[email protected] ~]# chown -R apache. /usr/share/openstack-dashboard/static

If vnc is not configured on the nova configuration section, please configure it:

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 can now access the dashboard by typing:

http://192.168.1.60/dashboard

openstack details

Log in with the user admin and password you set for the admin user in step 3. Previous article:

Openstack Liberty Lab Part VI: Configure Neutron Network Services

Next article:

You can download this article in PDF format via the link below to support us.Download the guide in PDF formatClose

Sidebar