You can support us by downloading this article as PDF from the Link below. Download the guide as PDF

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:

[pastacode lang=”bash” message=”” highlight=”” provider=”manual” manual=”%5Broot%40controller%20~%5D%23%20vim%20%2Fetc%2Fopenstack-dashboard%2Flocal_settings%0A”/]

Modify sections given here:

  • Change Openstack Host to ip address of the controller/server.

[pastacode lang=”bash” message=”” highlight=”” provider=”manual” manual=”OPENSTACK_HOST%20%3D%20%22192.168.1.60%22%0A”/]

  • Allow connection to Dashboard from any host:

[pastacode lang=”bash” message=”” highlight=”” provider=”manual” manual=”ALLOWED_HOSTS%20%3D%20%5B’*’%2C%20%5D%0A”/]

You can also allow only specified ip addresses.

  • Configure Memcache to look like this:

[pastacode lang=”bash” message=”” highlight=”” provider=”manual” manual=”CACHES%20%3D%20%7B%0A%0A%0A’default’%3A%20%7B%0A’BACKEND’%3A%20’django.core.cache.backends.memcached.MemcachedCache’%2C%0A’LOCATION’%3A%20’127.0.0.1%3A11211’%2C%0A%7D%0A%7D%0A”/]

  •  Set Timezone to the one used by the server:

[pastacode lang=”bash” message=”” highlight=”” provider=”manual” manual=”TIME_ZONE%20%3D%20%22Africa%2FNairobi%22%0A”/]

  • Openstack Neutron Patameters:

 

[pastacode lang=”bash” message=”” highlight=”” provider=”manual” manual=”OPENSTACK_NEUTRON_NETWORK%20%3D%20%7B%0A%0A’enable_router’%3A%20False%2C%0A’enable_quotas’%3A%20False%2C%0A’enable_ipv6’%3A%20False%2C%0A’enable_distributed_router’%3A%20False%2C%0A’enable_ha_router’%3A%20False%2C%0A’enable_lb’%3A%20False%2C%0A’enable_firewall’%3A%20False%2C%0A’enable_vpn’%3A%20False%2C%0A’enable_fip_topology_check’%3A%20False%2C”/]

Restart httpd and memcached to effect changes made:

[pastacode lang=”bash” message=”” highlight=”” provider=”manual” manual=”%5Broot%40controller%20~%5D%23%20systemctl%20restart%20httpd.service%20memcached.service%0A”/]

Start and enable novncproxy:

[pastacode lang=”bash” message=”” highlight=”” provider=”manual” manual=”%5Broot%40controller%20~%5D%23%C2%A0%20systemctl%20start%20openstack-nova-novncproxy%0A%5Broot%40controller%20~%5D%23%C2%A0%20systemctl%20enable%20openstack-nova-novncproxy”/]

  • Change ownership of /usr/share/openstack-dashboard/staticto apache user.

[pastacode lang=”bash” message=”” highlight=”” provider=”manual” manual=”%5Broot%40controller%20~%5D%23%20chown%20-R%20apache.%20%2Fusr%2Fshare%2Fopenstack-dashboard%2Fstatic”/]

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

[pastacode lang=”bash” message=”” highlight=”” provider=”manual” manual=”openstack-config%20–set%20%2Fetc%2Fnova%2Fnova.conf%20vnc%20enabled%20True%20%0Aopenstack-config%20–set%20%2Fetc%2Fnova%2Fnova.conf%20vnc%20vncserver_listen%200.0.0.0%20%0Aopenstack-config%20–set%20%2Fetc%2Fnova%2Fnova.conf%20vnc%20vncserver_proxyclient_address%20192.168.1.60%0Aopenstack-config%20–set%20%2Fetc%2Fnova%2Fnova.conf%20vnc%20novncproxy_base_url%20http%3A%2F%2F192.168.1.60%3A6080%2Fvnc_auto.html%0A”/]

You may now access Dashboard by typing:

[pastacode lang=”bash” message=”” highlight=”” provider=”manual” manual=”http%3A%2F%2F192.168.1.60%2Fdashboard%0A”/]

 

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: 

You can support us by downloading this article as PDF from the Link below. Download the guide as PDF