One of the simplest methods to install OpenStack on Ubuntu Server is through DevStack. DevStack is a set of scripts used to create a complete OpenStack environment based on the latest version.
While it is the easiest solution, installing OpenStack on Ubuntu Server with DevStack also takes some time, approximately 30-60 minutes. Refer to the following Mytour article for a step-by-step guide on installing OpenStack on Ubuntu Server using DevStack.
Please note that in this guide, Mytour performs the steps on Ubuntu Server 16.04; however, you can execute them on any Ubuntu server platform.
Installing OpenStack on Ubuntu Server with DevStack
The first step to install OpenStack on Ubuntu Server with DevStack is to create a non-root user account. Then, use this account to install OpenStack. Open a Terminal window and enter the following command:
sudo useradd -s /bin/bash -d /opt/stack -m stack
Use the command below to grant sudo privileges to the user:
echo 'stack ALL=(ALL) NOPASSWD: ALL' | sudo tee /etc/sudoers.d/stack
Switch to the user you just created with the following command:
sudo su - stack
Next, check DevStack from Github. First, install git using the command:
sudo apt install git
Now you can inspect DevStack (using the latest stable version) with the command:
git clone https://github.com/openstack-dev/devstack.git -b stable/queens devstack/
This action generates a new directory named devstack. Navigate into this directory using the command cd devstack.
The above command creates a new folder called devstack. Change directories using the command cd devstack.
Before executing the installation command, you need to configure the local.conf file. Open the local.conf file using the command nano local.conf. Then, copy and paste the following code:
HOST_IP=SERVER_IP
SERVICE_PASSWORD=PASSWORD
ADMIN_PASSWORD=PASSWORD
SERVICE_TOKEN=PASSWORD
DATABASE_PASSWORD=PASSWORD
RABBIT_PASSWORD=PASSWORD
ENABLE_HTTPD_MOD_WSGI_SERVICES=True
KEYSTONE_USE_MOD_WSGI=True
# Logging
LOGFILE=$DEST/logs/stack.sh.log
VERBOSE=True
ENABLE_DEBUG_LOG_LEVEL=True
ENABLE_VERBOSE_LOG_LEVEL=True
GIT_BASE=${GIT_BASE:-git://git.openstack.org}
TACKER_MODE=standalone
USE_BARBICAN=True
TACKER_BRANCH=
Activate the networking-sfc plugin with the command:
Activate the barbican plugin with the command:
Activate the mistral plugin with the command:
Activate the tacker plugin with the command:
Note that in the code snippet above, replace PASSWORD with a unique password of your choice, and SERVER_IP with the IP address of the OpenStack server. After completing, save and close the file.
The next step now is to execute the command to install OpenStack. Use the command ./stack.sh for installation. The installation process will take approximately 30-60 minutes to complete.
Login
After the installation process is complete, open any web browser on the same network as the OpenStack server, access the http://SERVER_IP/dashboard page (where SERVER_IP is the IP address of the OpenStack server). The login window will appear as shown below. Enter the Admin username and the password you configured in the local.conf file.
Now you can manage configurations, create new projects, and administer users as well as groups.
Thus, Mytour has just guided you on how to install OpenStack on Ubuntu Server using DevStack. Although this method takes a little time, it is simpler than manually installing OpenStack. Additionally, you can explore how to install Microsoft SQL Server on Ubuntu to set up a database management system on the Ubuntu platform. Good luck with your endeavors.