Skip to content
debashish216 edited this page Mar 7, 2017 · 1 revision

Openstack Development Environment (devstack) Set up in Ubuntu 16.04 Xenial

Environment Architecture and System Configuration

Setting up devstack

  1. Install git
sudo apt-get install git
  • Clone the library for "devstack".
git clone https://git.openstack.org/openstack-dev/devstack -b stable/newton
  • Modify the configuration file.
cd devstack/
cd samples/
cp local.conf ../
cd ..
sudo apt-get install vim
vim local.conf 
  • Change permission to some folders.
sudo chown stack: /home/stack/.cache
sudo chown -R stack:stack devstack
sudo chown -R stack:stack /opt/stack/
  • Run below file in "devstack" directory. This instruction will take some time (~ 40 minutes) to complete the installation.
./stack.sh 
  • After a successful setup, a message like below will appear which marks the end of the "devstack" controller node deployment.
This is your host IP address: 192.168.130.197
This is your host IPv6 address: fe80::8a28:e90a:e3a8:ec90
Horizon is now available at http://192.168.130.197/dashboard
Keystone is serving at http://192.168.130.197/identity/
The default users are: admin and demo
The password: pwd
  • Congratulations ! Now you have deployed your controller node in openstack environment.

Accessing the openstack CLI

  • Navigate to devstack dashboard -> Project -> Access & Security -> API Access -> Download OpenStack RC File v2.0. Save this to your local machine and copy to the devstack folder.
sudo cp /home/controller/Desktop/admin-openrc.sh devstack/
. admin-openrc.sh
  • Try accessing the CLI. If it lists the devstack services, then the CLI access if fine.
openstack version
openstack catalog list

Addition of a Compute Node

sudo apt-get install nova-compute sysfsutils
sudo su
cd /etc/nova/
vim nova.conf
service nova-compute restart
systemctl status nova-compute.service
service openstack-nova-compute status

Known Issues and Solutions

Command Problem

export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/sbin

If the ubuntu apt-get update stuck: Connecting to security.ubuntu.com. Add the following lines at the bottom of /etc/sysctl.conf. After that run sudo sysctl -p to reload the /etc/sysctl.conf settings.

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

Thank You!

Clone this wiki locally