introduction to openstack heat
DESCRIPTION
TRANSCRIPT
![Page 1: Introduction to OpenStack Heat](https://reader034.vdocuments.us/reader034/viewer/2022042515/53f940988d7f729c2e8b4924/html5/thumbnails/1.jpg)
keeps the clouds up ;)
![Page 2: Introduction to OpenStack Heat](https://reader034.vdocuments.us/reader034/viewer/2022042515/53f940988d7f729c2e8b4924/html5/thumbnails/2.jpg)
Agenda
• Overview • Architecture • Bootstrap Methods • Heat JEOS • Oz • CloudFormation Scripts • Template Dissection • Advanced Services • Status & Roadmap • Next Steps
13-10-2012 keeps the clouds up ;) 2
Copyright © PicGifs.com - 2008 / 2011 - All rights reserved
![Page 3: Introduction to OpenStack Heat](https://reader034.vdocuments.us/reader034/viewer/2022042515/53f940988d7f729c2e8b4924/html5/thumbnails/3.jpg)
Overview
• REST API to orchestrate multiple composite cloud applications • AWS CloudFormation implementation for OpenStack API • Orchestrates apps, called as stack, by executing a CloudFormation template • Allows creation of resource types - instances, floating IPs, volumes, security
groups, users, etc. • Some advanced services - HA, auto-scaling and nested stacks • Compatible with AWS CloudFormation legacy (CLI based on boto and compatible
API) • Integrates well with Puppet and Chef • OpenStack style project
– Tight integration with other OpenStack projects – Python 2, matching OpenStack design principals – ASL V2 License and hosted on Github – Integrated with Stackforce (OpenStack workflow gerrit/jenkins)
• Started in March, 2012 • Active community of 9 developers (All from Red Hat)
13-10-2012 keeps the clouds up ;) 3
@sdake
![Page 4: Introduction to OpenStack Heat](https://reader034.vdocuments.us/reader034/viewer/2022042515/53f940988d7f729c2e8b4924/html5/thumbnails/4.jpg)
Architecture
13-10-2012 keeps the clouds up ;) 4
Source: http://heat-api.org
![Page 5: Introduction to OpenStack Heat](https://reader034.vdocuments.us/reader034/viewer/2022042515/53f940988d7f729c2e8b4924/html5/thumbnails/5.jpg)
User Interface
13-10-2012 keeps the clouds up ;) 5
Source: http://heat-api.org
![Page 6: Introduction to OpenStack Heat](https://reader034.vdocuments.us/reader034/viewer/2022042515/53f940988d7f729c2e8b4924/html5/thumbnails/6.jpg)
Heat Engine
13-10-2012 keeps the clouds up ;) 6
Source: http://heat-api.org
![Page 7: Introduction to OpenStack Heat](https://reader034.vdocuments.us/reader034/viewer/2022042515/53f940988d7f729c2e8b4924/html5/thumbnails/7.jpg)
Bootstrap Methods
• Golden Image – everything some scratch
• CloudFormation + cloud-init as startup script
• CloudFormation metadata + helper scripts
• Use Chef or Puppet
13-10-2012 keeps the clouds up ;) 7
![Page 8: Introduction to OpenStack Heat](https://reader034.vdocuments.us/reader034/viewer/2022042515/53f940988d7f729c2e8b4924/html5/thumbnails/8.jpg)
Heat JEOS
• Build Just Enough Operating System images
• Will be setup with cloud-init and cfn-tools
• Optionally, register with glance
13-10-2012 keeps the clouds up ;) 8
![Page 9: Introduction to OpenStack Heat](https://reader034.vdocuments.us/reader034/viewer/2022042515/53f940988d7f729c2e8b4924/html5/thumbnails/9.jpg)
Oz… (The wizard!)
13-10-2012 keeps the clouds up ;) 9
• Automated installation of guest OS
• Create TDL files to feed as input into the building process
SAMPLE TDL file: <template> <name>NAME</name> <os> <name>DISTRO</name> <version>VERSION</version> <arch>ARCH</arch> <install type='iso'> <iso>PATH TO ISO</iso> </install> </os> <description>DESCRIPTION</description> </template>
![Page 10: Introduction to OpenStack Heat](https://reader034.vdocuments.us/reader034/viewer/2022042515/53f940988d7f729c2e8b4924/html5/thumbnails/10.jpg)
CloudFormation helper scripts
• cfn-init - Reads instance resource, installs packages, and starts services
• cfn-signal - Waits for an application to be ready before continuing with stack creation
• cfn-hup - Handle updates to metadata and execute custom hooks
• cfn-get-metadata - Retrieve all metadata defined for a resource or a specific key or subtree of the resource's metadata
• cfn-update-stack - Updates metadata content • Stack synchronization and rollback through
WaitCondition
13-10-2012 keeps the clouds up ;) 10
![Page 11: Introduction to OpenStack Heat](https://reader034.vdocuments.us/reader034/viewer/2022042515/53f940988d7f729c2e8b4924/html5/thumbnails/11.jpg)
Template Dissection
• Templates - JSON files which define your stack • Stacks - Collection of resources to manage together • Parameters - Values defined in the template • Mappings - Conditional parameter values • Pseudo Parameters – Pre declared values • Resources – Features which declare a stack • Resource Properties – Values for resources • References – Any named item • Intrinsic Functions – Accomplish complex operations • Outputs – Return values back to the template user
13-10-2012 keeps the clouds up ;) 11
Source: AWS CloudFormation Documentation
![Page 12: Introduction to OpenStack Heat](https://reader034.vdocuments.us/reader034/viewer/2022042515/53f940988d7f729c2e8b4924/html5/thumbnails/12.jpg)
Advanced Services
• Not just a resource brokering service
• Autoscaling
• CloudWatch
13-10-2012 keeps the clouds up ;) 12
![Page 13: Introduction to OpenStack Heat](https://reader034.vdocuments.us/reader034/viewer/2022042515/53f940988d7f729c2e8b4924/html5/thumbnails/13.jpg)
Current Status
• Integration with Common, Glance, Keystone, Swift, and Nova
• Implementation of the AWS CloudFormation API
• Usable implementation of AWS CloudWatch API
• Complete implementation for all non-VPC related resource types in CloudFormation
• Instance and application high availability
• Autoscaling
• Nested Stacks
13-10-2012 keeps the clouds up ;) 13
![Page 14: Introduction to OpenStack Heat](https://reader034.vdocuments.us/reader034/viewer/2022042515/53f940988d7f729c2e8b4924/html5/thumbnails/14.jpg)
13-10-2012 keeps the clouds up ;) 14
![Page 15: Introduction to OpenStack Heat](https://reader034.vdocuments.us/reader034/viewer/2022042515/53f940988d7f729c2e8b4924/html5/thumbnails/15.jpg)
Roadmap
G Release F Release
13-10-2012 keeps the clouds up ;) 15
• Hardening of source tree • Improving source tree to
meet OpenStack design principles
• Promotion to OpenStack core
• Project Incubation • Optimizing project governance to match
OpenStack standards • Complete implementation of AWS • CloudWatch API, contributing
appropriate technology into Ceilometer • Complete integration with Quantum,
providing complete VPC feature coverage
TOSCA - Topology and Orchestration Specification for Cloud Applications
![Page 16: Introduction to OpenStack Heat](https://reader034.vdocuments.us/reader034/viewer/2022042515/53f940988d7f729c2e8b4924/html5/thumbnails/16.jpg)
Where to go
• http://wiki.openstack.org/Heat • http://heat-api.org • https://github.com/heat-api/heat
– Code, Wiki, Tracker
• References – http://docs.amazonwebservices.com/AWSCloudFormation/lates
t/APIReference/API_CreateStack.html – http://docs.amazonwebservices.com/AWSCloudFormation/lates
t/UserGuide/create-stack.html – http://docs.amazonwebservices.com/AWSCloudFormation/lates
t/UserGuide/aws-template-resource-type-ref.html – http://www.oasis-
open.org/committees/tc_home.php?wg_abbrev=tosca
13-10-2012 keeps the clouds up ;) 16
![Page 17: Introduction to OpenStack Heat](https://reader034.vdocuments.us/reader034/viewer/2022042515/53f940988d7f729c2e8b4924/html5/thumbnails/17.jpg)
Related Projects
• http://wiki.openstack.org/Donabe
– multi-tier Application Container Service
• http://wiki.openstack.org/DatabaseAsAService
– could be used to provide AWS::RDS::DBInstance
• http://wiki.openstack.org/QueueService
– could be used to provide AWS::SQS::Queue
13-10-2012 keeps the clouds up ;) 17
![Page 18: Introduction to OpenStack Heat](https://reader034.vdocuments.us/reader034/viewer/2022042515/53f940988d7f729c2e8b4924/html5/thumbnails/18.jpg)
OpenStack Summit 2012
• October 15th – 18th in San Diego
• http://www.openstack.org/summit/san-diego-2012/openstack-summit-sessions/
• https://www.openstack.org/blog/2012/10/participating-remotely-to-openstack-summit-2012/
13-10-2012 keeps the clouds up ;) 18
![Page 19: Introduction to OpenStack Heat](https://reader034.vdocuments.us/reader034/viewer/2022042515/53f940988d7f729c2e8b4924/html5/thumbnails/19.jpg)
Thank You
@kiranmurari
linkedin.com/in/kiranmurari
slideshare.net/kiranmurari
13-10-2012 keeps the clouds up ;) 19