SlideShare a Scribd company logo
OpenStack images that fit your imagination -
deep dive into container images in Kolla
OpenStack Summit, Sydney, Nov 8 2017
Rich Wellum, Software Developer, Cloud Architecture, Lenovo, rwellum
Vikram Hosakote, Cloud Software Engineer, Cisco Systems, vhosakot
Agenda
• OpenStack Kolla
• What OpenStack Kolla solves
• Benefits of containers in OpenStack
• Architecture of Kolla
• How to use Kolla
• Deploy OpenStack in minutes – do not build
• How to customize Kolla images
• Demo
OpenStack Kolla
• Deploys OpenStack services in Docker containers
• Two ways to deploy:
• Ansible
• Kubernetes
• Three sub-projects:
• Kolla
• Kolla-ansible
• Kolla-kubernetes
What OpenStack Kolla solves
• Deploy OpenStack binaries or build from source
• Faster deployment
• Easy maintenance, re-configuration, patching and upgrades
• Containerized OpenStack services in registry
• Only one tool to do multiple things
• Pin:
• OpenStack version of each service
• Configuration files for each service
Which projects are users most interested in adopting in the future? Which projects are used by OpenStack deployments?
OpenStack User Survey (April 2017) - https://www.openstack.org/assets/survey/April2017SurveyReport.pdf
Kolla is easy to use
• DevStack
• Juju
• PackStack
• Fuel
• OpenStack-ansible
• TripleO
• Openstack-puppet
• OpenStack-chef
Benefits of containers in OpenStack
• Reproduce golden state easily – maintain, version, tag, upgrade
• No more “Works in DevStack” ;)
• Production-ready images
• Easy to override/highly flexible:
• Dockerfiles
• Jinja templates (configuration files)
• Dev mode (do Dev and Test quickly using Kolla)
• Portable, tested, replicated images in secure registries – DockerHub,
Quay, etc
Architecture of Kolla
Registry
(DockerHub)
GitHub
(kolla, kolla-
ansible, kolla-
kubernetes)
Deploy node
(Docker, Ansible,
Docker python,
Jinja2)
Compute
node
Compute
node
Compute
node
(Docker, OpenStack
services) Compute
node
Compute
node
Controller
node
(Docker, OpenStack
services) Compute
node
Compute
node
Storage
node
(Docker, OpenStack
services)
Management/admin network
API/service network
Storage/data network
OOB network
images, layersDockerfiles, ansible playbooks,
jinja templates (config files),
helm charts, k8s jobs
Target
nodes
deploy, re-configure,
upgrade
deploy, re-configure,
upgradedeploy, re-configure,
upgrade
Kolla talk at OpenStack Summit 2017 in Sydney
Kolla talk at OpenStack Summit 2017 in Sydney
Not just for vanilla OpenStack with default configs
• Kolla can be used for advanced configurations like
• Jumbo frames
• SR-IOV (PCI passthrough)
• Massive scale (hundreds of nodes)
• New networking technologies - OpenDaylight, OVS-DPDK, VPP*, OVN, NFV,
Tacker, Service Function Chaining (SFC)
• Supports plugins
• Ceph storage
• EFK (Elasticsearch, Fluentd, Kibana)
• Prometheus – cloud-native monitoring and alerting
• Customizations and template overrides
How to use Kolla
• Install:
• Install Ansible, Docker, Docker python and Jinaj2 on the deploy node
• Install Docker and Docker python on all the target nodes (bootstrap-servers.yml)
• Clone the kolla repos
• Build:
• Create /etc/kolla/kolla-build.conf (optional)
• kolla-build (lots of build options)
• Deploy kolla-ansible:
• Create Ansible inventory file and update globals.yaml
• kolla-ansible prechecks -i <inventory file>
• kolla-ansible deploy -i <inventory file>
Deploy OpenStack in minutes – do not build
• Pull pre-built golden images from DockerHub
(https://hub.docker.com/u/kolla/) instead of building images
Deploy OpenStack in minutes – do not build
• Kolla images are tagged per-release on DockerHub
• kolla-ansible –i inventory file pull
Building and Orchestrating Custom Kolla
Images and Containers(On Kubernetes!)
● Official Kolla Image building documentation:
https://docs.openstack.org/kolla/latest/admin/image-building.html
● These slides: http://bit.ly/2zl7WFF
● Orchestration tool used in this demo:
○ https://github.com/RichWellum/k8s.git
○ https://review.openstack.org/#/c/487972/
● Other orchestration options:
○ Ansible Playbook: https://review.openstack.org/#/c/457317/
○ Deployment Guide: https://docs.openstack.org/kolla-
kubernetes/latest/deployment-guide.html
Reasons why you might build custom Kolla
Images?1. Case example 1; your company builds and produces a proprietary OpenStack. Some services
are touched, some are not. For example Horizon has plugins and addons that uniquely identify
your company's look and feel, but changes to many other Services are not required.
○ Kolla provides tools to build Docker images containing an OpenStack Service. And a single
image for a Service up to the entire stack can be built.
2. Case example 2; as an OpenStack contributor you work with a Service - say Ironic. The bulk of
your work is done in devstack, a simulator. How cool would it be to develop in an OpenStack
environment running with production level code?
○ Kolla sub-projects: Kolla-Ansible and Kolla-Kubernetes provide the orchestration to run
containerized OpenStack.
3. Case example 3; Your company develops drivers unique to their hardware. Most of OpenStack
should just work, be easy to build and orchestrate in a real environment.
○ With Kolla the hard-work per Service has already been done; facilitating a low cognitive
overhead.
Building and Orchestrating
DEVELOPMENT
Local Source Code
ORCHESTRATION and OPERATIONS
Kolla-Kubernetes
Neutron Nova
Cinder
GlanceHeat
Ironic
Keystone Horizon
KOLLA BUILD
Tools to build
images
src/Keystone
+ LDAP or
SAML
src/Horizon
+ Custom
logo/skins
Reconfiguration
src/<Service>
Keystone Image
Horizon Image
<Service> Image
Kube
Schedul
er
Kube
Controll
er
Kube
SDN
Kube
DNS
Kube
etcd
Kube
Proxy
Tiller Kube
API
src code changed: Helm
delete / Helm install
Demo
● Start with source code for Horizon, make a customization change.
● Install Kolla.
● Compile a Horizon docker image with Kolla Build tools and store locally.
● Bring up Kubernetes Cluster and verify it is operational.
● Orchestrate a combination of UpStream(Ocata) Kolla containers from
Dockerhub and our new Horizon container on the Kubernetes Cluster.
● View the results on the Horizon GUI.
● Demo Video: https://www.youtube.com/watch?v=jyjQ_qy7wPU
● Demo Notes with all the steps are in the slides below for referenced.
DEMO
Wrap up - how to get involved
● Need a feature? Find a bug? Let us know!
● Gerrit workflow -
http://docs.openstack.org/infra/manual/developers.html
● Kolla IRC channel - #openstack-kolla
● File bugs, blueprints, track releases on Launchpad -
https://launchpad.net/kolla
● Attend weekly meetings -
https://wiki.openstack.org/wiki/Meetings/Kolla
● Contribute code - https://github.com/openstack/kolla
● Mailing list - openstack-dev@lists.openstack.org [kolla]
Demo Notes
Start with pulling your source code
● For the purpose of the rest of this presentation - the assumption is that
you are working from a VM…
● We are going to build custom Kolla Images for three services, Keystone,
Horizon and Cinder.
● Grab the custom OpenStack code - for example your company's source
code for keystone, horizon and cinder may reside on a git server
somewhere - clone it to a work-space, E.g:
○ git clone git@10.1.2.3:myopenstack/keystone.git
○ git clone git@10.1.2.3::myopenstack/horizon.git
○ git clone git@10.1.2.3::myopenstack/cinder.git
Grab Kolla Repository
● Grab the kolla repo which will give you access to the tools to build
images
○ git clone http://github.com/openstack/kolla
● Compile Kolla
○ sudo pip install -r ./kolla/requirements.txt
○ sudo -H pip install -U kolla
Generate files
● Generate a kolla-build.conf
○ sudo -H pip install tox
○ cd kolla; sudo -H tox -e genconfig
■ Note: (places build-conf in /etc/kolla !):
● Edit kolla-build.conf and add in source
○ vi etc/kolla/kolla-build.conf
○ install_type = source
■ But this is optional as it can be supplied as a parameter to kolla build
■ Note binary means that OpenStack will be installed from apt/yum. And the
source means that OpenStack will be installed from source code.
Edit kolla-build.conf and add pointer to source
● Edit kolla-build.conf and add in source pointers
○ vi etc/kolla/kolla-build.conf ⇐ note local etc not /etc
○ Lets add references to keystone, horizon and cinder source code
○ Note the reference - what will the rest of your OpenStack be running?
○ Type can also be git or url.
[keystone-base]
+ type = local
+ location = /home/rwellum/keystone/
+ reference = stable/ocata
[horizon]
+ type = local
+ location = /home/rwellum/horizon/
+ reference = stable/ocata
[cinder-base]
+ type = local
+ location = /home/rwellum/cinder/
+ reference = stable/ocata
Create a Docker Registry if needed
● For some scenarios (multi-node, sharing etc) it’s helpful to create a docker registry to store these images, E.g:
● kolla/tools/start-registry
● Or:
docker run -d 
--name registry 
--restart=always 
-p 4000:5000 
-v registry:/var/lib/registry 
registry:
Now we are ready to build images (1/2)...
● You can choose to build the images locally (Like an All In One (AIO) Dev environment) or push to a
Docker Registry - if you intend to share these images or running multi-node.
● Change the base distro with the -b option:
○ kolla-build -b ubuntu
● Local build (4 different ways - why not?)
○ sudo kolla-build -t source horizon cinder keystone --config-dir
./kolla/etc/kolla/
○ Or: sudo which klollkolla-build -t source horizon cinder keystone --
config-file ./kolla/etc/kolla/kolla-build.conf
○ Or: copy kolla-build.conf to /etc/kolla (from ./kolla/etc/kolla/kolla-
build.conf
○ Or: sudo kolla/tools/build.py -t source --config-file
./kolla/etc/kolla/kolla-build.conf
Now we are ready to build images (2/2)...
● Registry multi-node
○ Add: “ --registry 172.22.2.81:5000 --push”
○ E.g. sudo kolla-build --registry 172.22.2.81:5000 --push -t source
horizon cinder keystone
○ To push images to a Dockerhub repository named mykollarepo:
○ sudo kolla-build -n mykollarepo --push -t source horizon cinder
keystone
● Add in build logs
○ Any issues in building this is where you start
○ Add: “--logs-dir horizon-log --debug“
○ E.g. sudo kolla-build --registry 172.22.2.81:5000 --push -t source
horizon cinder keystone --logs-dir horizon-log --debug
Lets check our images built...
● Lets check for valid generated images
rwellum@ubuntuk8s:~$ sudo docker images | grep horizon
kolla/centos-source-horizon 4.0.2 5182810deebb 2 minutes ago
1.077 GB
● The Tag ‘4.0.2’ is very important in Kolla…
● We’ll use this and the location of the image to orchestrate
How do we Orchestrate our new images (1/2)?
● So we have our custom images. Now we’d like to Orchestrate…
● Kolla is the main project - the tools to build OpenStack Images
● Kolla-Ansible is a sub-project to orchestrate with Kolla images
○ Industry proven, widely used, very reliable!
● Kolla-Kubernetes is another sub project to orchestrate with Kolla
images
○ Dev project, to run on Kubernetes cluster, new, exciting, be careful!
● This example is based on Kolla-Kubernetes and using a tool I wrote to
stand up an AIO kolla-kubernetes cluster…
● But it applies to any method, manual (following the bare-metal guide:
https://docs.openstack.org/kolla-kubernetes/latest/deployment-
guide.html) even Kolla-Ansible
How do we Orchestrate our new images (2/2)?
● Kolla-Kubernetes relies on a ‘cloud.yaml’ file to stand up
OpenStack
● In our example we want to run with our custom keystone,
horizon and cinder images
● All other Services will be pulled from dockerhub
● Grab k8s.py - deployment / orchestration tool:
○ git clone https://github.com/RichWellum/k8s.git
○ Replace with hopefully merged version
Orchestration continued...
● Standup OpenStack
○ Create a working directory - like ‘os’
○ Run k0:
■ ../k8s/ko.py eth0 eth1 --image-version ocata --edit-config
○ Note two interfaces required as per normal (MGMT and Neutron)
○ Note edit-config option
○ --help will show all the options available.
● Ko.py will proceed to install Kubernetes and start to bring up
OpenStack
● It will pause at the appropriate point to allow the user to edit the
cloud.yaml - where you will point the image tag to your local
custom image….
Changes to Cloud.yaml
keystone:
all:
+ image_full: kolla/centos-source-keystone:4.0.2
horizon:
all:
+ image_full: kolla/centos-source-horizon:4.0.2
cinder:
all:
+ image_full: kolla/centos-source-cinder-base:4.0.2
Once OpenStack is up...
● Lets confirm we actually orchestrated with local images
○ kubectl get pods --all-namespaces | grep horizon
○ kubectl describe pod horizon-blah -n kolla | grep Image
● And/or connect to your container and look for that proprietary code
○ docker run -tu root -ti horizon-blah /bin/bash
○ kubectl -n kolla exec -it horizon-blah -- ls
So you make some changes to your source
code..
● Repeat the steps to build the image
● Kill the container: kubectl delete pod horizon-blah -n kolla
● WHAT NEXT???
And commence OpenStacking...
● At this point you have a running Kolla-Kubernetes OpenStack running
with custom containers where needed.
Building and Orchestrating
DEVELOPMENT
Local Source Code
ORCHESTRATION and OPERATIONS
Neutron Nova
Cinder
GlanceHeat
Ironic
Keystone Horizon
KOLLA BUILD
Tools to build
containers
src/Keystone
src/Horizon
src/Cinder
Helm upgrade /
update config
Trash and restart
src/<Service>
Keystone Image
Horizon Image
Cinder Image
<Service> Image
Kube
Schedul
er
Kube
Controll
er
Kube
SDN
Kube
DNS
Kube
etcd
Kube
Proxy
Tiller Kube
API
KUBERNETES
Building and Orchestrating
DEVELOPMENT
Local Source Code
ORCHESTRATION and OPERATIONS
Kolla-Kubernetes
Neutron Nova
Cinder
GlanceHeat
Ironic
Keystone Horizon
KOLLA BUILD
Tools to build
images
src/Keystone
src/Horizon
src/Cinder
Helm upgrade /
update config
src/<Service>
Keystone Image
Horizon Image
Cinder Image
<Service> Image
Kube
Schedul
er
Kube
Controll
er
Kube
SDN
Kube
DNS
Kube
etcd
Kube
Proxy
Tiller Kube
API
Helm delete / Helm install

More Related Content

PPTX
OpenvSwitch Deep Dive
rajdeep
 
PPTX
Tutorial: Using GoBGP as an IXP connecting router
Shu Sugimoto
 
PDF
Linux Networking Explained
Thomas Graf
 
PDF
How VXLAN works on Linux
Etsuji Nakai
 
PPTX
The Basic Introduction of Open vSwitch
Te-Yen Liu
 
PDF
Kubernetes Basics
Eueung Mulyana
 
PDF
Service Function Chaining in Openstack Neutron
Michelle Holley
 
PDF
Kubernetes 101
Crevise Technologies
 
OpenvSwitch Deep Dive
rajdeep
 
Tutorial: Using GoBGP as an IXP connecting router
Shu Sugimoto
 
Linux Networking Explained
Thomas Graf
 
How VXLAN works on Linux
Etsuji Nakai
 
The Basic Introduction of Open vSwitch
Te-Yen Liu
 
Kubernetes Basics
Eueung Mulyana
 
Service Function Chaining in Openstack Neutron
Michelle Holley
 
Kubernetes 101
Crevise Technologies
 

What's hot (20)

PDF
NSO: Network Service Orchestrator enabled by Tail-f Hands-on Lab
Cisco Canada
 
PDF
LinuxCon 2015 Linux Kernel Networking Walkthrough
Thomas Graf
 
PPTX
OpenStack Quantum Intro (OS Meetup 3-26-12)
Dan Wendlandt
 
PPTX
Linux Network Stack
Adrien Mahieux
 
ODP
eBPF maps 101
SUSE Labs Taipei
 
PDF
DockerCon 2017 - Cilium - Network and Application Security with BPF and XDP
Thomas Graf
 
PPTX
A brief study on Kubernetes and its components
Ramit Surana
 
PPTX
Building Multi-Site and Multi-OpenStack Cloud with OpenStack Cascading
Joe Huang
 
PPTX
Room 1 - 7 - Lê Quốc Đạt - Upgrading network of Openstack to SDN with Tungste...
Vietnam Open Infrastructure User Group
 
PPTX
Issues of OpenStack multi-region mode
Joe Huang
 
PPTX
Kubernetes Introduction
Eric Gustafson
 
PDF
Quick and Solid - Baremetal on OpenStack | Rico Lin
Vietnam Open Infrastructure User Group
 
PDF
High-Performance Networking Using eBPF, XDP, and io_uring
ScyllaDB
 
PDF
Cilium - Bringing the BPF Revolution to Kubernetes Networking and Security
Thomas Graf
 
PDF
An overview of the Kubernetes architecture
Igor Sfiligoi
 
PDF
Neutron packet logging framework
Vietnam Open Infrastructure User Group
 
PDF
Open vSwitch 패킷 처리 구조
Seung-Hoon Baek
 
PDF
[OpenStack Days Korea 2016] Track3 - 오픈스택 환경에서 공유 파일 시스템 구현하기: 마닐라(Manila) 프로젝트
OpenStack Korea Community
 
PDF
Dave Gilbert - KVM and QEMU
Danny Abukalam
 
PDF
Userspace networking
Stephen Hemminger
 
NSO: Network Service Orchestrator enabled by Tail-f Hands-on Lab
Cisco Canada
 
LinuxCon 2015 Linux Kernel Networking Walkthrough
Thomas Graf
 
OpenStack Quantum Intro (OS Meetup 3-26-12)
Dan Wendlandt
 
Linux Network Stack
Adrien Mahieux
 
eBPF maps 101
SUSE Labs Taipei
 
DockerCon 2017 - Cilium - Network and Application Security with BPF and XDP
Thomas Graf
 
A brief study on Kubernetes and its components
Ramit Surana
 
Building Multi-Site and Multi-OpenStack Cloud with OpenStack Cascading
Joe Huang
 
Room 1 - 7 - Lê Quốc Đạt - Upgrading network of Openstack to SDN with Tungste...
Vietnam Open Infrastructure User Group
 
Issues of OpenStack multi-region mode
Joe Huang
 
Kubernetes Introduction
Eric Gustafson
 
Quick and Solid - Baremetal on OpenStack | Rico Lin
Vietnam Open Infrastructure User Group
 
High-Performance Networking Using eBPF, XDP, and io_uring
ScyllaDB
 
Cilium - Bringing the BPF Revolution to Kubernetes Networking and Security
Thomas Graf
 
An overview of the Kubernetes architecture
Igor Sfiligoi
 
Neutron packet logging framework
Vietnam Open Infrastructure User Group
 
Open vSwitch 패킷 처리 구조
Seung-Hoon Baek
 
[OpenStack Days Korea 2016] Track3 - 오픈스택 환경에서 공유 파일 시스템 구현하기: 마닐라(Manila) 프로젝트
OpenStack Korea Community
 
Dave Gilbert - KVM and QEMU
Danny Abukalam
 
Userspace networking
Stephen Hemminger
 
Ad

Similar to Kolla talk at OpenStack Summit 2017 in Sydney (20)

PDF
Kolla Onboarding (Vancouver 2018)
Paul Bourke
 
PDF
Openstackoverview-DEC2013
Michael Lessard
 
PPTX
Reactive summit 2020 microsoft orleans the easy way
John Azariah
 
PPTX
Best Practices for Running Kafka on Docker Containers
BlueData, Inc.
 
PDF
OSDC 2013 | Tutorial and demonstration of failover from EC2 to OpenStack usin...
NETWAYS
 
PDF
OpenStack Deployment in the Enterprise
Cisco Canada
 
PDF
CERN OpenStack Cloud Control Plane - From VMs to K8s
Belmiro Moreira
 
PDF
Openstack 101
Kamesh Pemmaraju
 
PDF
Container Native Development Tools - Talk by Mickey Boxell
Oracle Developers
 
PDF
Practical guide to Oracle Virtual environments
Nelson Calero
 
PDF
Docker Meetup Bangalore - Docker + Openstack
Ashish Billore
 
PDF
Dockerizing OpenStack for High Availability
Daniel Krook
 
PDF
Just one-shade-of-openstack
Roberto Polli
 
PDF
Chef and OpenStack Workshop from ChefConf 2013
Matt Ray
 
PDF
Teaching Apache Spark Clusters to Manage Their Workers Elastically: Spark Sum...
Spark Summit
 
PDF
Making Service Deployments to AWS a breeze with Nova
Gregor Heine
 
PPTX
OpenStack 101
All Things Open
 
PPTX
OpenStack 101 - All Things Open 2015
Mark Voelker
 
PPTX
Dockerization of Azure Platform
nirajrules
 
PPTX
Docker and kubernetes
Dongwon Kim
 
Kolla Onboarding (Vancouver 2018)
Paul Bourke
 
Openstackoverview-DEC2013
Michael Lessard
 
Reactive summit 2020 microsoft orleans the easy way
John Azariah
 
Best Practices for Running Kafka on Docker Containers
BlueData, Inc.
 
OSDC 2013 | Tutorial and demonstration of failover from EC2 to OpenStack usin...
NETWAYS
 
OpenStack Deployment in the Enterprise
Cisco Canada
 
CERN OpenStack Cloud Control Plane - From VMs to K8s
Belmiro Moreira
 
Openstack 101
Kamesh Pemmaraju
 
Container Native Development Tools - Talk by Mickey Boxell
Oracle Developers
 
Practical guide to Oracle Virtual environments
Nelson Calero
 
Docker Meetup Bangalore - Docker + Openstack
Ashish Billore
 
Dockerizing OpenStack for High Availability
Daniel Krook
 
Just one-shade-of-openstack
Roberto Polli
 
Chef and OpenStack Workshop from ChefConf 2013
Matt Ray
 
Teaching Apache Spark Clusters to Manage Their Workers Elastically: Spark Sum...
Spark Summit
 
Making Service Deployments to AWS a breeze with Nova
Gregor Heine
 
OpenStack 101
All Things Open
 
OpenStack 101 - All Things Open 2015
Mark Voelker
 
Dockerization of Azure Platform
nirajrules
 
Docker and kubernetes
Dongwon Kim
 
Ad

More from Vikram G Hosakote (12)

PPTX
Cisco UCS loves Kubernetes, Docker and OpenStack Kolla
Vikram G Hosakote
 
PPTX
OpenStack with OpenDaylight
Vikram G Hosakote
 
PPTX
Jumbo Mumbo in OpenStack
Vikram G Hosakote
 
PPTX
Multicast in OpenStack Tips
Vikram G Hosakote
 
PPTX
Multicast in OpenStack
Vikram G Hosakote
 
PPTX
BEST REST in OpenStack
Vikram G Hosakote
 
PPTX
Multi-node ZUUL OpenStack gate for bare metal and Docker
Vikram G Hosakote
 
PPTX
Cloud-based Virtualization for Test Automation
Vikram G Hosakote
 
PPTX
Layer-3 BFD Optimization Proposals for Enterprise and Campus Networks
Vikram G Hosakote
 
PPTX
Network OS Code Coverage demo using Bullseye tool
Vikram G Hosakote
 
PPTX
Using PerfDHCP tool to scale DHCP in OpenStack Neutron
Vikram G Hosakote
 
PPTX
Addressing DHCP and DNS scalability issues in OpenStack Neutron
Vikram G Hosakote
 
Cisco UCS loves Kubernetes, Docker and OpenStack Kolla
Vikram G Hosakote
 
OpenStack with OpenDaylight
Vikram G Hosakote
 
Jumbo Mumbo in OpenStack
Vikram G Hosakote
 
Multicast in OpenStack Tips
Vikram G Hosakote
 
Multicast in OpenStack
Vikram G Hosakote
 
BEST REST in OpenStack
Vikram G Hosakote
 
Multi-node ZUUL OpenStack gate for bare metal and Docker
Vikram G Hosakote
 
Cloud-based Virtualization for Test Automation
Vikram G Hosakote
 
Layer-3 BFD Optimization Proposals for Enterprise and Campus Networks
Vikram G Hosakote
 
Network OS Code Coverage demo using Bullseye tool
Vikram G Hosakote
 
Using PerfDHCP tool to scale DHCP in OpenStack Neutron
Vikram G Hosakote
 
Addressing DHCP and DNS scalability issues in OpenStack Neutron
Vikram G Hosakote
 

Recently uploaded (20)

PPTX
unit 3a.pptx material management. Chapter of operational management
atisht0104
 
PPTX
Civil Engineering Practices_BY Sh.JP Mishra 23.09.pptx
bineetmishra1990
 
PPTX
Chapter_Seven_Construction_Reliability_Elective_III_Msc CM
SubashKumarBhattarai
 
PPTX
EE3303-EM-I 25.7.25 electrical machines.pptx
Nagen87
 
PDF
Traditional Exams vs Continuous Assessment in Boarding Schools.pdf
The Asian School
 
PDF
flutter Launcher Icons, Splash Screens & Fonts
Ahmed Mohamed
 
PPT
Lecture in network security and mobile computing
AbdullahOmar704132
 
PDF
2010_Book_EnvironmentalBioengineering (1).pdf
EmilianoRodriguezTll
 
PPTX
business incubation centre aaaaaaaaaaaaaa
hodeeesite4
 
PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
PDF
Introduction to Ship Engine Room Systems.pdf
Mahmoud Moghtaderi
 
PPTX
easa module 3 funtamental electronics.pptx
tryanothert7
 
PPTX
MSME 4.0 Template idea hackathon pdf to understand
alaudeenaarish
 
PPTX
Inventory management chapter in automation and robotics.
atisht0104
 
PDF
Queuing formulas to evaluate throughputs and servers
gptshubham
 
PDF
dse_final_merit_2025_26 gtgfffffcjjjuuyy
rushabhjain127
 
PDF
top-5-use-cases-for-splunk-security-analytics.pdf
yaghutialireza
 
PPTX
22PCOAM21 Session 2 Understanding Data Source.pptx
Guru Nanak Technical Institutions
 
PDF
Activated Carbon for Water and Wastewater Treatment_ Integration of Adsorptio...
EmilianoRodriguezTll
 
PPTX
Information Retrieval and Extraction - Module 7
premSankar19
 
unit 3a.pptx material management. Chapter of operational management
atisht0104
 
Civil Engineering Practices_BY Sh.JP Mishra 23.09.pptx
bineetmishra1990
 
Chapter_Seven_Construction_Reliability_Elective_III_Msc CM
SubashKumarBhattarai
 
EE3303-EM-I 25.7.25 electrical machines.pptx
Nagen87
 
Traditional Exams vs Continuous Assessment in Boarding Schools.pdf
The Asian School
 
flutter Launcher Icons, Splash Screens & Fonts
Ahmed Mohamed
 
Lecture in network security and mobile computing
AbdullahOmar704132
 
2010_Book_EnvironmentalBioengineering (1).pdf
EmilianoRodriguezTll
 
business incubation centre aaaaaaaaaaaaaa
hodeeesite4
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
Introduction to Ship Engine Room Systems.pdf
Mahmoud Moghtaderi
 
easa module 3 funtamental electronics.pptx
tryanothert7
 
MSME 4.0 Template idea hackathon pdf to understand
alaudeenaarish
 
Inventory management chapter in automation and robotics.
atisht0104
 
Queuing formulas to evaluate throughputs and servers
gptshubham
 
dse_final_merit_2025_26 gtgfffffcjjjuuyy
rushabhjain127
 
top-5-use-cases-for-splunk-security-analytics.pdf
yaghutialireza
 
22PCOAM21 Session 2 Understanding Data Source.pptx
Guru Nanak Technical Institutions
 
Activated Carbon for Water and Wastewater Treatment_ Integration of Adsorptio...
EmilianoRodriguezTll
 
Information Retrieval and Extraction - Module 7
premSankar19
 

Kolla talk at OpenStack Summit 2017 in Sydney

  • 1. OpenStack images that fit your imagination - deep dive into container images in Kolla OpenStack Summit, Sydney, Nov 8 2017 Rich Wellum, Software Developer, Cloud Architecture, Lenovo, rwellum Vikram Hosakote, Cloud Software Engineer, Cisco Systems, vhosakot
  • 2. Agenda • OpenStack Kolla • What OpenStack Kolla solves • Benefits of containers in OpenStack • Architecture of Kolla • How to use Kolla • Deploy OpenStack in minutes – do not build • How to customize Kolla images • Demo
  • 3. OpenStack Kolla • Deploys OpenStack services in Docker containers • Two ways to deploy: • Ansible • Kubernetes • Three sub-projects: • Kolla • Kolla-ansible • Kolla-kubernetes
  • 4. What OpenStack Kolla solves • Deploy OpenStack binaries or build from source • Faster deployment • Easy maintenance, re-configuration, patching and upgrades • Containerized OpenStack services in registry • Only one tool to do multiple things • Pin: • OpenStack version of each service • Configuration files for each service
  • 5. Which projects are users most interested in adopting in the future? Which projects are used by OpenStack deployments? OpenStack User Survey (April 2017) - https://www.openstack.org/assets/survey/April2017SurveyReport.pdf
  • 6. Kolla is easy to use • DevStack • Juju • PackStack • Fuel • OpenStack-ansible • TripleO • Openstack-puppet • OpenStack-chef
  • 7. Benefits of containers in OpenStack • Reproduce golden state easily – maintain, version, tag, upgrade • No more “Works in DevStack” ;) • Production-ready images • Easy to override/highly flexible: • Dockerfiles • Jinja templates (configuration files) • Dev mode (do Dev and Test quickly using Kolla) • Portable, tested, replicated images in secure registries – DockerHub, Quay, etc
  • 9. Registry (DockerHub) GitHub (kolla, kolla- ansible, kolla- kubernetes) Deploy node (Docker, Ansible, Docker python, Jinja2) Compute node Compute node Compute node (Docker, OpenStack services) Compute node Compute node Controller node (Docker, OpenStack services) Compute node Compute node Storage node (Docker, OpenStack services) Management/admin network API/service network Storage/data network OOB network images, layersDockerfiles, ansible playbooks, jinja templates (config files), helm charts, k8s jobs Target nodes deploy, re-configure, upgrade deploy, re-configure, upgradedeploy, re-configure, upgrade
  • 12. Not just for vanilla OpenStack with default configs • Kolla can be used for advanced configurations like • Jumbo frames • SR-IOV (PCI passthrough) • Massive scale (hundreds of nodes) • New networking technologies - OpenDaylight, OVS-DPDK, VPP*, OVN, NFV, Tacker, Service Function Chaining (SFC) • Supports plugins • Ceph storage • EFK (Elasticsearch, Fluentd, Kibana) • Prometheus – cloud-native monitoring and alerting • Customizations and template overrides
  • 13. How to use Kolla • Install: • Install Ansible, Docker, Docker python and Jinaj2 on the deploy node • Install Docker and Docker python on all the target nodes (bootstrap-servers.yml) • Clone the kolla repos • Build: • Create /etc/kolla/kolla-build.conf (optional) • kolla-build (lots of build options) • Deploy kolla-ansible: • Create Ansible inventory file and update globals.yaml • kolla-ansible prechecks -i <inventory file> • kolla-ansible deploy -i <inventory file>
  • 14. Deploy OpenStack in minutes – do not build • Pull pre-built golden images from DockerHub (https://hub.docker.com/u/kolla/) instead of building images
  • 15. Deploy OpenStack in minutes – do not build • Kolla images are tagged per-release on DockerHub • kolla-ansible –i inventory file pull
  • 16. Building and Orchestrating Custom Kolla Images and Containers(On Kubernetes!) ● Official Kolla Image building documentation: https://docs.openstack.org/kolla/latest/admin/image-building.html ● These slides: http://bit.ly/2zl7WFF ● Orchestration tool used in this demo: ○ https://github.com/RichWellum/k8s.git ○ https://review.openstack.org/#/c/487972/ ● Other orchestration options: ○ Ansible Playbook: https://review.openstack.org/#/c/457317/ ○ Deployment Guide: https://docs.openstack.org/kolla- kubernetes/latest/deployment-guide.html
  • 17. Reasons why you might build custom Kolla Images?1. Case example 1; your company builds and produces a proprietary OpenStack. Some services are touched, some are not. For example Horizon has plugins and addons that uniquely identify your company's look and feel, but changes to many other Services are not required. ○ Kolla provides tools to build Docker images containing an OpenStack Service. And a single image for a Service up to the entire stack can be built. 2. Case example 2; as an OpenStack contributor you work with a Service - say Ironic. The bulk of your work is done in devstack, a simulator. How cool would it be to develop in an OpenStack environment running with production level code? ○ Kolla sub-projects: Kolla-Ansible and Kolla-Kubernetes provide the orchestration to run containerized OpenStack. 3. Case example 3; Your company develops drivers unique to their hardware. Most of OpenStack should just work, be easy to build and orchestrate in a real environment. ○ With Kolla the hard-work per Service has already been done; facilitating a low cognitive overhead.
  • 18. Building and Orchestrating DEVELOPMENT Local Source Code ORCHESTRATION and OPERATIONS Kolla-Kubernetes Neutron Nova Cinder GlanceHeat Ironic Keystone Horizon KOLLA BUILD Tools to build images src/Keystone + LDAP or SAML src/Horizon + Custom logo/skins Reconfiguration src/<Service> Keystone Image Horizon Image <Service> Image Kube Schedul er Kube Controll er Kube SDN Kube DNS Kube etcd Kube Proxy Tiller Kube API src code changed: Helm delete / Helm install
  • 19. Demo ● Start with source code for Horizon, make a customization change. ● Install Kolla. ● Compile a Horizon docker image with Kolla Build tools and store locally. ● Bring up Kubernetes Cluster and verify it is operational. ● Orchestrate a combination of UpStream(Ocata) Kolla containers from Dockerhub and our new Horizon container on the Kubernetes Cluster. ● View the results on the Horizon GUI. ● Demo Video: https://www.youtube.com/watch?v=jyjQ_qy7wPU ● Demo Notes with all the steps are in the slides below for referenced.
  • 20. DEMO
  • 21. Wrap up - how to get involved ● Need a feature? Find a bug? Let us know! ● Gerrit workflow - http://docs.openstack.org/infra/manual/developers.html ● Kolla IRC channel - #openstack-kolla ● File bugs, blueprints, track releases on Launchpad - https://launchpad.net/kolla ● Attend weekly meetings - https://wiki.openstack.org/wiki/Meetings/Kolla ● Contribute code - https://github.com/openstack/kolla ● Mailing list - [email protected] [kolla]
  • 23. Start with pulling your source code ● For the purpose of the rest of this presentation - the assumption is that you are working from a VM… ● We are going to build custom Kolla Images for three services, Keystone, Horizon and Cinder. ● Grab the custom OpenStack code - for example your company's source code for keystone, horizon and cinder may reside on a git server somewhere - clone it to a work-space, E.g: ○ git clone [email protected]:myopenstack/keystone.git ○ git clone [email protected]::myopenstack/horizon.git ○ git clone [email protected]::myopenstack/cinder.git
  • 24. Grab Kolla Repository ● Grab the kolla repo which will give you access to the tools to build images ○ git clone http://github.com/openstack/kolla ● Compile Kolla ○ sudo pip install -r ./kolla/requirements.txt ○ sudo -H pip install -U kolla
  • 25. Generate files ● Generate a kolla-build.conf ○ sudo -H pip install tox ○ cd kolla; sudo -H tox -e genconfig ■ Note: (places build-conf in /etc/kolla !): ● Edit kolla-build.conf and add in source ○ vi etc/kolla/kolla-build.conf ○ install_type = source ■ But this is optional as it can be supplied as a parameter to kolla build ■ Note binary means that OpenStack will be installed from apt/yum. And the source means that OpenStack will be installed from source code.
  • 26. Edit kolla-build.conf and add pointer to source ● Edit kolla-build.conf and add in source pointers ○ vi etc/kolla/kolla-build.conf ⇐ note local etc not /etc ○ Lets add references to keystone, horizon and cinder source code ○ Note the reference - what will the rest of your OpenStack be running? ○ Type can also be git or url. [keystone-base] + type = local + location = /home/rwellum/keystone/ + reference = stable/ocata [horizon] + type = local + location = /home/rwellum/horizon/ + reference = stable/ocata [cinder-base] + type = local + location = /home/rwellum/cinder/ + reference = stable/ocata
  • 27. Create a Docker Registry if needed ● For some scenarios (multi-node, sharing etc) it’s helpful to create a docker registry to store these images, E.g: ● kolla/tools/start-registry ● Or: docker run -d --name registry --restart=always -p 4000:5000 -v registry:/var/lib/registry registry:
  • 28. Now we are ready to build images (1/2)... ● You can choose to build the images locally (Like an All In One (AIO) Dev environment) or push to a Docker Registry - if you intend to share these images or running multi-node. ● Change the base distro with the -b option: ○ kolla-build -b ubuntu ● Local build (4 different ways - why not?) ○ sudo kolla-build -t source horizon cinder keystone --config-dir ./kolla/etc/kolla/ ○ Or: sudo which klollkolla-build -t source horizon cinder keystone -- config-file ./kolla/etc/kolla/kolla-build.conf ○ Or: copy kolla-build.conf to /etc/kolla (from ./kolla/etc/kolla/kolla- build.conf ○ Or: sudo kolla/tools/build.py -t source --config-file ./kolla/etc/kolla/kolla-build.conf
  • 29. Now we are ready to build images (2/2)... ● Registry multi-node ○ Add: “ --registry 172.22.2.81:5000 --push” ○ E.g. sudo kolla-build --registry 172.22.2.81:5000 --push -t source horizon cinder keystone ○ To push images to a Dockerhub repository named mykollarepo: ○ sudo kolla-build -n mykollarepo --push -t source horizon cinder keystone ● Add in build logs ○ Any issues in building this is where you start ○ Add: “--logs-dir horizon-log --debug“ ○ E.g. sudo kolla-build --registry 172.22.2.81:5000 --push -t source horizon cinder keystone --logs-dir horizon-log --debug
  • 30. Lets check our images built... ● Lets check for valid generated images rwellum@ubuntuk8s:~$ sudo docker images | grep horizon kolla/centos-source-horizon 4.0.2 5182810deebb 2 minutes ago 1.077 GB ● The Tag ‘4.0.2’ is very important in Kolla… ● We’ll use this and the location of the image to orchestrate
  • 31. How do we Orchestrate our new images (1/2)? ● So we have our custom images. Now we’d like to Orchestrate… ● Kolla is the main project - the tools to build OpenStack Images ● Kolla-Ansible is a sub-project to orchestrate with Kolla images ○ Industry proven, widely used, very reliable! ● Kolla-Kubernetes is another sub project to orchestrate with Kolla images ○ Dev project, to run on Kubernetes cluster, new, exciting, be careful! ● This example is based on Kolla-Kubernetes and using a tool I wrote to stand up an AIO kolla-kubernetes cluster… ● But it applies to any method, manual (following the bare-metal guide: https://docs.openstack.org/kolla-kubernetes/latest/deployment- guide.html) even Kolla-Ansible
  • 32. How do we Orchestrate our new images (2/2)? ● Kolla-Kubernetes relies on a ‘cloud.yaml’ file to stand up OpenStack ● In our example we want to run with our custom keystone, horizon and cinder images ● All other Services will be pulled from dockerhub ● Grab k8s.py - deployment / orchestration tool: ○ git clone https://github.com/RichWellum/k8s.git ○ Replace with hopefully merged version
  • 33. Orchestration continued... ● Standup OpenStack ○ Create a working directory - like ‘os’ ○ Run k0: ■ ../k8s/ko.py eth0 eth1 --image-version ocata --edit-config ○ Note two interfaces required as per normal (MGMT and Neutron) ○ Note edit-config option ○ --help will show all the options available. ● Ko.py will proceed to install Kubernetes and start to bring up OpenStack ● It will pause at the appropriate point to allow the user to edit the cloud.yaml - where you will point the image tag to your local custom image….
  • 34. Changes to Cloud.yaml keystone: all: + image_full: kolla/centos-source-keystone:4.0.2 horizon: all: + image_full: kolla/centos-source-horizon:4.0.2 cinder: all: + image_full: kolla/centos-source-cinder-base:4.0.2
  • 35. Once OpenStack is up... ● Lets confirm we actually orchestrated with local images ○ kubectl get pods --all-namespaces | grep horizon ○ kubectl describe pod horizon-blah -n kolla | grep Image ● And/or connect to your container and look for that proprietary code ○ docker run -tu root -ti horizon-blah /bin/bash ○ kubectl -n kolla exec -it horizon-blah -- ls
  • 36. So you make some changes to your source code.. ● Repeat the steps to build the image ● Kill the container: kubectl delete pod horizon-blah -n kolla ● WHAT NEXT???
  • 37. And commence OpenStacking... ● At this point you have a running Kolla-Kubernetes OpenStack running with custom containers where needed.
  • 38. Building and Orchestrating DEVELOPMENT Local Source Code ORCHESTRATION and OPERATIONS Neutron Nova Cinder GlanceHeat Ironic Keystone Horizon KOLLA BUILD Tools to build containers src/Keystone src/Horizon src/Cinder Helm upgrade / update config Trash and restart src/<Service> Keystone Image Horizon Image Cinder Image <Service> Image Kube Schedul er Kube Controll er Kube SDN Kube DNS Kube etcd Kube Proxy Tiller Kube API KUBERNETES
  • 39. Building and Orchestrating DEVELOPMENT Local Source Code ORCHESTRATION and OPERATIONS Kolla-Kubernetes Neutron Nova Cinder GlanceHeat Ironic Keystone Horizon KOLLA BUILD Tools to build images src/Keystone src/Horizon src/Cinder Helm upgrade / update config src/<Service> Keystone Image Horizon Image Cinder Image <Service> Image Kube Schedul er Kube Controll er Kube SDN Kube DNS Kube etcd Kube Proxy Tiller Kube API Helm delete / Helm install