Upload
ngonga
View
220
Download
5
Embed Size (px)
Citation preview
Training-Labs
Pranav Salunke (SUSE Linux GmbH)Roger Luethi (Independent)
Sayali Lunkad (SUSE Linux GmbH)
Mission of training-labs
OpenStack cluster for training
● Automated setup
● Minimal hardware requirements
● Minimal dependencies
● Easy to remove
● Support for all major platforms: Linux, OS X, Windows
● Predictable, reproducible environment
● Match install-guide
● Offline installation! Hands-on sessions will never fail.
Currently supported OpenStack core services
● Keystone
● Horizon
● Glance
● Nova
● Neutron
● Cinder
● Heat
● Ceilometer
What we can do: Mac OS X/Linux
Get osbash
Run osbash
DownloadingISO image
Building basedisk
Downloading packages
Building OpenStack cluster
OpenStack cluster built
Log into controller node
Log into horizon
Dashboard
Launch test
Test succeeded
Log into guest VM
What we can do: Windows
Get osbash w. Windows batch files
Create host-only networks
Downloading ISO image
Building basedisk
basedisk built
Building OpenStack cluster
OpenStack cluster built
Snapshots
How we do it
PC/Laptop
osbash workflow
PC/Laptop
osbash workflow
osbashHypervisor:
VirtualBox/KVM
PC/Laptop
osbash workflow
osbash
VM
VM
VM
Hypervisor:VirtualBox/KVM
PC/Laptop
osbash workflow
osbash
client-side scripts (install-
guide)
controllernodeVM
networknodeVM
compute node VM
Hypervisor:VirtualBox/KVM
KVM
PC/Laptop
osbash workflow
osbash
client-side scripts (install-
guide)
controllernodeVM
networknodeVM
compute node VM
Hypervisor:VirtualBox/KVM
KVM
guestVM
guestVM
PC/Laptop
osbash workflow
osbash
client-side scripts (install-
guide)
controllernodeVM
networknodeVM
compute node VM
Hypervisor:VirtualBox/KVM
KVM
guestVM
guestVM
PC/Laptop
osbash workflow
osbash
client-side scripts (install-
guide)
controllernodeVM
networknodeVM
compute node VM
Hypervisor:VirtualBox/KVM
KVM
guestVM
guestVM
PC/Laptop
osbash workflow
osbash
client-side scripts (install-
guide)
controllernodeVM
networknodeVM
compute node VM
Hypervisor:VirtualBox/KVM
KVM
guestVM
guestVM
Workflow
Speed up
● basedisk○ updated base operating system○ OpenStack distro packages needed for all services○ only basedisk needs Internet connection○ basedisk to built cluster: 15-30 minutes
● node snapshots○ for each service installation○ restore partially installed cluster○ restore clean cluster after playing with it
Training Labs
Debugging tools
● log files (hypervisor calls, client-side scripts)
● launch_instance: build CirrOS guest VM
● repeat-test○ from scratch or from named snapshot (resets all VMs accordingly)
○ retrieves and archives log files (including server logs from node VMs)
install-guide● Restart the Networking services:
# service neutron-plugin-openvswitch-agent restart# service neutron-l3-agent restart# service neutron-dhcp-agent restart# service neutron-metadata-agent restart
echo "Restarting the network service."sudo service neutron-plugin-openvswitch-agent restartsudo service neutron-l3-agent restart
echo -n "Checking VLAN tags."# Wait for "tag:" to show upuntil sudo ovs-vsctl show|grep tag:; do
echo -n "."sleep 1
doneif sudo ovs-vsctl show|grep "tag: 4095"; then
# tag: 4095 indicates an errorecho >&2 "ERROR: port is in limbo and won't recover:"grep tag=4095 /etc/openvswitch/conf.db >&2exit 1
fi
echo -n "Getting router namespace."until ip netns|grep qrouter; do
echo -n "."sleep 1
donensrouter=$(ip netns|grep qrouter)
sudo service neutron-dhcp-agent restart
[...]
osbash and DevStack compared● DevStack
○ A tool aimed at OpenStack developers○ Uses latest source code from OpenStack repos○ User manages VMs
● osbash
○ A tool for OpenStack training○ Uses OpenStack packages from distro repos○ Automated management of virtual machine lifecycle○ Predictable environment for training
Roadmap for Training Labs● Finalize ports to Kilo and Liberty
● Improve KVM support
● Create CI system for training-labs and install-guides
● Port of host-side code to Python
● Support additional distros
● Baremetal deployment (Raspberry Pi2 ?)
Survey from previous workshops in India
Pune
https://www.surveymonkey.com/results/SM-VG5HQ7B2/
Bangalore
https://www.surveymonkey.com/results/SM-PC25W7B2/
PuneWorkshop
BangaloreWorkshop
Thank you for coming
Talk to us
Pranav Salunke (SUSE Linux GmbH)[email protected]: dguitarbite
Roger Luethi (Independent)[email protected]: rluethi
Sayali Lunkad (SUSE Linux GmbH)[email protected]: sayalilunkad
Documentation meetup http://sched.co/4Qbp (Friday, October 30, 9:00am-12:30pm, Kotobuki room)
IRC #openstack-doc
Mailing List [email protected]
Deploying osbash● Prerequisite
○ Download and install VirtualBox
● How to run the scripts○ Get and unpack tarball (Linux, OS X) or zip file (Windows)○ Go to the osbash folder
■ $ cd osbash○ Run the script
■ For linux as Mac OS X● $ ./osbash -b cluster
■ For Windows● Double-click Windows batch files
Deploying osbash● Prerequisite
○ Download and install VirtualBox
● How to run the scripts○ Clone the repository
■ $ git clone git://git.openstack.org/openstack/training-labs○ Go to the osbash folder
■ $ cd training-labs/labs/osbash/○ Run the script
■ For linux as Mac OS X● $ ./osbash -b cluster
■ For Windows● Create wbatch scripts on Linux/OS X: $ ./osbash -w cluster