Open stack design 2012 applications targeting openstack-final

38
Applications Targeting OpenStack Multiple paths to deploying applications on OpenStack clouds. Horizon, Chef & enStratus

description

 

Transcript of Open stack design 2012 applications targeting openstack-final

Page 1: Open stack design 2012   applications targeting openstack-final

Applications

Targeting

OpenStack Multiple paths to deploying

applications on OpenStack

clouds.

Horizon, Chef & enStratus

Page 2: Open stack design 2012   applications targeting openstack-final

Rob Hirschfeld

@zehicle

http://robhirschfeld.com

[email protected]

Matt Ray

@mattray

http://leastresistance.net

[email protected]

Keith Hudgins

@keithhudgins

http://cloudmess.com

[email protected]

Dell, Opscode & enStratus

OpenStack Conference, Spring 2012

Page 3: Open stack design 2012   applications targeting openstack-final

“Deploy Stuff on OpenStack”

There are multiple right ways to leverage

cloud resources.

Our objective is to show you different

options to leverage OpenStack

Each has benefits and limitations

All methods can co-exist!

We want to SHOW you

Dell, Opscode & enStratus

OpenStack Conference, Spring 2012

Page 4: Open stack design 2012   applications targeting openstack-final

Real Work / Real Tools

OpenStack is ready to rock

Having the right tools helps

Shorten time to value

Improve consistency

Work with your strengths

Reference deployment is important

Dell, Opscode & enStratus

OpenStack Conference, Spring 2012

Page 5: Open stack design 2012   applications targeting openstack-final

Architecture

Dell, Opscode & enStratus

OpenStack Conference, Spring 2012

Page 6: Open stack design 2012   applications targeting openstack-final

Taxonomy

OpenStack Components OpenStack Components

AP

I C

lie

nts

A

PI

Cli

en

ts

Op

s In

fra

stru

ctu

re

Hypervisors (KVM)

Hypervisors (KVM)

Crowbar Operations

Mgmt

Operating Systems (Ubuntu 12.04) Operating Systems (Ubuntu 12.04)

Cloud Ecosystem Cloud Ecosystem

Application Management enStratus

Application Management enStratus

DevOps Tools Opscode Chef DevOps Tools Opscode Chef

Physical Infrastructure (Dell PowerEdge C6220, R620/720xd) Physical Infrastructure (Dell PowerEdge C6220, R620/720xd) Chef Chef

DNS/NTP DNS/NTP

Nagios Nagios

OpenStack Cloud APIs OpenStack Cloud APIs

Dashboard (Horizon)

Dashboard (Horizon)

Required Services

RabbitMQ mySQL

Required Services

RabbitMQ mySQL

Ganglia Ganglia

Crowbar Installed Crowbar Installed Key:

Object (Swift) Object (Swift)

Auth (Keystone)

Auth (Keystone)

Images (Glance) Images

(Glance)

Compute (Nova)

Compute (Nova)

Ecosystem Ecosystem

Dell, Opscode & enStratus

OpenStack Conference, Spring 2012

Page 7: Open stack design 2012   applications targeting openstack-final

Today’s Focus Areas

Application Management enStratus

Application Management enStratus

DevOps Tools Opscode Chef DevOps Tools Opscode Chef

OpenStack Cloud APIs OpenStack Cloud APIs

Dashboard (Horizon)

Dashboard (Horizon)

Crowbar Operations

Mgmt

Chef Chef

Dell, Opscode & enStratus

OpenStack Conference, Spring 2012

Page 8: Open stack design 2012   applications targeting openstack-final

One Cloud: Multiple Views

Audience View / Tool Culture

Proof of

Concept

OpenStack

Horizon

“Dashboard”

Exploration &

Self-Service

Developers &

Operations

Opscode

Chef

DevOps &

Continuous

Deploy

CIO &

Enterprise IT

enStratus Imaged Based

GUI Mgmt

Dell, Opscode & enStratus

OpenStack Conference, Spring 2012

Page 9: Open stack design 2012   applications targeting openstack-final

Starting Point:

A Reference Deploy

Dell’s open source Crowbar project lays down a consistent reference deployment

Includes & integrates Nova, Keystone, Glance, Dashboard and Swift.

Important to have a repeatable deployments because consistent & describable implementation matters

Demo starts with OpenStack already deployed (Crowbar uses Chef)

Dell, Opscode & enStratus

OpenStack Conference, Spring 2012

Page 10: Open stack design 2012   applications targeting openstack-final

OpenStack Installer

Crowbar Project Field Tested

Raw servers to full cloud in <2 hours Multi-Node from the ground up Hardened with a year of real deployments

Apache 2 Open Source (on github) Dell area of contribution to OpenStack

Multi-OS: Ubuntu, RHEL, CentOS, SUSE Development “in the open” w/ community engagement

OpenStack Releases (dell.com/OpenStack) Cactus: delivered full bare metal deploys Diablo: added Keystone & Dashboard

Essex: in Beta – we welcome collaboration!

Dell, Opscode & enStratus

OpenStack Conference, Spring 2012

Page 11: Open stack design 2012   applications targeting openstack-final

Setup of OpenStack

Server(s)

De

ll “

Cro

wb

ar”

Op

s M

an

ag

em

en

t

Operating System

Chef

Server

Network Configuration

DHCP

Cro

wb

ar

Ma

gic

Ha

pp

en

s!

Orchestration

State Machine

Run List

Config.

Hardware Config

(uses “Sledgehammer”)

OpenStack Components

Dell, Opscode & enStratus

OpenStack Conference, Spring 2012

Page 12: Open stack design 2012   applications targeting openstack-final

Demo Environment

No

va

Co

ntr

olle

r

No

va

Co

mp

ute

No

va

Co

mp

ute

No

va

Co

mp

ute

Ch

ef Se

rve

r (v

ia C

row

ba

r)

en

Str

atu

s

Se

rve

r

VM

VM VM

VM

VM

VM

Ho

rizo

n

(Da

shb

oa

rd)

Management UIs

Dell, Opscode & enStratus

OpenStack Conference, Spring 2012

Page 13: Open stack design 2012   applications targeting openstack-final

OpenStack Dashboard

Users & Tenants

Images

Available Images

Uploading to Glance

Quotas

IP Pools

SSH Key

Access to a VM

Dell, Opscode & enStratus

OpenStack Conference, Spring 2012

Page 14: Open stack design 2012   applications targeting openstack-final

Dell, Opscode & enStratus

OpenStack Conference, Spring 2012

Page 15: Open stack design 2012   applications targeting openstack-final

Dell, Opscode & enStratus

OpenStack Conference, Spring 2012

Page 16: Open stack design 2012   applications targeting openstack-final

Dell, Opscode & enStratus

OpenStack Conference, Spring 2012

Page 17: Open stack design 2012   applications targeting openstack-final

Dell, Opscode & enStratus

OpenStack Conference, Spring 2012

Page 18: Open stack design 2012   applications targeting openstack-final

Dell, Opscode & enStratus

OpenStack Conference, Spring 2012

Page 19: Open stack design 2012   applications targeting openstack-final

Dell, Opscode & enStratus

OpenStack Conference, Spring 2012

Page 20: Open stack design 2012   applications targeting openstack-final

Dell, Opscode & enStratus

OpenStack Conference, Spring 2012

DevOps

Page 21: Open stack design 2012   applications targeting openstack-final

Dell, Opscode & enStratus

OpenStack Conference, Spring 2012

Infrastructure as Code

Programmatically provision and configure your infrastructure

Treat it like any other code base

Track changes

Versioned

Branches

Reconstruct your business from a code repository, data backups, and bare metal resources.

Page 22: Open stack design 2012   applications targeting openstack-final

Dell, Opscode & enStratus

OpenStack Conference, Spring 2012

Chef

Resources represent infrastructure actions

Packages, files, services, users, etc.

Recipes are the execution of Resources

Explicit order of deployment

Cookbooks contain Recipes and support

Versioned and shared

Nodes have a run list of recipes &

attributes

Page 23: Open stack design 2012   applications targeting openstack-final

Dell, Opscode & enStratus

OpenStack Conference, Spring 2012

So you have a Cloud...

Let’s put something on it!

Page 24: Open stack design 2012   applications targeting openstack-final

Dell, Opscode & enStratus

OpenStack Conference, Spring 2012

Let’s talk to APIs

Knife

Page 25: Open stack design 2012   applications targeting openstack-final

Dell, Opscode & enStratus

OpenStack Conference, Spring 2012

knife openstack Available openstack subcommands: (for details, knife SUB-COMMAND -

-help)

** OPENSTACK COMMANDS **

knife openstack flavor list (options)

knife openstack image list (options)

knife openstack server create (options)

knife openstack server delete SERVER [SERVER] (options)

knife openstack server list (options)

Page 26: Open stack design 2012   applications targeting openstack-final

Dell, Opscode & enStratus

OpenStack Conference, Spring 2012

knife openstack flavor list ID Name Virtual CPUs RAM Disk

1 m1.tiny 1 512 MB 0 GB

2 m1.small 1 2048 MB 20 GB

3 m1.medium 2 4096 MB 40 GB

4 m1.large 4 8192 MB 80 GB

5 m1.xlarge 8 16384 MB 160 GB

Page 27: Open stack design 2012   applications targeting openstack-final

Dell, Opscode & enStratus

OpenStack Conference, Spring 2012

knife openstack image list ID Name

13 natty-server-cloudimg-amd64

12 natty-server-cloudimg-amd64-kernel

15 oneiric-server-cloudimg-amd64

14 oneiric-server-cloudimg-amd64-kernel

Page 28: Open stack design 2012   applications targeting openstack-final

Dell, Opscode & enStratus

OpenStack Conference, Spring 2012

knife openstack server create knife openstack server create -N k3 -f 2 -I 15 -S key

Instance ID: 1207

Instance Name: k3

Flavor: 2

Image: 15

SSH Keypair: key

Waiting for server........................

Public IP Address: 8.21.28.53

Private IP Address: 8.21.28.53

Waiting for sshd..done

Bootstrapping Chef on 8.21.28.53

Page 29: Open stack design 2012   applications targeting openstack-final

Dell, Opscode & enStratus

OpenStack Conference, Spring 2012

knife openstack server list Instance ID Name Public IP Private IP Flavor Image Keypair State

1205 k1 8.21.28.51 8.21.28.51 1 13 key active

1206 k2 8.21.28.52 8.21.28.52 1 13 key active

1206 k3 8.21.28.53 8.21.28.53 2 15 key active

Page 30: Open stack design 2012   applications targeting openstack-final

Dell, Opscode & enStratus

OpenStack Conference, Spring 2012

ssh -i ~/.ssh/key.pem [email protected]

Welcome to Ubuntu 11.04 (GNU/Linux 2.6.38-13-virtual x86_64)

* Documentation: https://help.ubuntu.com/

System information as of Thu April 19 13:43:29 UTC 2012

System load: 0.08 Processes: 63

Usage of /: 40.8% of 1.35GB Users logged in: 0

Memory usage: 6% IP address for eth0: 8.21.28.53

Swap usage: 0%

---------------------------------------------------------------------

<snip>

Get cloud support with Ubuntu Advantage Cloud Guest

http://www.ubuntu.com/business/services/cloud

The programs included with the Ubuntu system are free software;

the exact distribution terms for each program are described in the

individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by

applicable law.

To run a command as administrator (user "root"), use "sudo <command>".

See "man sudo_root" for details.

ubuntu@k3:~$

Page 31: Open stack design 2012   applications targeting openstack-final

Dell, Opscode & enStratus

OpenStack Conference, Spring 2012

Build & Manage Anything

Linux, Windows, Solaris, OSX, BSDs

Servers, workstations, clusters

IaaS infrastructure

PaaS infrastructure

SaaS applications

Storage systems

Page 32: Open stack design 2012   applications targeting openstack-final

Dell, Opscode & enStratus

OpenStack Conference, Spring 2012

Infrastructure Portability

knife-ec2

knife-hp

knife-rackspace

knife-openstack

(and many more)

Page 33: Open stack design 2012   applications targeting openstack-final

Dell, Opscode & enStratus

OpenStack Conference, Spring 2012

Page 34: Open stack design 2012   applications targeting openstack-final

Application Portal

On-Premise private/hybrid cloud management

Business-driven controls

Application-based management and

automation

True governance for your cloud

Dell, Opscode & enStratus

OpenStack Conference, Spring 2012

Page 35: Open stack design 2012   applications targeting openstack-final

Cloud Management

Dell, Opscode & enStratus

OpenStack Conference, Spring 2012

Page 36: Open stack design 2012   applications targeting openstack-final

Application Automation

Multi-tiered architecture management

Use your own config management

Load-based or custom scaling controls

Multi-region and multi-cloud architectures

Dell, Opscode & enStratus

OpenStack Conference, Spring 2012

Page 37: Open stack design 2012   applications targeting openstack-final

Conclusion

There are many correct ways to access

OpenStack capability

Choose the tools that work best for your

users

You do not have to pick one, they will

work together

Dell, Opscode & enStratus

OpenStack Conference, Spring 2012

Page 38: Open stack design 2012   applications targeting openstack-final

Rob Hirschfeld

@zehicle

http://robhirschfeld.com

[email protected]

Matt Ray

@mattray

http://leastresistance.net

[email protected]

Keith Hudgins

@keithhudgins

http://cloudmess.com

[email protected]

Dell, Opscode & enStratus

OpenStack Conference, Spring 2012