Single Node OpenStack installation on Linux

0
1676

 OpenStack

OpenStack is a free and open-source software platform for cloud computing, mostly deployed as an infrastructure-as-a-service .The software platform consists of interrelated components that control diverse, multi-vendor hardware pools of processing, storage, and networking resources throughout a data center. Users either manage it through a web-based dashboard, through command-line tools, or through a RESTful API.

OpenStack is available in both single Node and Multi-Node. In MultiNode Environment different OpenStack services run on different Nodes. But in single Node Environment, all opensrtackServices runs on a single machine.

In this article, We will be known about the Installation of single Node OpenstackOn Linux.

Before we going to start the installation of OpenStack, we should check the system name, IP address and disable Firewall and SELinux.

First, We set the FQDN name by using hostnamectl command as follows

hostname-command

Now disable the SELinux by using the following command and also edit the file /etc/selinux/config then change  SELINUX line from enforcing to disabled.

[root@localhost ~]# setenforce 0
[root@localhost ~]# vi /etc/selinux/config

selinux-policies

Now Disable the firewall service by using the following command.

firewalld-service

Use the following command to enable rdo repositories.

 [root@localhost ~]# yum install -y https://www.rdoproject.org/repos/rdo-release. rpm

enable-rdo-repository

Now install OpenStack package as follows

[root@localhost ~]#yum install -y openstack-packstack

Now generate the answer file by using the following command

[root@localhost ~]# packstack --gen-answer-file=/root/answerfile.txt
Packstack changed given value  to required value /root/.ssh/id_rsa.pub
[root@localhost ~]#

Edit the answer file /root/answerfile.txt then set the following field values

CONFIG_NTP_SERVERS = IP address of NTP server
CONFIG_PROVISION_DEMO= n 
CONFIG_HORIZON_SSL= y
CONFIG_KEYSTONE_ADMIN_PW= Password for admin

Now run the following command to complete the OpenStack installation.

[root@localhost ~]# packstack --answer-file /root/answerfile.txt 
[root@localhost ~]#

Sample Output:

openstack-installation

Once the installation is completed, We can access the OpenStack Dashboard by using URL address as follows

https://localhost/dashboard or https://ip-address/dashboard

single-node-openstack

Once you logged in we get the overview window as follows

openstack-overview

Now enjoy OpenStack in your machine.