Deploy Openstack on ubuntu 20.04

Openstack

How to deploy openstack on ubuntu 20.04, A complete guide;



In this article, we’ll learn how to install OpenStack on Ubuntu with the use of DevStack. 

OpenStack is a cloud computing infrastructure (IaaS) that helps in controlling large pools of computation power, storage, and networking resources throughout a datacenter. It does so with help of APIs. In short, OpenStack helps in building and managing Public and Private Clouds, by using pooled virtual resources.

Devstack is a series of extensible scripts, which is used to set up an OpenStack environment with ease. It is used alot, as it gives an interactive environment for development with OpenStack.
We will learn how to set up OpenStack on our Ubuntu system with help of Devstack.

There are a few basic pre-requisites you need to fulfill, before setting up OpenStack on your system.
    Ubuntu OS
    A minimum of 4 GB RAM
    Multi-core enabled processor
    At least 10GB of free hard disk space
    A good internet connection
There are some additional software requirements also, which you need to fulfill.
    Git 
    A web browser

Step 1: Preparing the system

sudo apt-get update && sudo apt-get upgrade -y

Step 2: Creating stack user with Sudo privileges

sudo useradd -s /bin/bash -d /opt/stack -m stack
echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/stack
sudo su - stack

Step 3: Downloading Devstack

git clone https://opendev.org/openstack/devstack

Step 4: Creating configuration (.conf) file for Devstack

cd devstack
vim local.conf

paste the following content

[[local|localr]]

ADMIN_PASSWORD=stack
DATABASE_PASSWORD=$ADMIN_PASSWOCinder
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
Here you can choose any password you want. 


Step 5: Installing Openstack with Devstack


./stack.sh

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 10 to 20 minutes, based on your system performance and internet speed, as many git trees and packages are installed during the process.

After everything gets successfully install, go to your browser and enter  yourIP/dashboard. You will be asked for username and password. Here in my case the usename is Admin and password is stack. 


Enjoy the opensource journey. 

Comments