Monday 2 June 2014

Starting With OpenStack : Devstack

Starting With OpenStack : Devstack


This is my first post. When I started my work on OpenStack I was really not aware of concepts like virtualization and cloud. We will see how to get quick started with OpenStack. I started my work on OpenStack with the same thing. Probably this might be useful for people like me who are newbies.

1. Install Ubuntu 12.04.3 LTS server
    create user other than root, and install openssh server.   
2.  Upgrade the system
               sudo apt-get upgrade
3. Install git
              sudo apt-get install git
 
4. Clone devstack
              cd ~
              git clone https://github.com/openstack-dev/devstack.git
 
5. Make sure we're using stable devstack and OpenStack services.
             cd devstack
             git checkout --track origin/stable/havana
 
6. Create localrc
            nano localrc # + paste contents from the file below
 
Edit Localrc before running ./stack.sh
# Enable Neutron which is required by Ironic and disable nova-network.
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
 
# You can replace "password" with your own one.
ADMIN_PASSWORD=password
MYSQL_PASSWORD=password
RABBIT_PASSWORD=password
SERVICE_PASSWORD=password
SERVICE_TOKEN=password
#If you want to install ceilometer paste following lines
          enable_service ceilometer-acompute ceilometer-acentral ceilometer-collector ceilometer-api
7. Run devstack
           ./stack.sh
we need to execute "./stack.sh" command as a user other than root, preferably the user should be created with script already present is devstack folder (this creates a user called "stack"). If the root user executes "./stack.sh”, the installation will abort.
After the DevStack is installed successfully , probably we need to start the devstack services ,which requires "rejoin-stack.sh " script to be executed .
"rejoin-stack.sh" script attempts to start all the services (that were earlier installed using the stack.sh).
Ceilometer API now requires Mongodb >=2.2 so the API doesn't start on devstack. Please refer the Blog for the issue https://bugs.launchpad.net/devstack/+bug/1211236
please follow procedure mentioned the link to install the mongoDB 2,6
http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/
And You are done !! yes
In the next post I will tell you how I installed multi node setup of OpenStack .
Cheers,
Shalmali   smiley

No comments:

Post a Comment