Here’s how to deploy DevStack for OpenStack Icehouse 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.
The services deployed from following the instructions here are:
- Identity (Keystone)
- Compute (Nova)
- Network (Neutron)
- Object Storage (Swift)
- Image (Glance)
- Block Storage (Cinder)
- Orchestration (Heat)
- Databases (Trove)
- Dashboard (Horizon)
If you don’t have a Rackspace Cloud account, I recommend using the Developer Discount to try this out.
- Go to the Cloud Control Panel
- Click Create Server 1. Name: devstack 2. Image: Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM) 3. Flavor: Performance 1 > 4GB Performance (you might get away with 2 GB)
- Click Create Server and note the password and IPv4 address (when it appears)
- 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/icehouse 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/icehouse devstack/
9.cd devstack/
10.vim local.conf
# copy in the contents of the one below 11../stack.sh
- To work with OpenStack via the web browser:
1. Go to http://my.ip.v4.address
- User Name: demo
- Password: devstack
- See the Getting Started Guide.
- To work with OpenStack via the command line:
1.
source /opt/stack/python-novaclient/tools/nova.bash_completion
2.source openrc demo demo
3.nova image-list
4. See the Getting Started Guide. - 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
2. See the Getting Started Guide and the Complete Reference. - To work with OpenStack via a programming language: 1. Java: See the Getting Started Guide for Apache jclouds 2. Node.js: See the Getting Started Guide for pkgcloud 3. Ruby: See the Getting Started Guide for Fog
- To access your DevStack screen session:
1.
sudo chmod o+rwx /dev/pts/0
2.screen -r stack
3. See the Quick Reference.
Coda
If you run into problems, please let me know. Happy DevStacking!