From OpenStack to Docker swarm
-
Upload
nikolay-milovanov -
Category
Education
-
view
206 -
download
3
Transcript of From OpenStack to Docker swarm
From OpenStack to Docker swarm
Nikolay MilovanovNew Bulgarian University
OpenStack facts and figures
• Cloud IAAS automation stack• Began 2010 as a project between NASA &
RackSpace• First Component is the hypervisor Nebula which
now is called Nova• Distributed under Apache license• Developed by a community of around 1800
active committers (increased from 400 to 1500 for less than an year…)
OpenStack facts and figures
• Managed by OpenStack Foundation• Evolves based on a coordinated 6-month
release cycle with frequent development milestones
• Currently has 14 releases – 15th Ocata is scheduled for Feb 2017 (Apr 2017)
OpenStack releases and component evolutionAustin 21-Oct-10 Nova, SwiftBexar 3-Feb-11 Nova, Glance, SwiftCactus 15-Apr-11 Nova, Glance, SwiftDiablo 22-Sep-11 Nova, Glance, SwiftEssex 5-Apr-12 Nova, Glance, Swift, Horizon, Keystone
Folsom 27-Sep-12 Nova, Glance, Swift, Horizon, Keystone, Quantum, CinderGrizzly 4-Apr-13 Nova, Glance, Swift, Horizon, Keystone, Quantum, Cinder
Havana 17-Oct-13Nova, Glance, Swift, Horizon, Keystone, Neutron, Cinder, Heat, Ceilometer
Icehouse 17-Apr-14Nova, Glance, Swift, Horizon, Keystone, Neutron, Cinder, Heat, Ceilometer, Trove
Juno 16-Oct-14Nova, Glance, Swift, Horizon, Keystone, Neutron, Cinder, Heat, Ceilometer, Trove, Sahara
KiloApr-15
Nova, Glance, Swift, Horizon, Keystone, Neutron, Cinder, Heat, Ceilometer, Trove, Sahara, Ironic, Zaqar, Manila, Designate, Barbican
Liberty Oct-15Mitaka Apr-16Newton Oct-15 MAGNUM, designate
Focus has shifted towards improving the existing once
OpenStack high level arch diagram
Docker
• Docker is an open-source project that automates the deployment of Linux applications inside software containers
• Docker is a wrapper on top of liblxc/libcontainer which are wrappers of a couple of key kernel features– namespaces, originally developed by IBM, wrap a set of
system resources and present them to a process to make it look like they are dedicated to that process.
– cgroups, originally developed by Google, govern the isolation and usage of system resources, such as CPU and memory, for a group of processes
Docker Swarm
• Native clustering for Docker• Turns a pool of Docker hosts into a single,
virtual Docker host• Allows us to do clusters of docker containers
NBU• First and largest private university in Bulgaria• First to introduce credit system • Has started from two apartments • Now has about 14000 students • Mostly humanitarian university • Clear separation between administration and academic • Technology programs are in
– Telecommunications– Informatics
• OpenStack lab is hosted by Telecommunications department in Building 2, lab 701a
TIME FOR FUN
Scenario
• In an OpenStack tenant we will : – create virtual network, subnet and a router– play a bit with the native OpenStack security
functionalities such as keys and access-groups– deploy a VM from an cloud image
That’s what we have to achieve
Second part
• inject user-data and do fun with the VM• deploy automatically docker& docker swarm
into an OpenStack VM• If we do all that, we are a real heroes and will
play with some containers on top of the swarm cluster
To do the exercise you will need OpenStack clients
• Those will hit straight OpenStack REST APIs• You need to install:
– pip install python-novaclient– pip install python-neutronclient– pip install python-glanceclient
• Credentials– User: ….– Tenant: ….– Password: ….– GUI (you won’t need it but anyway)– http://java2days.telecom.nbu.bg/dashboard
• Slides and workshop scripts– https://goo.gl/sA2xmt