0% found this document useful (0 votes)
684 views

How To Install Openstack On Ubuntu 18.04 With Devstack - Journaldev

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
684 views

How To Install Openstack On Ubuntu 18.04 With Devstack - Journaldev

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Java Tutorial #Index Posts #Interview Questions Resources

How to Install OpenStack on Ubuntu 18.04 with DevStack Filed Under: Ubuntu
Pankaj - 7 Comments

Home » UNIX/Linux » Ubuntu » How to Install OpenStack on Ubuntu 18.04 with DevStack

Openstack is a free and opensource IaaS cloud platform that handles cloud compute, storage and network resources. It comes with an intuitive dashboard that
enables systems administrators to provide and monitor these resources.

You can seamlessly install OpenStack locally on your Ubuntu 18.04 instance for learning and testing purposes using Devstack.

Devstack is a set of extensible scripts that facilitate OpenStack deployment. In this guide, you will learn how to deploy OpenStack on Ubuntu 18.04 with
devstack.

Table of Contents [hide]

1 Minimum Requirements

2 Step 1: Update and Upgrade the System


3 Step 2: Create Stack user and assign sudo priviledge
4 Step 3: Install git and download DevStack
5 Step 4: Create devstack configuration file

6 Step 5: Install OpenStack with Devstack


7 Step 6: Accessing OpenStack on a web browser

Minimum Requirements
Before we begin, ensure you have the following minimum prerequisites

1. A fresh Ubuntu 18.04 installation


2. User with sudo privileges
3. 4 GB RAM
4. 2 vCPUs
5. Hard disk capacity of 10 GB
6. Internet connection

With the minimum requirements satisfied, we can now proceed.

Step 1: Update and Upgrade the System


To start off, log into your Ubuntu 18.04 system using SSH protocol and update & upgrade system repositories using the following command.

apt update -y && apt upgrade -y

Sample Output

Next reboot the system using the command.

sudo reboot

OR

init 6

Step 2: Create Stack user and assign sudo priviledge


Best practice demands that devstack should be run as a regular user with sudo privileges.

With that in mind, we are going to add a new user called “stack” and assign sudo privileges.

To create stack user execute

sudo adduser -s /bin/bash -d /opt/stack -m stack

Next, run the command below to assign sudo privileges to the user

echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/stack

Sample Output

Step 3: Install git and download DevStack


Once you have successfully created the user ‘stack’ and assigned sudo privileges, switch to the user using the command.

su - stack

In most Ubuntu 18.04 systems, git comes already installed. If by any chance git is missing, install it by running the following command.

sudo apt install git -y

Sample output
Using git, clone devstack’s git repository as shown.

git clone https://git.openstack.org/openstack-dev/devstack

Sample output

Step 4: Create devstack configuration file


In this step, navigate to the devstack directory.

cd devstack

Then create a local.conf configuration file.

vim local.conf

Paste the following content

[[local|localrc]]

# Password for KeyStone, Database, RabbitMQ and Service


ADMIN_PASSWORD=StrongAdminSecret
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD

# Host IP - get your Server/VM IP address from ip addr command


HOST_IP=10.208.0.10

Save and exit the text editor.

NOTE:

1. The ADMIN_PASSWORD is the password that you will use to log in to the OpenStack login page. The default username is admin.
2. The HOST_IP is your system’s IP address that is obtained by running ifconfig or ip addr commands.

Step 5: Install OpenStack with Devstack


To commence the installation of OpenStack on Ubuntu 18.04, run the script below contained in devstack directory.

./stack.sh

The following features will be installed:

Horizon – OpenStack Dashboard


Nova – Compute Service
Glance – Image Service
Neutron – Network Service
Keystone – Identity Service
Cinder – Block Storage Service
Placement – Placement API

The deployment takes about 10 to 15 minutes depending on the speed of your system and internet connection. In our case, it took roughly 12 minutes.

At the very end, you should see output similar to what we have below.

This confirms that all went well and that we can proceed to access OpenStack via a web browser.

Step 6: Accessing OpenStack on a web browser


To access OpenStack via a web browser browse your Ubuntu’s IP address as shown.

https://server-ip/dashboard

This directs you to a login page as shown.


Enter the credentials and hit “Sign In”

You should be able to see the Management console dashboard as shown below.

For more on Devstack’s customization, check out their system configuration guide.

Additionally, check out the Openstack documentation for administration guide.

Facebook Twitter WhatsApp Reddit Linkedin Email

How to set up Apache Virtual Hosts on


Linux xargs command examples
Ubuntu 18.04
PREV
NEXT

Follow Author
Pankaj
I love Open Source technologies and writing about my experience about them is my passion.

Comments

Sathish says: February 15, 2020 at 3:22 am

I got this error in installation time Ubutnu 18.04, please help me anybody
env http_proxy= https_proxy= no_proxy= PIP_FIND_LINKS= SETUPTOOLS_SYS_PATH_TECHNIQUE=rewrite
/opt/stack/requirements/.venv/bin/pip install -c /opt/stack/requirements/upper-constraints.txt -U pbr
env: ‘/opt/stack/requirements/.venv/bin/pip’: No such file or directory
+inc/python:pip_install:1 exit_trap
+./stack.sh:exit_trap:535 local r=127
++./stack.sh:exit_trap:536 jobs -p
+./stack.sh:exit_trap:536 jobs=
+./stack.sh:exit_trap:539 [[ -n ” ]]
+./stack.sh:exit_trap:545 ‘[‘ -f ” ‘]’
+./stack.sh:exit_trap:550 kill_spinner
+./stack.sh:kill_spinner:445 ‘[‘ ‘!’ -z ” ‘]’
+./stack.sh:exit_trap:552 [[ 127 -ne 0 ]]
+./stack.sh:exit_trap:553 echo ‘Error on exit’
Error on exit
+./stack.sh:exit_trap:555 type -p generate-subunit
+./stack.sh:exit_trap:556 generate-subunit 1581765591 41 fail
+./stack.sh:exit_trap:558 [[ -z /opt/stack/logs ]]
+./stack.sh:exit_trap:561 /opt/stack/devstack/tools/worlddump.py -d /opt/stack/logs
World dumping… see /opt/stack/logs/worlddump-2020-02-15-112032.txt for details
+./stack.sh:exit_trap:570 exit 127 Reply

gouthami says: February 12, 2020 at 10:31 pm

Error on exit
World dumping… see /opt/stack/logs/worlddump-2020-02-06-154209.txt for details
ebtables v1.8.3 (nf_tables): table `broute’ is incompatible, use ‘nft’ tool.

stack@HP-Z210-Workstation:~/devstack/tools$ cat /opt/stack/logs/worlddump-2020-02-06-154209.txt|grep broute
sudo ebtables -t broute -L
*** Failed to run ‘sudo ebtables -t broute -L’: Command ‘sudo ebtables -t broute -L’ returned non-zero exit status 1
Reply

Mario says: February 6, 2020 at 7:53 am

hello,
Distro ubuntu 19.10
problem is :
ack.sh failed
Error on exit
World dumping… see /opt/stack/logs/worlddump-2020-02-06-154209.txt for details
ebtables v1.8.3 (nf_tables): table `broute’ is incompatible, use ‘nft’ tool.

stack@HP-Z210-Workstation:~/devstack/tools$ cat /opt/stack/logs/worlddump-2020-02-06-154209.txt|grep broute
sudo ebtables -t broute -L
sudo ebtables -t broute -L
*** Failed to run ‘sudo ebtables -t broute -L’: Command ‘sudo ebtables -t broute -L’ returned non-zero exit status 1
help me ?
NB: apt update -y && apt upgrade -y : executed upgrade , i start directely ubuntu 19.10 desktop Reply

amar says: January 28, 2020 at 3:49 am

+./stack.sh:main:791 echo_summary ‘Installing package prerequisites’


+./stack.sh:echo_summary:452 [[ -t 3 ]]
+./stack.sh:echo_summary:452 [[ True != \T\r\u\e ]]
+./stack.sh:echo_summary:458 echo -e Installing package prerequisites
++./stack.sh:echo_summary:1 exit_trap
++./stack.sh:exit_trap:533 local r=1
+++./stack.sh:exit_trap:534 jobs -p
++./stack.sh:exit_trap:534 jobs=
++./stack.sh:exit_trap:537 [[ -n ” ]]
++./stack.sh:exit_trap:543 ‘[‘ -f ” ‘]’
++./stack.sh:exit_trap:548 kill_spinner
++./stack.sh:kill_spinner:443 ‘[‘ ‘!’ -z ” ‘]’
++./stack.sh:exit_trap:550 [[ 1 -ne 0 ]]
++./stack.sh:exit_trap:551 echo ‘Error on exit’
./stack.sh: line 551: echo: write error: Broken pipe Reply

Ricardo Mejias says: January 25, 2020 at 9:42 pm

Hello, I am installing openstack on ubuntu 18.04 and this command that su recommend do not work — sudo adduser -s /bin/bash -d /opt/stack -
m stack Reply

Pankaj says: January 26, 2020 at 4:59 am

what’s the error you are getting?


Reply

Lester Carrejo says: December 31, 2019 at 9:50 am

Step 2 should be useradd instead of adduser.


Reply

Leave a Reply
Your email address will not be published. Required fields are marked *

Comment

Name *

Email *

Post Comment

Newsletter for You

Enter your email address here... 

Most Popular Favorite Sites

JournalDev is one of the most popular websites for Java, Python, Android, and related
Java / Java EE Tutorials Java SE
technical articles. Our tutorials are regularly updated, error-free, and complete. Every
month millions of developers like you visit JournalDev to read our tutorials.
Core Java Tutorial Spring.io
JournalDev was founded by Pankaj Kumar in 2010 to share his experience and learnings
with the whole world. He loves Open source technologies and writing on JournalDev has
Python Tutorials Python.org
become his passion.

Java Interview Questions Mkyong

Core Java Interview Questions Python Tutorials

Java Design Patterns JavaString

Spring Tutorial HowLinux

GoLang Docs

© 2020 · Privacy Policy · Contact Us · About Me · Part of JournalDev IT Services Private Limited

You might also like