Table of Contents
Today’s topic of our blog is “OpenStack Dashboard (Horizon): What is Horizon and How to install Horizon”. Dashboard Horizon is one of the components of the OpenStack. Let me give you a brief introduction of what is Horizon.
Horizon:
The Cloud administrators and users have permission to control the OpenStack Compute (Nova), storage and also the networking services for which they require a web-based graphical interface, this web-based graphical interface is OpenStack Horizon.
For instance, for launching VM examples, for observing the size and recent state of the installation of the OpenStack cloud, for managing the networks and also for setting the restrictions on the resources of the cloud which are available to the users, Horizon is used by administrators. And Horizon also serves as a self-serve browser for planning the cloud resources.
This OpenStack Dashboard Horizon interface functions with OpenStack compute Nova which is a compute service, with an object storage system i.e. OpenStack Swift, with the Keystone component of the OpenStack which is an identity management service and so on. All these services are accessed by the Horizon through an OpenStack APIs i.e. Application Programming Interface.
1. A User Dashboard,
2. A System Dashboard, and
3. A Settings Dashboard.
There are various visual elements of the Horizon interface which contains navigation bar, alerts, tables, and some other elements, needs to be customized and these elements are customized by the Cloud admins. Any present dashboard can be extended by the developers for including extra functionalities by creating an application which combines with the dashboard.
Furthermore, it is feasible to combine with third-party management and supervising tools with the Horizon.
Always remember that Horizon is considered as an optional application, and for building their own user interfaces the developers can select Horizon. The current versions of Firefox, Chrome and Internet Explorer 9 and more are the main web browsers which provide support to the Horizon.
Steps for accessing the OpenStack Dashboard
In the above command, the “system” can either be the name of the OpenStack or the IP address of the OpenStack system in which a Unified Archive of the OpenStack is installed and under the Apache web server, it is executing the OpenStack Horizon service.
The OpenStack system is called the kernel zone if a Unified archive has been installed on the kernel zone. As mentioned earlier, the “system” can either be the name of the kernel zone or the IP address of the kernel zone.
On the login screen enter the information in the following fields as:
Depending upon the roles or the access permission of a user, you have logged in as; the functions are made available in the dashboard.
To an OpenStack environment the web browser accessible interface is provided by the Horizon, which permits the users and also the administrators of the OpenStack environment to communicate and handle the different functional elements without deploying any native client tools apart from a web browser.
Except in other ways, all the steps mentioned in the above procedure should be carried out when the user is logged in as a root user or as a user who has sudo access.
For installing the OpenStack-dashboard package Use yum install command as follows:
$ sudo yum install -y openstack-dashboard
Important Note:
It is important to note that users always access the dashboard with the help of HTTP in the automatically selected configuration therefore due to the security reasons, it is suggested that the HTTPS should be enabled for encrypting the communication with the dashboard. So you should install the mod-ssl package for supporting the HTTPS as follows:
$ sudo yum install -y mod_ssl
Before starting to use dashboard it is important to create an OpenStack Keystone role which is named as “Member” because the Horizon needs this role.
$ source ~/keystonerc_admin
$ keystone role-create –name Member
——————————————————————-
|Property | Value |
——————————————————————-
| id | 8261ac4eabcc4da4b01610dbad6c038a |
——————————————————————-
|name | Member |
——————————————————————-
Important Note:
You can use the OPENSTACK_KEYSTONE_DEFAULT_ROLE configuration key if you want to construct Horizon which uses a role apart from the Member role.
The above-mentioned configuration key is stored in /etc/OpenStack-dashboard/local_settings file.
$ sudo service httpd start
$ sudo chkconfig httpd on
For checking the status of the SELinux on the system use the getenforce command as follows and this command will possibly return the values like enforcing, Permissive, and Disabled.
$ getenforce
Enforcing
It is recommended that, if the SELinux is setup in Enforcing or Permissive mode then you should edit the SELinux policy for permitting the connections from the httpd service to the OpenStack Keystone service.
Now if you want to edit or modify the SELinux policy then use the setsebool command which will permit the httpd service to connect to the Keystone server.
$ sudo setsebool -P httpd_can_network_connect on
As mentioned earlier, it is important to setup the system firewall for allowing the users to connect to the dashboard and also for allowing the connections. Also, we have already discussed that both the httpd service and the dashboard provide support to both the HTTP and the HTTPS connections. Due to the security reasons, it is also suggested that you should only start the HTTPS connections.
Add the following firewall rule to the /etc/sysconfig/iptables configuration file which will allow the incoming connections using HTTPS to the Horizon.
-A INPUT -p tcp -m multiport –dports 443 -j ACCEPT
Add the following firewall rule to the /etc/sysconfig/iptables configuration file for allowing the incoming connections using HTTP to the Horizon.
-A INPUT -p tcp -m multiport –dports 80 -j ACCEPT
Important Note:
The above-mentioned rules permit the interaction between all the remote hosts and the system which is executing Horizon services on the ports 80 or 443.
For the changes to take effect, you should restart the iptables service using the following command:
$ sudo service iptables restart
Now you have installed the Horizon Dashboard successfully! For accessing the dashboard for the first time, use your browser and open the correct link to your configuration.
Now you are required to replace the HOSTNAME with the hostname or the IP address of the server on which you have deployed Horizon as follows:
HTTPS:
HTTP:
When you are asked, log in with the help of your OpenStack user credentials.
That’s all for today! I hope you find this information helpful. Please do not forget to leave a comment in the comment section below. Thank you for reading the blog. See you soon with another blog on an interesting topic!
People also read:
In today's digital landscape, timing is everything. Whether you're a social media manager, business owner, or content creator, the success…
Are you a website owner? Maintaining the website is the prime concern for any website owner. Yes, it’s equally important…
If you’ve planned to launch a WordPress website, you might get a question, “How do I log in to WordPress?”…
As the demand for virtual private servers (VPS) continues to grow, businesses and individuals are faced with a crucial decision:…
Web hosting is a large industry, as many other factors help any web hosting provider to form a company. The…
View Comments