#6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to...

52
#6162 - How to Build and Operate Your Private Cloud with Ubuntu on IBM Power Systems and OpenPOWER Ivan Doboš, Solutions Architect, IHV team Canonical Think Conference March 2018

Transcript of #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to...

Page 1: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum

#6162 - How to Build and Operate Your Private Cloud with Ubuntu on IBM Power Systems and OpenPOWER

Ivan Doboš, Solutions Architect, IHV teamCanonical

Think ConferenceMarch 2018

Page 2: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum

Delivering the economics and agility of hyperscale innovators to enterprises globally

Developer productivity | Infrastructure economics

2

Page 3: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum

● 14.04 LTS first release (April 2014)

● First commercial Linux to support:■ POWER8 LE■ CAPI■ KVM, PowerKVM■ Docker, LXC, LXD■ Cloud Foundry

● Canonical is Platinum OpenPower Member○ Robbie Williamson - Chairman of the Board)○ Ivan Doboš - Technical Steering Committee

● Ubuntu Open Source ecosystem available for Power; IBM software charms available now

IBM / Canonical Power Relationship

Page 4: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum

Why cloud?

● (Hyper)scale

● Flexibility

● Efficiency ==> better economics

● Successful cloud

– Hosting applications

– Growing (scaling out)

– Providing new features (Regular upgrades)

– minimizing operational costs by Automation

Page 5: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum

From bare metal to containers ...

● Hardware (compute, network, storage)

● Operating system

● Applications

● Containers● Applications● Containers *

● Applications

● Hypervisor● Virtual Machines

● Operating System● Applications● Containers

● Application

* nested containers, Docker under LXD example

Page 6: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum

Ubuntu Server

Cloud Solution Stack: Enabling Operations at Scale

Containers (LXD)

Juju

MAAS

OpenStack

VMs - KVM

Lan

dsc

ape

Enterprise-class, hyperscale server operating system

Landscape: Systems management & patching

Ubuntu OpenStack:Canonical-produced optimized and interop tested openstack packages

Juju: Cloud deployment, integration, scaling, upgrading

LXD: Pure-containerhypervisor

MAAS: Metal-as-a-Service for bare-metal provisioning

DockerKubernetes: Container coordination

Containers (Docker)

6

Kubernetes

Page 7: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum

Cloud

Elastic hybrid cloud

Public Clouds

Public Clouds

Bulk compute data center

Edge

Transactional Edge ( IoT )

Page 8: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum

First things first – Bare metal

maas.ioKey to Private DC Economics is Automation

Page 9: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum
Page 10: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum

MAAS Feature MatrixUser Interfaces

● Web● REST API● CLI● Python

Operating Systems

● CentOS 6, 7● RHEL 6,7● Ubuntu● Windows 2003, 2010● Custom

BMC protocols

● IPMI● AMT● Redfish*

Chassis support

● Cisco UCS● Microsoft OCS● Seamicro 15K● HP Moonshot

VM Controllers

● KVM Virsh● PowerKVM● vSphere

Disk layout

● Partitioned● Raw● RAID● LVM● bcache

Host NIC config

● Raw● Tagged VLAN● Bonded● Bridged*

SDDC

● IPAM, DNS and DHCP● Dynamic allocation● Availability Zones

● SSH & BMC credential setup● Auto-enlistment via PXE● Hardware inventory● Auto-tagging ● Custom commissioning● Post-install configuration

Page 11: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum

Time from request to VM

Page 12: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum

Cloud

>>> from boto import ec2>>> c = ec2.connect('us-west-2')>>> r = c.run_instances(

min_count=3,aws_image_id, instance_type='c1.xlarge')

Metal

RequestProcure

RackFirmwareConfigureInstall OS

LaunchCredentialsAutomation

Page 13: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum

The devil in the details

NodeDiscoveryHW inventoryBMCBIOS & firmwareBoot processOS DeploymentDiskless / EphemeralStorage & NetworkingDecommissioning

NetworkDNS, NTP & moreTopology & addressingL2 & L3 config

InfrastructurePDUsSwitches & routersStorage appliances

PXE & TFTPlshwfreeipmifwupdBIOS & UEFIcurtiniSCSIcloud-initNIST-wipe

bind, ntpdIPAMDHCP

DCIMOpenFlowSNMP MIBsVendor stuf

Page 14: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum

MAASThe bare metal API

Inventory. Commission. Deploy.

IP, DHCP, DNS, PXE, IPMIready to roll

Page 15: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum

4 Web interface and REST API

1 Automated physical provisioning

2 Dynamic allocation to workloads

3 IP Address Management (IPAM)

5 Windows, Linux OS install

Page 16: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum

Windows

Custom images

Ubuntu, RHEL, SUSE

Page 17: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum

MAASMachine configuration

Applicationmodeling

Operator setup

“Please give me up a machine of ppc64el

architecture, with 24 GB RAM, a root disk of 300GB

and at least 6 more 3TB disks, with an nVidia

GPGPU running Ubuntu.”

Page 18: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum

MAAS 2.0Changes the provisioning game

Page 19: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum

HA Region Controller(1-3 servers)

- highly available- users and groups- resource allocation- central postgres db- machine inventory

Single view of server status, API endpoint, web UI.

Rack Controller

* ideally on switch* typically in-rack* cache of images* backup for adjacent racks

Provides PXE boot and local OS image delivery for installation.

Rack Controller

100k servers in a Region

Server

Server

Server

Server

Server

Server

Server

Server

Server

Server

Server

Server

Server

Page 20: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum

High Availability forRegion & Rack services

Page 21: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum

Region

Rack 1 Rack 2 Rack 3

Region○ Region HA

○ Rack HA

Page 22: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum

ubuntu.com/lxd

github.com/lxc

linuxcontainers.org

Page 23: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum

LXC 2.0 addsthe LXD container hypervisor

Page 24: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum

LXD provides machine containers

Page 25: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum

Physical Machines

Virtual Machines

Linux Containers

Machine containers

Page 26: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum

➢ Ultra fast “vm-lite” guests (bare metal speed)➢ Any distribution of Linux - e.g. Ubuntu, CentOS➢ Starts in less than 1 second➢ 15x density of KVM or ESX for idle workloads

LXD is Canonical’s container hypervisor

host A

nova-lxd lxc cli

lxdkernel

other restful apps

lxc machine

LXD REST API

host B

lxc machine

lxdkernel

host C host D host ...

lxc machine

lxc machine

lxc machine

lxdkernel lxdkernel lxdkernel

Page 27: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum

● Lift and shift for existing applications

● Collocation of different workloads on the same node

– Hyper-converged architecture as a default for Canonical OpenStack

● More efficient way of using instances in cloud

– typically an instance in Cloud = VM– Run containers inside an instance

● Instances in cloud implemented as LXC containers

– LXD as a supported hypervisor for OpenStack– 14x greater density with LXD than with VMs (tested on x86), lower latency

LXD – benefits for Cloud

Page 28: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum

jujucharms.com

Operate big software at scale on any cloud

Page 29: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum

the phase change of modern software

Page 30: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum

scarcity has shifted from code to ops

(Are you ready to operate a SW you don’t understand?)

Page 31: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum
Page 32: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum

● Imagine ‘open source operations’– Free, downloadable, driven by the community and/or SW vendors– Reflecting the release changes of the applications to operate– Providing functions like:

● installation/uninstallation● upgrades● configuration management● scale● integration between applications● ‘must to have’ generic and also application specific actions: backup,

restore, pause/restart, ...– ?– reuse operations code in completely different architectures

How to fix it?

Page 33: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum
Page 34: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum

your app

Reuse across clouds

vmware

test and dev vm’s

developer laptop(lxd containers)

gce / azure / oracle

aws

openstackbare metal

Page 35: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum

Ubuntu OpenStack

65% of large production OpenStack deployments run Ubuntu

Page 36: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum

Canonical OpenStack

14

Nova Horizon

KeystoneCeilometer /Telemetry

Neutron

Ubuntu 16.04 LTS

MAAS

Management & Automation

Infrastructure Services

CinderSwift Glance

Landscape

Juju

Page 37: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum

OpenStack Architecture example

Ceph

Swift

Baremetal

Virtual Machine

Linux Container (LXC)

MySQL/1

keystone/1

horizon/1

juju 1

LDS1

Neutron/1

rabbit/1

cinder/1

glance/1

Ceilo/1

MongoDB1

pgsql/1

juju3

LDS2

Neutron/2

keystone/2

MySQL/2

rabbit/2

cinder/2

horizon2

Ceilo/2

MongoDB2

glance/2

pgsql/2

MySQL/0

rabbit/0

keystone/0

horizon/0

juju 0MAAS 1

Neutron/0

cinder/0

glance/0

Ceilo/0

MongoDB0

LDS0

pgsql/0

Nova-KVM Nova-LXD

Ceph

Swift

Ceph

Swift

Page 38: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum

Ocata

Kilo

OpenStack Archive Upgrade Guarantee 14.04 14.10 15.04 15.10 16.04 16.10 17.04 17.10 18.04 18.10 19.04

Ubuntu 14.04 LTS

Mitaka LTS

Ubuntu 16.04 LTS 5 years

Juno

Liberty

Icehouse LTS

Mitaka LTS

Newton

5 years

5 years

5 years

5 years

18 months

18 months

18 months

18 months

18 months extra 18 months for customers

extra 18 months for customers

Pike 18 months

Queens LTS

Ubuntu 18.04 LTS 5 years

Queens LTS

Page 39: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum

KubernetesCanonical’s distribution of

Page 40: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum

easy, stable, latest release of upstream

Page 41: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum

any CPU architecture

x86s390x

Page 42: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum

extensible by design

NFS

Page 43: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum

rich accessory ecosystem

Page 44: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum

Why Canonical?

Most popular cloud andcontainer operating system

Launch partner as a KCSP

Page 45: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum

Pure upstream, latest & greatest versions

Operates on AWS, Azure, GCE, OpenStack, VMWare

Bare metal operations with MAAS

100% compatible with Google’s Kubernetes

Secured. TLS, Kernel Live patching, confinement

Upgradable between each Kubernetes Release

Cost efective at scale

Why Canonical Kubernetes?

Page 46: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum

Support for GPUs

● Automated GPU Discovery

● Live GPU adjustments

● Automated configuration of applications

Page 47: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum

*

LXD, Kubernetes & GPUs

Page 48: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum

ConclusionCloud Hardware

Single Host Bare Metal Cluster Cloud Cluster Single Host Cloud Cluster

Juju + helm, sudo give me Artificial Intelligence: check!

ARM64

*coming soon to IBM Power

Page 49: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum

*

In Summary

➢ Ubuntu #1 Linux for Cloud, ScaleOut, Dev Ops

– >65% Production OpenStack clouds are Ubuntu

– Juju and related cloud tooling supports DevOps speed

➢ Operating on premise with the efficiency and flexibility of a public cloud

– Combine maas, LXD, Juju and OpenStack as needed

➢ Ubuntu on IBM Systems: great Ubuntu experience on IBM Power and IBM Z/LinuxONE

– Global Partnership with IBM

Page 50: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum

*

Canonical & Open Source

Page 51: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum

Thank You!

[email protected]

Page 52: #6162 - How to Build and Operate Your Private Cloud with ...€¦ · First commercial Linux to support: POWER8 LE CAPI KVM, PowerKVM Docker, LXC, LXD Cloud Foundry Canonical is Platinum