Introduction to DevStack:
DevStack : An OpenStack program created by Rackspace Cloud Builders.
OpenStack, a cloud-computing project, aims to provide the open source cloud computing platform for public and private clouds. OpenStack project is provided under the Apache 2.0 license. Openstack.org is powered by Rackspace Cloud Computing. The DevStack is the best way to get started with OpenStack. Because OpenStack setup and configurations are damn complicated !
For those wanting to set up a flexible dev/test environment that can support multiple networking modes and have multiple deployment options, DevStack is the better choice. It has a higher skill requirement, but in the process of installing and deploying with DevStack, you’ll learn how OpenStack daemons work and gain knowledge on how to customize the deployment. DevStack is better at preparing OpenStack installers for building and managing OpenStack Clouds with varying configurations.
Step 1 :Select a Linux Distribution
Only Ubuntu 12.04 (Precise), Fedora 20 and CentOS/RHEL 6.5 are recommended . OpenStack also runs on other flavors of Linux such as OpenSUSE and Debian.
Step 2 :Install Selected OS
In order to correctly install all the dependencies, we assume a specific minimal version of the supported distributions to make it as easy as possible. We recommend using a minimal install of Ubuntu or Fedora server in a VM.
apt-get update || yum update -y
apt-get install -qqy git || yum install -y git
Step 3: Download DevStack
git clone https://github.com/openstack-dev/devstack.git
Step 4: Configure and Set up your localrc file:
While optional, we recommend a minimal configuration be set up as you may not want our default values for everything.
The localrc file is configuration file that the devstack script uses. If this file is not available in package, then create your own localrc file. Here is the sample localrc file
ubuntu:/opt/devstack# cat localrc
DATABASE_PASSWORD=password
RABBIT_PASSWORD=password
SERVICE_TOKEN=password
SERVICE_PASSWORD=password
ADMIN_PASSWORD=password
FLOATING_RANGE=192.168.10.0/27
FLAT_INTERFACE=eth0
LOGFILE=/home/stack/stack.sh.log
Q_FLOATING_ALLOCATION_POOL=start=192.168.10.10,end=192.168.10.20
PUBLIC_NETWORK_GATEWAY=192.168.10.1
disable_service n-net
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-l3
enable_service q-meta
enable_service neutron
# Optional, to enable tempest configuration as part of devstack
enable_service tempest
---------------------------------------------------------------------------------------------
Step 5: Switch to Havana Branch:
root@ubuntu:/opt/devstack# git checkout stable/havana
Branch stable/havana set up to track remote branch stable/havana from origin.
Switched to a new branch 'stable/havana'
root@ubuntu:/opt/devstack#
------------------------------------------------------------------
Step 6:Start the install
cd devstack; ./stack.sh
.
.
.
.
.
.
Horizon is now available at http://9.124.45.203/
Keystone is serving at http://9.124.45.203:5000/v2.0/
Examples on using novaclient command line is in exercise.sh
The default users are: admin and demo ================>Login User
The password: password
This is your host ip: 9.124.45.203
stack.sh completed in 375 seconds.
stack@ubuntu:/opt/devstack$
It takes 30 minutes to an hour for complete installation- depending on your network speed. Please check the logs for any failures.Make a note of URL and user details to login to Horizon Dashboard as shown above.
-------------------------------------------------------------
Step 7: Now you need to set the openStack variables like OS_USERNAME, OS_PASSWORD etc
source .openrc
---------------------------------------------------------------
Step 8: Check basic nova commands form CLI
DevStack : An OpenStack program created by Rackspace Cloud Builders.
OpenStack, a cloud-computing project, aims to provide the open source cloud computing platform for public and private clouds. OpenStack project is provided under the Apache 2.0 license. Openstack.org is powered by Rackspace Cloud Computing. The DevStack is the best way to get started with OpenStack. Because OpenStack setup and configurations are damn complicated !
For those wanting to set up a flexible dev/test environment that can support multiple networking modes and have multiple deployment options, DevStack is the better choice. It has a higher skill requirement, but in the process of installing and deploying with DevStack, you’ll learn how OpenStack daemons work and gain knowledge on how to customize the deployment. DevStack is better at preparing OpenStack installers for building and managing OpenStack Clouds with varying configurations.
Step 1 :Select a Linux Distribution
Only Ubuntu 12.04 (Precise), Fedora 20 and CentOS/RHEL 6.5 are recommended . OpenStack also runs on other flavors of Linux such as OpenSUSE and Debian.
Step 2 :Install Selected OS
In order to correctly install all the dependencies, we assume a specific minimal version of the supported distributions to make it as easy as possible. We recommend using a minimal install of Ubuntu or Fedora server in a VM.
apt-get update || yum update -y
apt-get install -qqy git || yum install -y git
Step 3: Download DevStack
git clone https://github.com/openstack-dev/devstack.git
Step 4: Configure and Set up your localrc file:
While optional, we recommend a minimal configuration be set up as you may not want our default values for everything.
The localrc file is configuration file that the devstack script uses. If this file is not available in package, then create your own localrc file. Here is the sample localrc file
ubuntu:/opt/devstack# cat localrc
DATABASE_PASSWORD=password
RABBIT_PASSWORD=password
SERVICE_TOKEN=password
SERVICE_PASSWORD=password
ADMIN_PASSWORD=password
FLOATING_RANGE=192.168.10.0/27
FLAT_INTERFACE=eth0
LOGFILE=/home/stack/stack.sh.log
Q_FLOATING_ALLOCATION_POOL=start=192.168.10.10,end=192.168.10.20
PUBLIC_NETWORK_GATEWAY=192.168.10.1
disable_service n-net
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-l3
enable_service q-meta
enable_service neutron
# Optional, to enable tempest configuration as part of devstack
enable_service tempest
---------------------------------------------------------------------------------------------
Step 5: Switch to Havana Branch:
root@ubuntu:/opt/devstack# git checkout stable/havana
Branch stable/havana set up to track remote branch stable/havana from origin.
Switched to a new branch 'stable/havana'
root@ubuntu:/opt/devstack#
------------------------------------------------------------------
Step 6:Start the install
cd devstack; ./stack.sh
.
.
.
.
.
.
Horizon is now available at http://9.124.45.203/
Keystone is serving at http://9.124.45.203:5000/v2.0/
Examples on using novaclient command line is in exercise.sh
The default users are: admin and demo ================>Login User
The password: password
This is your host ip: 9.124.45.203
stack.sh completed in 375 seconds.
stack@ubuntu:/opt/devstack$
It takes 30 minutes to an hour for complete installation- depending on your network speed. Please check the logs for any failures.Make a note of URL and user details to login to Horizon Dashboard as shown above.
-------------------------------------------------------------
Step 7: Now you need to set the openStack variables like OS_USERNAME, OS_PASSWORD etc
source .openrc
---------------------------------------------------------------
Step 8: Check basic nova commands form CLI