OpenStack is a cloud computing project to provide an infrastructure as a service (IaaS). It is free open source software released under the terms of the Apache License. You can install it using devstack, which is great if you are just starting and simply want to install, get a look and feel of it. However, if you wish to be a cloud ninja finding what is openstack all about, installing and configuring it manually would be a good bet. This guide not only help you install openstack but to explain how various components hooked together builds your cloud.
Once installed most of the things like creating/terminating instances, adding keypairs, managing security groups etc can be done using the web interface, but since I am a command line junkie just as you are, I am gonna use command line to create and destroy most of the things in this cloud. This will help find whats all happening behind the scenes and troubleshoot any issues faster.
Openstack consists of the following components. The latest stable release is named Grizzly.
I am going to install each one separately and will go in depth pulling some neat command line management tricks.
Turn on your cloud install openstack introduction
We will use two machines for our cloud, one will act as controller and the other one is compute. The compute node is the one on which we will run all the instances (Nova), the controller node will keep and run all other components. As you start growing you may scale out and run different components across multiple physical machines.
Both machines are running Ubuntu 12.04 server.
Before we start installing various components the following has to be performed on both the machines.
Add grizzly repo
sudo apt-get install ubuntu-cloud-keyring
echo "deb http://ubuntu-cloud.archive.canonical.com/ubuntu precise-updates/grizzly main" | sudo tee -a /etc/apt/sources.list.d/grizzly.list
sudo apt-get update
Install ntp on the machines.
sudo apt-get install ntp
We will start installing keystone next which is one of the key components of openstack (you know now why they named it key-stone).