Virtual Infrastructure: VMs and Containers · 2019-01-30 · Virtual Infrastructure: VMs and...

19
An Operator Led Consortium Virtual Infrastructure: VMs and Containers Andy Bavier and Gopinath Taget ONF CORD Build Nov. 7-9, 2017

Transcript of Virtual Infrastructure: VMs and Containers · 2019-01-30 · Virtual Infrastructure: VMs and...

Page 1: Virtual Infrastructure: VMs and Containers · 2019-01-30 · Virtual Infrastructure: VMs and Containers Andy Bavier and Gopinath Taget ONF ... Deployment Architecture (in the near

An Operator Led Consortium

Virtual Infrastructure: VMs and Containers

Andy Bavier and Gopinath TagetONF

CORD Build Nov. 7-9, 2017

Page 2: Virtual Infrastructure: VMs and Containers · 2019-01-30 · Virtual Infrastructure: VMs and Containers Andy Bavier and Gopinath Taget ONF ... Deployment Architecture (in the near

CORD platform evolution

2

Initial CORD

prototype(ONS 2015)

Cuttingedge innovate

Production-ready

systemoperationalize

Deploying, maintaining, operating CORD

infrastructure services

Container technology plays an important role

Container-based VNFs + ONOS VTN overlay

Page 3: Virtual Infrastructure: VMs and Containers · 2019-01-30 · Virtual Infrastructure: VMs and Containers Andy Bavier and Gopinath Taget ONF ... Deployment Architecture (in the near

Goals of this talk

3

● What containers and VMs are currently running on the CORD 4.0 head node and compute nodes?

● What plans does the community have for deploying and managing CORD infrastructure services using Kubernetes?

● What plans does the community have for using CORD to orchestrate VNFs on Kubernetes?

● How can I get involved with this work?

Page 4: Virtual Infrastructure: VMs and Containers · 2019-01-30 · Virtual Infrastructure: VMs and Containers Andy Bavier and Gopinath Taget ONF ... Deployment Architecture (in the near

CORD 4.0 Management Plane

4

Page 5: Virtual Infrastructure: VMs and Containers · 2019-01-30 · Virtual Infrastructure: VMs and Containers Andy Bavier and Gopinath Taget ONF ... Deployment Architecture (in the near

CORD 4.0 management planehead node

5

management fabric

mgmtbr fabric

XOS core and service synchronizers~20 Docker containers (R-CORD)

MAAS automation services6 Docker containers

OpenStack control services11 LXC containers

ONOSregistry, mavenrepo,

consul

Page 6: Virtual Infrastructure: VMs and Containers · 2019-01-30 · Virtual Infrastructure: VMs and Containers Andy Bavier and Gopinath Taget ONF ... Deployment Architecture (in the near

CORD containers on the head node

Commands to inspect Docker containers on the head node:XOS: $ cd /opt/cord_profile; docker-compose -p rcord ps

ONOS VTN: $ cd /opt/onos_cord; docker-compose ps

ONOS fabric: $ cd /opt/onos_fabric; docker-compose ps

MaaS: $ cd /etc/maas; docker-compose -f automation-compose.yml ps

Docker registry: $ cd /etc/maas; docker-compose -f registry-compose.yml ps

OpenStack: $ sudo lxc list

(Services not containerized: MaaS, Bind/DNS)

6

Page 7: Virtual Infrastructure: VMs and Containers · 2019-01-30 · Virtual Infrastructure: VMs and Containers Andy Bavier and Gopinath Taget ONF ... Deployment Architecture (in the near

CORD 4.0 management planeOpenStack compute node

7

management fabric

mgmtbr fabric

service1 VMvSG VM

service2 VM

br-intOVS

nova-compute

ONOS VTN app

Neutron API calls

Page 8: Virtual Infrastructure: VMs and Containers · 2019-01-30 · Virtual Infrastructure: VMs and Containers Andy Bavier and Gopinath Taget ONF ... Deployment Architecture (in the near

CORD 4.0: XOS Service

8

XOS core servicesXOS servicesynchronizer

head node

XOS Service consists of:● Model● Ansible playbook

management

service VM

compute node

Ansibleplaybook

overmgmt net

fabric

tointernet

Page 9: Virtual Infrastructure: VMs and Containers · 2019-01-30 · Virtual Infrastructure: VMs and Containers Andy Bavier and Gopinath Taget ONF ... Deployment Architecture (in the near

Kubernetes Container Orchestration

• Client-Server Architecture• Server provides, API, Controller and Scheduler• Client provides container management, metrics and service

proxy• Independent cluster state in ETCD key-value store• Dynamic service composition (with Pods and services)• Network access control (with CNI plugin)• Distributed systems guarantees (availability, scalability,

consistency)• Lot more...

9

Page 10: Virtual Infrastructure: VMs and Containers · 2019-01-30 · Virtual Infrastructure: VMs and Containers Andy Bavier and Gopinath Taget ONF ... Deployment Architecture (in the near

Kubernetes in CORD

• Infrastructure Orchestration (Eg: Openstack)• VNF Orchestration• Service Abstraction• Hybrid Container-VM environment

10

Page 11: Virtual Infrastructure: VMs and Containers · 2019-01-30 · Virtual Infrastructure: VMs and Containers Andy Bavier and Gopinath Taget ONF ... Deployment Architecture (in the near

Infrastructure Orchestration

11

Page 12: Virtual Infrastructure: VMs and Containers · 2019-01-30 · Virtual Infrastructure: VMs and Containers Andy Bavier and Gopinath Taget ONF ... Deployment Architecture (in the near

Infrastructure Orchestration update

• Collaboration with 99Cloud• Ubuntu 16.04 with 4.4 kernel or later• Kubernetes as an infrastructure component of CORD• Openstack as containers orchestrated by kubernetes• Using Kolla framework: https://wiki.openstack.org/wiki/Kolla

12

Page 13: Virtual Infrastructure: VMs and Containers · 2019-01-30 · Virtual Infrastructure: VMs and Containers Andy Bavier and Gopinath Taget ONF ... Deployment Architecture (in the near

Deployment Architecture (in the near future)

13

CORD Platform

Hardware Infrastructure

Security Policy

Ansible MaaS

Docker OVS based Overlay Network

Kubernetes/HelmUI/LB/DNS/Log/Sec/Store/Metrics/Monitors

XOS

VNF

VNF

VNF

VNF

Open Stack

ONOS

ONOS Apps

VM based VNF

VM based VNF

VM based VNF

VM based VNF

Page 14: Virtual Infrastructure: VMs and Containers · 2019-01-30 · Virtual Infrastructure: VMs and Containers Andy Bavier and Gopinath Taget ONF ... Deployment Architecture (in the near

Challenges

• Complex dependencies (OS, Kernel, Component versions)• Complex integration (several infrastructure pieces)

14

Page 15: Virtual Infrastructure: VMs and Containers · 2019-01-30 · Virtual Infrastructure: VMs and Containers Andy Bavier and Gopinath Taget ONF ... Deployment Architecture (in the near

VNF Orchestration

15

Page 16: Virtual Infrastructure: VMs and Containers · 2019-01-30 · Virtual Infrastructure: VMs and Containers Andy Bavier and Gopinath Taget ONF ... Deployment Architecture (in the near

VNF Orchestration status

• Collaboration with Linker Networks• Pure OVS based Overlay network implementation• ONOS-VTN control of Kubernetes OVS Overlay network

16

Page 17: Virtual Infrastructure: VMs and Containers · 2019-01-30 · Virtual Infrastructure: VMs and Containers Andy Bavier and Gopinath Taget ONF ... Deployment Architecture (in the near

Overlay Network Architecture

17

XOS

Kubernetes API ServiceONOS-VTN

Node

OVS Overlay

VNF

VNF

VNF

Kub

elet

/CN

I

1

2

DHCP/IPAM3

4

5

Page 18: Virtual Infrastructure: VMs and Containers · 2019-01-30 · Virtual Infrastructure: VMs and Containers Andy Bavier and Gopinath Taget ONF ... Deployment Architecture (in the near

Challenges

• Subnet distribution• Independent IPAM and DHCP service• Modifications to ONOS-VTN (use K8S API and delink with

Neutron to use independent DHCP and IPAM services)• Multiple OVS networks attached to PODS

18

Page 19: Virtual Infrastructure: VMs and Containers · 2019-01-30 · Virtual Infrastructure: VMs and Containers Andy Bavier and Gopinath Taget ONF ... Deployment Architecture (in the near

Call to Arms!

• ISTIO based service abstraction and load balancing• Kubernetes based orchestration of ONOS Apps and XOS• Other openflow based networks for Kubernetes overlays and

ONOS Overlays

19