RSS

DevStack Havana on the Rackspace Cloud

18 Dec

Cloud InceptionHere’s how to deploy DevStack for OpenStack Havana including Neutron (Network) and Swift (Object Storage) on the Rackspace Cloud. You can use DevStack for testing/development of OpenStack or just learning a bit more about OpenStack and how all of the pieces fit together.

If you don’t have a Rackspace Cloud account, I recommend using the Developer Discount to try this out.

  1. Go to the Cloud Control Panel
  2. Click Create Server
    1. Name: devstack-havana
    2. Image: Ubuntu 12.04 LTS
    3. Flavor: Performance 1 > 4GB Performance (you could probably get away with 2 GB)
  3. Click Create Server and note the password and IPv4 address (when it appears)
  4. When your server is Active, switch to a Terminal and run the following commands:
    1. ssh root@my.ip.v4.address
    2. apt-get -y update
    3. apt-get -y install git vim
    4. git clone https://github.com/openstack-dev/devstack.git -b stable/havana devstack/
    5. devstack/tools/create-stack-user.sh
    6. su stack
    7. cd
    8. git clone https://github.com/openstack-dev/devstack.git -b stable/havana devstack/
    9. cd devstack/
    10. vim localrc # copy in the contents of the one below
    11. ./stack.sh
  5. To access your DevStack screen session:
    1. sudo chmod o+rwx /dev/pts/0
    2. screen -r stack
  6. To work with OpenStack via the API:
    1. curl -s -X POST http://my.ip.v4.address:5000/v2.0/tokens -d '{"auth": {"passwordCredentials": {"username":"demo", "password":"devstack"}, "tenantName":"demo"}}' -H "Content-type: application/json" | python -m json.tool
  7. To work with OpenStack Nova (Compute) via the command line:
    1. source /opt/stack/python-novaclient/tools/nova.bash_completion
    2. source openrc demo demo
    3. nova image-list
  8. To work with OpenStack via the web browser:
    1. Go to http://my.ip.v4.address
    2. User Name: demo
    3. Password: devstack

Coda

Happy DevStacking!

 
2 Comments

Posted by on December 18, 2013 in devstack, openstack, rackspace

 

2 responses to “DevStack Havana on the Rackspace Cloud

  1. Diane Fleming

    December 19, 2013 at 3:21 pm

    Everett, thanks for this! I couldn’t get devstack havana up and running, but now I’ve got a working environment. Thanks for taking the time to write up these instructions. diane

     
  2. Chandan Kumar

    December 30, 2013 at 6:11 am

    I have followed the steps to try devstack, but i has failed but by modifying localrc file i have deployed it finally. Please update the localrc https://gist.github.com/chandankumar1/8181381 and other steps are fine. Thank you for the blog.

     

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

 
Follow

Get every new post delivered to your Inbox.

%d bloggers like this: