Book Image

Production Ready OpenStack - Recipes for Successful Environments

By : Arthur Berezin
Book Image

Production Ready OpenStack - Recipes for Successful Environments

By: Arthur Berezin

Overview of this book

OpenStack is the most popular open source cloud platform used by organizations building internal private clouds and by public cloud providers. OpenStack is designed in a fully distributed architecture to provide Infrastructure as a Service, allowing us to maintain a massively scalable cloud infrastructure. OpenStack is developed by a vibrant community of open source developers who come from the largest software companies in the world. The book provides a comprehensive and practical guide to the multiple uses cases and configurations that OpenStack supports. This book simplifies the learning process by guiding you through how to install OpenStack in a single controller configuration. The book goes deeper into deploying OpenStack in a highly available configuration. You'll then configure Keystone Identity Services using LDAP, Active Directory, or the MySQL identity provider and configure a caching layer and SSL. After that, you will configure storage back-end providers for Glance and Cinder, which will include Ceph, NFS, Swift, and local storage. Then you will configure the Neutron networking service with provider network VLANs, and tenant network VXLAN and GRE. Also, you will configure Nova's Hypervisor with KVM, and QEMU emulation, and you will configure Nova's scheduler filters and weights. Finally, you will configure Horizon to use Apache HTTPD and SSL, and you will customize the dashboard's appearance.
Table of Contents (16 chapters)
Production Ready OpenStack - Recipes for Successful Environments
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Installing Horizon – web user interface dashboard


Horizon dashboard service is the web user interface for users to consume OpenStack services and for administrator to manage and operate OpenStack.

Getting ready

Install packages needed for Horizon as follows:

[root@controller ~]# yum install mod_wsgi openstack-dashboard
Use firewall-cmd command to open port 80:
[root@controller ~]# firewall-cmd --permanent --add-port=80/tcp
[root@controller ~]# firewall-cmd --reload
Configure SELinux:
# setsebool -P httpd_can_network_connect on

How to do it...

Perform the following steps to configure and enable the Horizon dashboard service:

  1. Edit /etc/openstack-dashboard/local_settings:

    ALLOWED_HOSTS = ['localhost', '*']
    OPENSTACK_HOST = "controller"
    
  2. Start and enable service. At this point, we can start and enable Neutron-server service:

    [root@controller ~]# systemctl start httpd
    [root@controller ~]# systemctl enable httpd
    

How it works...

Horizon is a Django-based web application, running on Apache HTTPD service, it interacts with all services' APIs to gather information from OpenStack's services and to create new resources.

There's more...

We can verify whether Horizon dashboard service was installed successfully after we completed configuring the service.

Verify successful installation

You can now access the dashboard via web browser at http://controller/dashb using the admin user account and password chosen during the admin account creation.