Install and setup DevStack on Linux

Step 1:

Take a fresh/new Linux machine/virtual machine.

Step 2:

Install  ‘git’ on that machine.  (sudo apt-get install git)

Step 3:

Download/clone DevStack using git.

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

Step 4:

You will found a ‘devstack’ directory.

Go to that directory.(cd devstack)

You will find a file ‘stackrc’.

Do following changes in that file.

you will find  a line -GIT_BASE=${GIT_BASE:-git://git.openstack.org}’

line number may 169(may variable).

Remove/comment out this line.

Insert the line – ‘GIT_BASE=${GIT_BASE:-https://www.github.com}’

 

Step 5:

Copy the file local.conf from ‘devstack/samples’ directory to ‘devstack’ directory and remove the rest contents and put only the following lines in it :

[[local|localrc]]

 

ENABLED_SERVICES+=,q-svc,q-agt,q-dhcp,q-l3,q-meta,neutron

ENABLED_SERVICES+=,heat,h-api,h-api-cfn,h-api-cw,h-eng

LOGFILE=/opt/stack/logs/stack.sh.log

VERBOSE=True

LOG_COLOR=True

SCREEN_LOGDIR=/opt/stack/logs

 

Step 6:

Run stack.sh(cd devstack and ./stack.sh with non sudo user (strictly))

./stack.sh will ask you for password 5-6 times.

Provide the same password all the time.

It will take around 30-45 mins to run the script.

Step 7:

After successful installation at the end, it will show you following

4 important things.

host ip, Horizon’s (devstack’s dashboard) ip address ,default users,password.

Save those things , those will be require in future to run any devstack commands.

 

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s