{"id":244,"date":"2015-09-07T13:51:47","date_gmt":"2015-09-07T13:51:47","guid":{"rendered":"http:\/\/onlinelab.info\/?p=244"},"modified":"2015-09-07T13:51:47","modified_gmt":"2015-09-07T13:51:47","slug":"openstack-kilo-on-ubuntu-14-04-2-configure-horizon","status":"publish","type":"post","link":"https:\/\/www.asianux.org.vn\/index.php\/2015\/09\/07\/openstack-kilo-on-ubuntu-14-04-2-configure-horizon\/","title":{"rendered":"OpenStack Kilo on Ubuntu 14.04.2 \u2013 Configure Horizon"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8807 aligncenter\" src=\"http:\/\/www.itzgeek.com\/wp-content\/uploads\/2015\/06\/OpenStack-Logo.png\" alt=\"OpenStack Logo\" width=\"200\" height=\"200\" title=\"\"><\/p>\n<p>In the last tutorial, we have had <a href=\"http:\/\/www.itzgeek.com\/how-tos\/linux\/ubuntu-how-tos\/openstack-kilo-on-ubuntu-14-04-2-launch-an-instance.html\" target=\"_blank\" rel=\"noopener\">created an instance using CLI<\/a>; same can be done through a web interface called Horizon. It enables us to manage various OpenStack resources and services. This guide helps you to configure horizon in Ubuntu 14.04.<\/p>\n<p>Horizon uses OpenStack API\u2019s to interact with the cloud controller, you can also customize the dashboard for branding. Here we will be using apache servers as web server to serve horizon dashboard.<\/p>\n<h2>System requirements:<\/h2>\n<p>Before proceeding ahead, make sure your system meets below requirements.<\/p>\n<p>OpenStack compute installation, it enables identity service for user and project management.<\/p>\n<p>Dashboard should be run as identity service user with sudo privileges.<\/p>\n<p>Python version should support Django, v 2.7.<\/p>\n<p>Install and configure dashboard on a node that can contact the identity service.<\/p>\n<h2>Install the Horizon components:<\/h2>\n<p>Install the following OpenStack dashboard package on the controller node.<\/p>\n<pre># apt-get install openstack-dashboard<\/pre>\n<h2>Configure the Horizon:<\/h2>\n<p>Edit the \/etc\/openstack-dashboard\/local_settings.py file.<\/p>\n<pre># nano \/etc\/openstack-dashboard\/local_settings.py<\/pre>\n<p>Modify below settings.<\/p>\n<pre><strong>## Enter controller node details.<\/strong>\n\nOPENSTACK_HOST = \"controller\"\n\n<strong>## Allow hosts to access dashboard<\/strong>\n\nALLOWED_HOSTS = '*'\n<strong>\n## Comment out any other storage configuration.<\/strong>\n\nCACHES = {\n'default': {\n'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',\n'LOCATION': '127.0.0.1:11211',\n}\n}\n\n<strong>## Default role that will assigned when the user is created via dashboard.<\/strong>\n\nOPENSTACK_KEYSTONE_DEFAULT_ROLE = \"user\"\n\n<strong>## Replace TIME_ZONE with your Time zone.<\/strong>\n\nTIME_ZONE = \"TIME_ZONE\"<\/pre>\n<p>Restart the apache service.<\/p>\n<pre># service apache2 restart<\/pre>\n<p>Access the dashboard using the following url<\/p>\n<pre><strong>http:\/\/controller\/horizon<\/strong> or <strong>http:\/\/ip-add-ress\/horizon<\/strong><\/pre>\n<p>Enter the admin credential that we created during <a href=\"http:\/\/www.itzgeek.com\/how-tos\/linux\/ubuntu-how-tos\/openstack-kilo-on-ubuntu-14-04-2-configure-keystone-2.html\" target=\"_blank\" rel=\"noopener\">Keystone configurations<\/a>.<\/p>\n<figure id=\"attachment_8883\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-8883\" src=\"http:\/\/www.itzgeek.com\/wp-content\/uploads\/2015\/07\/OpenStack-Configure-Horizon.jpg\" alt=\"OpenStack - Configure Horizon\" width=\"640\" height=\"439\" title=\"\"><figcaption class=\"wp-caption-text\">OpenStack \u2013 Configure Horizon<\/figcaption><\/figure>\n<p>Once you logged in, you will be taken to summary page of Horizon.<\/p>\n<figure id=\"attachment_8884\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-8884\" src=\"http:\/\/www.itzgeek.com\/wp-content\/uploads\/2015\/07\/OpenStack-Configure-Horizon-Usage-Summary-.jpg\" alt=\"OpenStack - Configure Horizon (Usage Summary)\" width=\"640\" height=\"443\" title=\"\"><figcaption class=\"wp-caption-text\">OpenStack \u2013 Configure Horizon (Usage Summary)<\/figcaption><\/figure>\n<p>Click on Instances section on the left side to list down the instances.<\/p>\n<figure id=\"attachment_8885\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-8885\" src=\"http:\/\/www.itzgeek.com\/wp-content\/uploads\/2015\/07\/OpenStack-Configure-Horizon-Instances-.jpg\" alt=\"OpenStack - Configure Horizon (Instances)\" width=\"640\" height=\"444\" title=\"\"><figcaption class=\"wp-caption-text\">OpenStack \u2013 Configure Horizon (Instances)<\/figcaption><\/figure>\n<p>Click on the Instance name to get further information.<\/p>\n<figure id=\"attachment_8886\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-8886\" src=\"http:\/\/www.itzgeek.com\/wp-content\/uploads\/2015\/07\/OpenStack-Configure-Horizon-Instance-Overview-.jpg\" alt=\"OpenStack - Configure Horizon (Instance Overview)\" width=\"640\" height=\"440\" title=\"\"><figcaption class=\"wp-caption-text\">OpenStack \u2013 Configure Horizon (Instance Overview)<\/figcaption><\/figure>\n<p>You can click on the console menu to get the remote console of the selected instance.<\/p>\n<figure id=\"attachment_8887\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-8887\" src=\"http:\/\/www.itzgeek.com\/wp-content\/uploads\/2015\/07\/OpenStack-Configure-Horizon-Instance-Console.jpg\" alt=\"OpenStack - Configure Horizon (Instance Console)\" width=\"640\" height=\"360\" title=\"\"><figcaption class=\"wp-caption-text\">OpenStack \u2013 Configure Horizon (Instance Console)<\/figcaption><\/figure>\n<p>You may need to make a host entry of controller on client desktop from where you are accessing the dashboard.<\/p>\n<p>That\u2019s All!!!, you have successfully configured Horizon. Next is to configure Block Storage Server (Cinder).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the last tutorial, we have had created an instance using CLI; same can be done through a web interface called Horizon. It enables us to manage various OpenStack resources and services. This guide helps&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-244","post","type-post","status-publish","format-standard","hentry","category-virtualization"],"_links":{"self":[{"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/posts\/244","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/comments?post=244"}],"version-history":[{"count":0,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/posts\/244\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/media?parent=244"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/categories?post=244"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/tags?post=244"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}