Installation of OpenStack on CentOS 8 using Packstack.

What is OpenStack?

  • OpenStack is an open-source cloud platform that manages distributed compute, network and storage resources.

  • OpenStack is a free, open standard cloud computing platform. It is mostly deployed as an Infrastructure as a service (IAAS) in both public and private clouds where virtual servers and other resources are available to users.

  • OpenStack was founded by NASA and RACKSPACE in 2010.

  • In OpenStack, the tools which are used to build this platform are referred to as “projects”. These projects handle a large number of services including computing, networking, and storage services.

OpenStack components:

  • Horizon - Dashboard

    (GUI interface service)

  • Keystone - Identity Service

    (Keystone serves as an identity service, providing authentication and authorization functions for the users to enable multi-tenancy. Keystone can be easily integrated with external identity systems, such as lightweight directory access protocol (LDAP) or Active Directory.)

  • Nova - Compute Service

    Nova is a full management and access tool to OpenStack compute resources—handling scheduling, creation, and deletion

  • Glance - Image Service

    (Glance is an image service, responsible for uploading, managing and retrieving cloud images for instances running on OpenStack.

    Glance stores and retrieves virtual machine disk images from a variety of locations.

  • Neutron - Networking Service

    Neutron provides network connectivity between OpenStack instances, enabling multi-VM deployments. For this purpose, Neutron uses various software-defined networking (SDN) technologies, including Open Virtual Network (OVN), Open vSwitch (OVS), Juniper Contrail, Cisco ACI, etc.

  • Cinder - Block Storage Service

    Cinder is a storage component that is responsible for the provisioning, management and termination of persistent block devices. Those can be later attached to the instances running on OpenStack to enable persistent block storage.

  • Swift - Object Storage Service

    (Swift is another storage component that provides a highly available and scalable object storage service similar to Amazon S3. It enables storing and retrieving unstructured data objects using a RESTful API for both OpenStack services and instances running on the cloud.)

  • Ceilometer - Telemetry

    (It is responsible for the metering and billing of services used. Also, it is used to generate alarms when a certain threshold is exceeded.)

  • Heat - Orchestration

    (It is used for on-demand service provisioning with auto-scaling of cloud resources. It works in coordination with the ceilometer.)

What is Packstack?

  • Packstack is an OpenStack deployment tool intended to install Proof of Concept small environments quickly and easily.

    [not recommended for Industry level]

Prerequisite:

  • For ISO image (CentOS-8)--->Google--->CentOS 8 iso download--->

    https://www.centos.org/download/

    (It will take some time for downloading an ISO image)

  • Prior knowledge of vm installation(LINUX)

  • Machine prerequisite-

    • Minimum 6GB RAM

    • 2 VCPUS

    • 50 GB Disk space

    • Virtualization(VT) must be enabled during VM installation

Steps of Installation:

  1. Install VMware workstation software to create a virtual machine(VM)

  2. Click on Vmware icons and create a virtual machine as per the required hardware configuration.

  3. Connect ISO image for OS Installation and power on the machine.

  4. Enable VT in BIOS.Virtualization(VT) must be enabled during VM installation.

Installation is in progress, it will take some time

Machine is ready

Step 1. We have to check internet connectivity because we access the repository online.

Step2. Set hostname and IP

-network-scripts is deprecated and not installed by default, so needs to be installed explicitly.

$ sudo dnf install network-scripts -y

Disable firewalld and NetworkManager

$ sudo systemctl disable firewalld
$ sudo systemctl stop firewalld
$ sudo systemctl status firewalld
$ sudo systemctl disable NetworkManager
$ sudo systemctl stop NetworkManager

$ sudo systemctl enable network
$ sudo systemctl start network

check internet connectivity

Go to - https://www.rdoproject.org/install/packstack/

and choose Centos 8 and follow the commands:

$ sudo dnf update -y

$ ls /etc/yum.repos.d/

(for checking the repositories)

Enable PowerTools

$ sudo dnf config-manager --enable powertools

$ sudo dnf install -y centos-release-openstack-victoria (# Replace victoria with the desired release name.)

again update

$ sudo dnf update -y

$ sudo dnf install -y openstack-packstack

create keypair also,

$ grep COMPUTE /root/answers.txt

$ grep CONTROLLER /root/answers.txt

(Just checkout All services are hosted on the same node)

$ packstack --answer-file /root/answers.txt

(we generate answer file and make some changes according to the need. In this file we have to see all services are listed, change as per need which service you want and set root password also)

Installation completed successfully.

Put the URL in the Browser and get OPENSTACK DASHBOARD(GUI)

On Terminal,

We get the keystonerc_admin file

A catalog lists shows OpenStack services .

Thanks for reading!!

Hope it will be helpful blog for those who are wanted to more practicing OpenStack on their own setup.

References:

https://www.redhat.com/en/topics/openstack

https://www.rdoproject.org/install/packstack

https://www.golinuxcloud.com/openstack-installation-packstack-centos-linux

https://docs.openstack.org/

https://ubuntu.com/openstack/what-is-openstack