For anyone getting started with OpenStack, the best way is to start OpenStack development is with DevStack which provides a series of extensible and customizable scripts and can be used to bring a complete OpenStack development environment from git master.
This tutorial will take you through all the steps needed for setting up DevStack on your system. It should however be noted (and this warning comes straight from DevStack’s own documentation) that DevStack makes a considerable amount of changes to the system on which it is installed. Therefore, it is generally preferred and recommended that DevStack only be installed on servers or VMs which are dedicated for this purpose.
These following steps will allow us to set up an environment of DevStack for OpenStack development:
1- In order to ensure a smooth installation process, start with a fresh Linux Server installation. While DevStack supports Ubuntu, CentOS, Fedora, Debian and OpenSUSE, Ubuntu is the most tested variant of Linux and will probably be the smoothest.
2- Update your system using following command in the terminal:
“sudo apt-get update”
3- Git must first be installed before you can clone the DevStack’s repository. Do that by typing following command:
“sudo apt-get install git-core”
4- Install ant package for Linux:
“sudo apt-get install ant”
5- Install build-essential package for Linux:
“sudo apt-get install build-essential”
6- Install pkg-config package:
“sudo apt-get install pkg-config”
7- Install linux kernel headers:
“sudo apt-get install linux-headers-3.2.0-35-virtual”
8- Clone your system with devstack git repository:
“git clone https://git.openstack.org/openstack-dev/devstack “
9- Once DevStack has been cloned, change the directory by moving into the DevStack Directory:
10- Make a file named as “local.conf” in devstack directory. Paste the following code in the file.
“Note: edit the values according to your Network settings.”
# Enabled Services
# Neutron – OVS, VxLAN, and ML2
10- Now, move to devstack directory and start the stack:
It will generally take around 2-3 hours depending on your Internet connection for DevStack to be downloaded and installed on your system. Once it’s completed, you can begin your OpenStack development and start contributing as well!
Please leave a comment if you have any issues!