Deploying a small OpenStack test environment using Crowbar
From DTO Labs Knowledge Base
Contents |
Introduction
This tutorial describes how to get a small OpenStack environment up and running for testing purposes inside Crowbar.
Requirements
- A running crowbar system. See [here] for more details.
- You should be on a recent Crowbar with the newer UI. The build should be no older than Sep 27 2011
- 8GB Ram in your virtual environment (You might be able to get away with 4 if you're doing nothing else)
- For debugging and following along with what Crowbar's up to, log into your crowbar server and tail the Rails logfile:
tail -f /opt/dell/bin/crowbar_framework/log/production.log
Note: If you're in development mode, tail the dev log.
Steps
- Start up your crowbar node, and clear out all clients and nodes.
- Spin up a new node.
- Click on Barclamps -> Mysql -> Create Proposal (Feel free to give this a different name.)
- Make sure your new node is set as the 'MySQL Server' and Apply it
- Wait until the server is running.
- Click on Barclamps -> Glance -> Create Proposal
- Spin up your second node. Give this one 2GB Ram
- Once that node is up, go into your prior MySQL proposal and add your new node as a mysql client and apply.
- Create a Proposal for Nova.
- Put your new node in Nova-Single-Machine, with no other nodes in any other role.
- If you're running in a virtual environment, set your libvirt_type to 'qemu'
- Apply the barclamp.
Congratulations, you now have a running, working deployment of OpenStack.
Bigger install:
5 nodes - allocate OS to each node
- Prob mysql pre-first
- Glance on node 1 first
- Nova
- Master on node 1
- multi-compute on 2 other nodes
- Nova-dashboard on node 1
- Keystone on node 1 (Dashboard doesn't work without it)
- Nova Dashboard
- Keystone
Troubleshooting
- Check the nodes inside the Crowbar ui. Your MySQL/Glance server should have the appropriate roles applied. If there is no glance server, Nova won't install.
- Clean nodes are important. If you're installing over older nodes, make sure they're completely wiped clean. Delete all prior proposals and node data in both Crowbar and Chef Server.
- The Mysql-client role via the barclamp should provide a node attribute 'mysql-server'.If you're having trouble with this being generated, you can create the attribute directly on the node in chef. The value should be the address of your mysql-server node.