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
Setting up your OpenStack Havanafor testing and development
Workflow
● Install OpenStack through DevStack
● Configure the network
● Configure OpenStack to auto-assign IPs
● Add OpenStack to Mist.io and launch VMs
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
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)
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
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!
Add OpenStack to Mist.io
Fill in your username, password,
tenant name and Auth URL
Enjoy!
We can now create, destroy, reboot and monitor our virtual machines through Mist.io
Thank you!More resources:
● http://blog.mist.io/post/73402239574/set-up-your-own-openstack-havana-in-10-
minutes
● http://devstack.org/guides/single-machine.html