This wiki describes all the steps necessary to setup a testbed of [http://www.openstack.org/software/folsom/ Openstack Folsom] nodes (All-in-one node and Compute nodes), which rely on a [http://lisp.cisco.com/ LISP-enabled] [http://openvswitch.org/ OpenVSwitch (OVS)] bridge.

-

<pre>

-

cisco ("public") Network

-

----+----------------------+-----

-

| |

-

+--------+--------+ +-------+--------+

-

| All-In-One Node | | Compute Node |

-

| | | |

-

| | | |

-

| Nova | | Nova -agent |

-

| Keystone | | Nova-compute |

-

| Glance | | Nova-Network |

-

| Nova-Network | +----------------+

-

| Cinder |

-

| Horizon |

-

+-----------------+

-

</pre>

-

-

__TOC__

-

-

-

= Testbed Setup =

-

-

== Dependencies ==

-

-

The Openstack nodes are considered hereafter to be [http://releases.ubuntu.com/precise/ Ubuntu 12.04.1 LTS (Precise Pangolin)] machines (running the 3.2.0-29 kernel version).

Additionally, you will have to download one more script for setting up the OVS-bridge and attaching the vnetX ports of the instantiated VMs, the lispd.conf control plane configuration file of LISP and a few cloud qcow2 (Ubuntu and Fedora) images (to use in addition to the preloaded tiny [https://launchpad.net/cirros/+download CirrOS cloud guest]).

-

<pre>

-

mkdir /home/stack/Downloads

-

mv /* /home/stack/devstack/Downloads/* /home/stack/Downloads

-

</pre>

-

-

-

== All-In-One Openstack Node ==

-

-

=== localrc ===

-

Located in /home/stack/devstack/

-

<pre>

-

#HOST_NAME=$(hostname)

-

#SERVICE_HOST_NAME=lakafosi-server-1

-

SERVICE_HOST=10.10.10.10

-

HOST_IP=10.10.10.10

-

-

FIXED_RANGE=192.168.127.0/24

-

-

MULTI_HOST=True

-

SCHEDULER=nova.scheduler.simple.SimpleScheduler

-

-

Q_HOST=$SERVICE_HOST

-

MYSQL_HOST=$SERVICE_HOST

-

RABBIT_HOST=$SERVICE_HOST

-

GLANCE_HOSTPORT=$SERVICE_HOST:9292

-

KEYSTONE_AUTH_HOST=$SERVICE_HOST

-

KEYSTONE_SERVICE_HOST=$SERVICE_HOST

-

-

CINDER_BRANCH=stable/folsom

-

NOVA_BRANCH=stable/folsom

-

SWIFT_BRANCH=stable/folsom

-

GLANCE_BRANCH=stable/folsom

-

KEYSTONE_BRANCH=stable/folsom

-

HORIZON_BRANCH=stable/folsom

-

#QUANTUM_BRANCH=stable/folsom

-

-

# password

-

MYSQL_PASSWORD=mysql

-

RABBIT_PASSWORD=rabbit

-

SERVICE_TOKEN=service

-

SERVICE_PASSWORD=admin

-

ADMIN_PASSWORD=admin

-

-

# Uncomment the following line to save time by skipping checking of packages that need to be installed

-

#OFFLINE=True

-

</pre>

-

-

-

=== local.sh ===

-

This is the script run right after ''stack.sh'', i.e. the Openstack installation. It is located in /home/stack/devstack/ .

-

<pre>

-

#!/usr/bin/env bash

-

-

# Sample ``local.sh`` for user-configurable tasks to run automatically

-

# at the sucessful conclusion of ``stack.sh``.

-

-

# Keep track of the devstack directory

-

TOP_DIR=$(cd $(dirname "$0") && pwd)

-

# Import common functions

-

source $TOP_DIR/functions

-

# Use openrc + stackrc + localrc for settings

-

source $TOP_DIR/stackrc

-

# Destination path for installation ``DEST``

-

DEST=${DEST:-/opt/stack}

-

-

# lakafosi

-

for i in `seq 2 5`; do /opt/stack/nova/bin/nova-manage fixed reserve 192.168.127.$i; done