Top Banner
© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. Managing OpenStack with Heat Orchestration for “OpenStack on OpenStack” Clint Byrum / Havana OpenStack Summit April 16, 2013
31

Deploying and Managing OpenStack with Heat

May 06, 2015

Download

Technology

HP Helion
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Deploying and Managing OpenStack with Heat

© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

Managing OpenStack with HeatOrchestration for “OpenStack on OpenStack”Clint Byrum / Havana OpenStack Summit April 16, 2013

Page 2: Deploying and Managing OpenStack with Heat

© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

You have a problem

http://images.cryhavok.org/v/Wat.jpg.html

Page 3: Deploying and Managing OpenStack with Heat

© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

I have a problem

http://telostherapy.blogspot.com/2012_10_01_archive.html

Page 4: Deploying and Managing OpenStack with Heat

© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

We have a problem

http://coconnect.me/2011/11/11/hello-colorado-we-have-a-problem/

Page 5: Deploying and Managing OpenStack with Heat

© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

DIRTY FLOORS

http://www.flickr.com/photos/lambj/2714026706/

Im in ur houz messing up ur flooorz

Page 6: Deploying and Managing OpenStack with Heat

© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

The solution is obvious and simple - vacuum

http://www.flickr.com/photos/exlibris/4768359807/

Page 7: Deploying and Managing OpenStack with Heat

© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

In theory, we are all capable of sending people to Space, given enough time...

http://www.flickr.com/photos/ttrueman/8085059326/

Page 8: Deploying and Managing OpenStack with Heat

© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

But, we have to vacuum

http://www.flickr.com/photos/ncreedplayer/2147181279/

Page 9: Deploying and Managing OpenStack with Heat

© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

NO stupid

http://www.flickr.com/photos/graustark/2278714646/

Page 10: Deploying and Managing OpenStack with Heat

© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

DataCenter operators have dirty floors too

http://www.flickr.com/photos/mogwai_83/3022261893/

Page 11: Deploying and Managing OpenStack with Heat

© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

But thats my job...

Page 12: Deploying and Managing OpenStack with Heat

© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

If you run a datacenter with little or no automation...

Page 13: Deploying and Managing OpenStack with Heat

© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

If you run a datacenter with little or no automation, your job sucks

Page 14: Deploying and Managing OpenStack with Heat

© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

So stop wasting time, automate

Page 15: Deploying and Managing OpenStack with Heat

© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.15

But I did, I have (chef/puppet/salt)

Page 16: Deploying and Managing OpenStack with Heat

© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.16

Ever done this?

● for server in $(server-lister-thing) ; do ssh $server update-software-thing ; done

Page 17: Deploying and Managing OpenStack with Heat

© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.17

Oops, now what?

● Updater [server1]: OK● Updater [server2]: FAIL● Updater [server3]: OK● $

Page 18: Deploying and Managing OpenStack with Heat

© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.18

Oh right

● Updater [server1]: OK● Updater [server2]: FAIL● Updater [server3]: OK● $ vacuum server2

Page 19: Deploying and Managing OpenStack with Heat

© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.20

The cloud way

● nova delete server2 ; nova boot … server2

● Oops! Bye bye data .. Volumes, shared-nothing

● imperative and thus complex

Page 20: Deploying and Managing OpenStack with Heat

© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.21

The “TripleO” cloud way

Page 21: Deploying and Managing OpenStack with Heat

© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.22

Heat's Job

● Structured declarative multi-node/multi-service orchestration

● Completely agnostic of config systems inside instances

Page 22: Deploying and Managing OpenStack with Heat

© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.23

Example Resources: UpdateCondition: Type: AWS::CloudFormation::WaitCondition Properties: Timeout: 30 Count: 3 UpdateHandle: Type: AWS::CloudFormation::WaitConditionHandle WaitCondition: UpdateCondition ServerConfig: Type: OS::Heat::LaunchConfiguration Properties: ImageId: server-image-1 Flavor: super-big-awesome Metadata: UpdateWaitHandle: {Ref: UpdateHandle} ImportantConfig: foo Servers: Properties: Type: OS::Heat::InstanceGroup Properties: LaunchConfiguration: {Ref: ServerConfig} Size: 3 Metadata: UpdateWaitHandle: {Ref: UpdateHandle}

Page 23: Deploying and Managing OpenStack with Heat

© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.24

Example Flavor: super-big-awesome Metadata: UpdateWaitHandle: {Ref: UpdateHandle}- ImportantConfig: foo+ ImportantConfig: bar Servers: Properties: Type: OS::Heat::InstanceGroup

$ heat stack-update my-servers –template-file=new-template.yaml

Page 24: Deploying and Managing OpenStack with Heat

© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.25

“Bare metal” is not special*● Evoke power control and PXE instead of

hypervisor, image delivered via iSCSI

● Network – KISS or OpenFlow

● Data – iSCSI or Special cased DAS volumes [not solved yet]

Page 25: Deploying and Managing OpenStack with Heat

© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.26

“Bare metal” is not special*● Evoke power control and PXE instead of

hypervisor, image delivered via iSCSI

● Network – KISS or OpenFlow

● Data – iSCSI or Special cased DAS volumes [not solved yet]

Page 26: Deploying and Managing OpenStack with Heat

© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.27

● Heat templates,https://github.com/openstack-ops/templates

“refstack”

Page 27: Deploying and Managing OpenStack with Heat

© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.28

Heat at Scale - Canaries

● Heat will wait for x% of servers to report update success before updating more, fails can rollback [blueprint: rolling-updates]

Page 28: Deploying and Managing OpenStack with Heat

© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.29

Heat at Scale – Security

● TLS/SSL for coms● Keystone Trusts● API/Engine Separation

Page 29: Deploying and Managing OpenStack with Heat

© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.30

Heat at Scale – Performance

● Parallelism● Scale-out engines

Page 30: Deploying and Managing OpenStack with Heat

© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.31

“TripleO” – OpenStack on OpenStack

● Using refstack templates

● https://github.com/stackforge/os-config-applier for config file writing

● https://github.com/stackforge/diskimage-builder for software delivery

● https://github.com/stackforge/os-refresh-config for system state management

● Aimed at gating OpenStack (like devstack, but with production in mind)

Page 31: Deploying and Managing OpenStack with Heat

© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

Thank you● Clint Byrum – [email protected]

● SpamapS - Freenode IRC - #tripleo , #heat