Hey Folks ! In this blog we will see about OpenStack – Introduction and It’s Installation . Apart from that we will see what is openstack and how it works .
OpenStack is an open supply platform that makes use of pooled digital assets to construct and manipulate personal and public clouds. The equipment that incorporate the OpenStack platform, called “initiatives,”. It cope with the centre cloud-computing offerings of compute, networking, storage, identity, and photo offerings.
In virtualisation, assets together with storage, CPU, and RAM are abstract from a whole lot of vendor-precise packages. It also cut up with the aid of using a hypervisor earlier than being gave as per need. OpenStack makes use of a regular set of software programming interfaces (APIs) to summary the ones digital assets.
Dev stack a chain of extensible scripts, that’s use to installation an OpenStack surroundings with ease. It used a lot, because it offers an interactive surroundings for improvement with OpenStack.
How does OpenStack work?
OpenStack a sequence of instructions called scripts. These scripts wrap into applications known as tasks that create cloud environments. In order to create the ones environments.
It is rely on 2 different varieties of software:
- Virtualisation that creates a layer of digital assets abstracted from hardware .
- A base working system (OS) that incorporates out instructions given through OpenStack scripts.
OpenStack is based on a modular architecture. There are six primary OpenStack components that handle compute, network and storage functions for on-demand VM provisioning. They are as follows:
NOVA – Nova a full management and access tool to OpenStack compute resources—handling scheduling, creation, and deletion for instance scheduling .
GLANCE – Glance is an image service, responsible for uploading, managing and retrieving cloud images for instances running on OpenStack.
NEUTRON – Neutron provides network connectivity between OpenStack instances, enabling multi-VM deployments.
CINDER – Cinder is a storage component that is responsible for provisioning, management and termination of persistent block devices.
SWIFT – 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.
KEYSTONE – Keystone serves as an identity service, providing authentication and authorisation functions for the users in order to enable multi-tenancy.
- Ubuntu OS
- A minimum of 4 GB RAM
- Multi-core enabled processor
- 10GB of free hard disk space
- A good internet connection
- Web Browser
Let’s now see OpenStack – Introduction and It’s Installation on Ubuntu with Dev Stack step by step:
Step 1: Updating The System
Before we start off, we need to ensure that our system must be update. for that run the command:
sudo apt-get update && sudo apt-get upgrade -y
Step 2: Creating stack user with Sudo privileges
first create a new user name stack for our system to setup OpenStack, as it should be install on a non-root user with sudo enable.
Open a terminal, and run the useradd command:
sudo useradd -s /bin/bash -d /opt/stack -m stack
You also need to enable stack user to have root privileges and run without a password, for that run:
echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/stack
Once you have created the stack user, it’s time to log in to it using the following command:
sudo su - stack
Step 3: Downloading Devstack
For this step, we considered you already git installed on your system. Now, enter this command to download/clone devstack from its repository to your system:
git clone https://opendev.org/openstack/devstack
Step 4: Creating configuration (.conf) file for Devstack
Now, we have downloaded DevStack and need to setup our configuration files for it.
You need to first navigate to the devstack folder, by running:
Afterwards, create a local.conf file, by running:
and paste the following content –
[[local|localr]] ADMIN_PASSWORD=StrongAdminSecret DATABASE_PASSWORD=$ADMIN_PASSWOCinder RABBIT_PASSWORD=$ADMIN_PASSWORD SERVICE_PASSWORD=$ADMIN_PASSWORD
Step 5: Installing Openstack with Devstack
Now, as we have setup the configuration files properly.
Let’s run the script to setup OpenStack on our system, using the following command:
The script will install the listed features for your OpenStack environment –
- Horizon – OpenStack Dashboard
- Keystone – Identity Service
- Nova – Compute Service
- Glance – Image Service
- Neutron – Network Service
- Placement – Placement API
- Cinder – Block Storage Service
The setup will take around 20 to 30 minutes, depend on your system performance and internet speed, as many git trees and packages get install during the process.
After your installation successfully finishes, your terminal will look like the image below.
Step 6: Accessing OpenStack using a web browser
Browse this URL on your browser –
http://server-ip/dashboard OR http://localhost/dashboard
It will open up the OpenStack login page, as shown below.
Now, enter the credentials. You can also log in as admin here, by having User Name as admin & for Password using the one we added to local.conf file.
After logging in, your dashboard will look similar to this.
Step 7: Yes we have successfully Installed OpenStack .
In this article, we learned Openstack – Introduction And It’s Installation along with Devstack are and went through the entire process to install Openstack on Ubuntu with Devstack on Ubuntu on our own. Also, make sure to be cautious while entering configurations, as everything on the stack user is running with root privileges.