automating hard things may 2015

50
NYC OpenStack meet Mark Baker OpenStack Product Group @ Canonical Automating hard things

Upload: mark-baker

Post on 16-Aug-2015

140 views

Category:

Software


4 download

TRANSCRIPT

Page 1: Automating hard things   may 2015

NYC OpenStack meet

Mark BakerOpenStack Product Group @ Canonical

Automating hard things

Page 2: Automating hard things   may 2015

The promise of OpenStack

1. Do things faster2. Maybe do them cheaper

Both of these are really hard to achieve without automation

Page 3: Automating hard things   may 2015

Hard things to automate

1. Hardware2. Deploying OpenStack3. Deploying OpenStack from Source with

code from $your_source

Page 4: Automating hard things   may 2015

Hard things to automate

1. Hardware2. Deploying OpenStack3. Deploying OpenStack from Source with

code from $your_source

Page 5: Automating hard things   may 2015

Deploy from source - demo

Page 6: Automating hard things   may 2015

Why did cloud succeed?

Page 7: Automating hard things   may 2015

Why did cloud succeed?

1. Re-introduced the concept of pay-as-you-go computing infrastructure

2. Solved a very common use case in a spectacular way

Page 8: Automating hard things   may 2015

Developer Bob says:Give me a new server to run this

thing I'm working on

Page 9: Automating hard things   may 2015

Bob's Use Case

1. Give me a new server machine(with this much CPU, RAM, disk)

2. Install my chosen operating system

3. With the drives configured like this

4. On this specific network

5. With my credentials on it

Page 10: Automating hard things   may 2015

Developer Bob says:Can it be this week? Ah, OK.Well, can it be this month?

Page 11: Automating hard things   may 2015

Wouldn't it great if bare metal..

was just like the cloud?

Page 12: Automating hard things   may 2015

Any OSWindows

Custom images

“Please provide a machine with 24 GB RAM, a root

disk of 300GB and at least 6 more 3TB disks, and an

nVidia GPGPU”

Story

Ubuntu, Red Hat, SUSE

Page 13: Automating hard things   may 2015

MAASMachine configuration

Service orchestration

Manual setup

“Please provide a machine with 24 GB RAM, a root

disk of 300GB and at least 6 more 3TB disks, with an

nVidia GPGPU”

Story

Page 14: Automating hard things   may 2015

What can MAAS do?

● Discover new hardware● Configure disks● Configure networking● Install an operating system● Set up admin credentials● Configure devops automation

Page 15: Automating hard things   may 2015

Chef & MAAS● Fully-supported devops automation

● Manage bare metal kit with knife & Chef provisioning

Page 16: Automating hard things   may 2015

How does MAAS do it?● Packs in a lot of functionality

DHCP, DNS, TFTP, iSCSI, HTTP

IPMI, iLO, DRAC, UCS, AMT

● Probes and configures BMCs and PDUs & remotely controls machine power state

● Unique image-based installer

● Detects hardware component details & auto-tags machines based on capabilities

● Models L2 & L3 networks & interfaces

● Secure decommission

Page 17: Automating hard things   may 2015

Cloud-style RESTful API● Find me a node

POST /api/1.0/nodes/?op=acquire

[cpu_count, mem, arch, tags, name]

● Install OS & boot

POST /api/1.0/nodes/{id}/?op=start

● Get node hardware & LLDP details

GET /api/1.0/nodes/{id}/?op=details

● Discover servers in a chassis

POST /api/1.0/nodegroups/{id}/?op=probe

Page 18: Automating hard things   may 2015

What should I use MAAS for?● Managing bare-metal at scale

OpenStack, Web, Storage, Hadoop & more

● Replacing homegrown provisioners

Fully supported PXE & OS install

● Building your own bare-metal cloud

Embedding MAAS is easy

● Keeping your ops team happy

Abstract your bare-metal complexity

Page 19: Automating hard things   may 2015

Region Controller

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

Machine allocation, status, workflows, web UI. Needs low bandwidth to many clusters.

Handles 100,000 machines.

Cluster Controller

- close to machines- typically in-rack- large-file cache

Provides PXE boot and OS delivery for installation.

Has high bandwidth to a few servers - the cluster.

Cluster Controller

Cluster Controller

Cluster Controller

Cluster Controller...

serverserver…typically x 10-200serverserver

… serverserverserver…

1x HA 2000x 100,000xStory

Page 20: Automating hard things   may 2015

Automating Deployment of OpenStackThe OpenStack Autopilot

Page 21: Automating hard things   may 2015

1

2

3

4

5

Reality meets design

Autopilot deploys OpenStack

Page 22: Automating hard things   may 2015

1

2

3

4

5

Reality meets design

Autopilot deploys OpenStack

Autopilot monitors cloud state

Page 23: Automating hard things   may 2015

1

2

3

4

5

Reality meets design

Autopilot deploys OpenStack

Autopilot monitors cloud state

Administrator allocates additional resources

Page 24: Automating hard things   may 2015

1

2

3

4

5

Reality meets design

Autopilot deploys OpenStack

Autopilot monitors cloud state

Administrator allocates additional resources

Autopilot calculates delta between current state and desired state

Page 25: Automating hard things   may 2015

1

2

3

4

5

Reality meets design

Autopilot deploys OpenStack

Autopilot monitors cloud state

Administrator allocates additional resources

Autopilot calculates delta between current state and desired state

Autopilot orchestrates service models until reality meets design

Page 26: Automating hard things   may 2015

Demo!

Page 27: Automating hard things   may 2015

Coming soon…..More choices, more flexibility, more OpenStack

Page 28: Automating hard things   may 2015

More choices

Hypervisor Storage

SwiftLXD Containers Ceth

Networking

Page 29: Automating hard things   may 2015

1

2

3

4

5

More intelligence

Hardware roles

Hardware quotas

Node maintenance

Controlled cloud reboot

Architecture optimisations

Page 30: Automating hard things   may 2015

1

2

3

4

5

More intelligence

Hardware roles

Resource quotas

Node maintenance

Controlled cloud reboot

Architecture optimisations

Page 31: Automating hard things   may 2015

1

2

3

4

5

More intelligence

Hardware roles

Resource quotas

Node maintenance

Controlled cloud reboot

Architecture optimisations

Page 32: Automating hard things   may 2015

1

2

3

4

5

More intelligence

Hardware roles

Resource quotas

Node maintenance

Controlled cloud reboot

Architecture optimisations

Page 33: Automating hard things   may 2015

1

2

3

4

5

More intelligence

Hardware roles

Resource quotas

Node maintenance

Controlled cloud reboot

Architecture optimisations

Page 34: Automating hard things   may 2015

OpenStack upgrades: Kilo -> Liberty

Page 35: Automating hard things   may 2015

Canonical’s OpenStack CI-as-a-Service

● Validate code with upstream git tip or stable● Validate new vendor code against upstream git tip or stable● Validate enterprise branches against upstream git tip or stable

● Run CI tests in “real-world” multi-node scenarios● Build a cloud of arbitrary scale and complexity from tip● Deploy to metal, cloud, or virtualized environment● Verify deployed cloud with Tempest, Rally, or other tests

MAAS Juju OpenStack Jenkins OILTesting

Page 36: Automating hard things   may 2015

What’s supported from source?

Page 37: Automating hard things   may 2015

Questions?

Page 38: Automating hard things   may 2015

Demo Backup

Page 39: Automating hard things   may 2015
Page 40: Automating hard things   may 2015
Page 41: Automating hard things   may 2015
Page 42: Automating hard things   may 2015
Page 43: Automating hard things   may 2015
Page 44: Automating hard things   may 2015
Page 45: Automating hard things   may 2015
Page 46: Automating hard things   may 2015
Page 47: Automating hard things   may 2015
Page 48: Automating hard things   may 2015
Page 49: Automating hard things   may 2015
Page 50: Automating hard things   may 2015