9
Setting up your OpenStack Havana for testing and development

Set up your own OpenStack Havana in 10 minutes

  • Upload
    mistio

  • View
    156

  • Download
    3

Embed Size (px)

DESCRIPTION

This presentation will guide you through setting up OpenStack for testing and development purposes. Supporting OpenStack was a choice we made when Mist.io was still a prototype. Back then, OpenStack was notoriously difficult to install. Fortunately things got better and better over time. Now it is much easier and streamlined. The following is not meant to be production-grade. It is just a way to quickly set up Havana, the latest version of OpenStack and configure the network and auto-assignment of IPs. The steps should be similar for any environment though.

Citation preview

Page 1: Set up your own OpenStack Havana in 10 minutes

Setting up your OpenStack Havanafor testing and development

Page 2: Set up your own OpenStack Havana in 10 minutes

Workflow

● Install OpenStack through DevStack

● Configure the network

● Configure OpenStack to auto-assign IPs

● Add OpenStack to Mist.io and launch VMs

Page 3: Set up your own OpenStack Havana in 10 minutes

Install OpenStack with DevStack

Download DevStack through gitsudo apt-get install git

git clone https://github.com/openstack-dev/devstack.git

cp samples/localrc localrc

Page 4: Set up your own OpenStack Havana in 10 minutes

Configure the network

Edit localrc and configure the network by addingHOST_IP: our public ip

FLAT_INTERFACE: The best way is to assign br100 interface to it

FLOATING_RANGE: 159.253.138.184/29

PUBLIC_INTERFACE=bond1 (this is the interface for our internal network used by OpenStack services to communicate with each other)

Page 5: Set up your own OpenStack Havana in 10 minutes

Finish the installation

Finish the OpenStack installationcd devstack; ./stack.sh

To auto assign ips from the floating ips pool we have to configure it

sudo nova-manage floating create --pool pool_auto_assign --ip_range 159.253.138.184/29

Page 6: Set up your own OpenStack Havana in 10 minutes

Automate IP assignment

Set auto_assign_floating_ip = True in nova.confdefault_floating_pool = pool_auto_assignfloating_range = 159.253.138.184/29auto_assign_floating_ip = True

Restart nova-network and you’re set!

Page 7: Set up your own OpenStack Havana in 10 minutes

Add OpenStack to Mist.io

Fill in your username, password,

tenant name and Auth URL

Page 8: Set up your own OpenStack Havana in 10 minutes

Enjoy!

We can now create, destroy, reboot and monitor our virtual machines through Mist.io