utorok 1. novembra 2016

Devstack installation on VMware Workstation

Devstack installation on VMware Workstation - the easy way to get your Openstack running in 2000 seconds

While working on installing instance of Openstack for developers I thought I will share some of my notes I've put together throughout the installation. While the setup is quite trivial it required some trial and error for two days.

Installing Devstack on ubuntu 16.04

add cdrom to apt
add user stack


usermod -aG sudo stack
usermod -aG sudo vittok

3.) download python-pip and fix issues with python pip

sudo apt-get install python-pip
sudo pip install --upgrade pip

fix python error 503 upfront or you will run into issue as I did http://en.enisozgen.com/general-pip-problems-while-installing-devstack/

sudo python get-pip.py
sudo pip install -U os-testr

4.) Download devstack http://docs.openstack.org/developer/devstack/#create-a-local-conf

5.) Create local.conf file but you don't have to you'll be prompted by the script throughout the process


6.) Change access to devstack directory

Chmod -R 777 ./devstack/

Don't forget to mount ubuntu cdrom before you launch installation
Make sure you have enough resources available (disk space and memory) you may run out of both while script is running. There are some irreversible changes done to the OS so if stack.sh crashes you may need to revert back to snapshot.

Create snapshot

Run ./stack.sh

Once finished you should get http://yourhost/dashboard up and running.
Devstack creates some preconfigured instances for you to start
Two default users are created - 'admin' and 'demo' with passwords entered during the script runtime.