openstack orchestration with heat
TRANSCRIPT
1
OpenStack STL
August Meetup8/25/2015
2
Agenda• OpenStack Updates• OpenStack Orchestration - Heat
3
OpenStack Updates• Google joins OpenStack Foundation and will work on
getting Kubernetes work with OpenStack Magnum• IBM buys Bluebox• Cisco buys Piston• Rackspace collaborates with Intel to form OpenStack
Innovation Center• RedHat announces GA of RHEL OpenStack Platform
7• OpenStack Silicon Valley Aug 26 – 27• OpenStack Summit Tokyo Oct 27 – 30
4
OpenStack Meetup• Thanks to our sponsor Cisco
5
OpenStack Orchestration Heat
• The OpenStack Orchestration project (Heat) debuted in Havana Release (October 2013)
“Heat is a service to orchestrate multiple composite cloud applications using templates, through both an OpenStack-native REST API and a CloudFormation-compatible Query API.”
6
OpenStack Heat - Components
• heat command-line client• heat-api component• heat-api-cfn (Provides an AWS Query API that is
compatible with AWS CloudFormation)• heat-engine (Orchestrates the launching of
templates and provides events back to the API consumer)
7
OpenStack Heat
8
OpenStack Heat – CLI Tool
• Python 2.7• sudo easy_install pip• sudo pip install
python-heatclient
9
OpenStack Heat – Orchestration
definition (DSL)• Two template forms are supported
• Heat Orchestration Template (HOT)
• Amazon Cloud Formation compatible template (CFN)
10
OpenStack Heat – Heat Orchestration Template (HOT)
structure
• description: o # a description of the template
• parameter_groups: o # a declaration of input parameter groups and order
• parameters: o # declaration of input parameters
• resources: o # declaration of template resources
• outputs: o # declaration of output parameters
11
OpenStack Heat – Heat Orchestration Template (HOT)
structureParameters
12
OpenStack Heat – Heat Orchestration Template (HOT)
structureResources
13
OpenStack Heat – Heat Orchestration Template (HOT)
Structure Resource Types
• OS::Nova::Server• OS::Nova::FloatingIP• OS::Neutron::VPNService• OS::Neutron::Subnet• OS::Neutron::Router• OS::Neutron::Firewall• OS::Keystone::User• OS::Glance::Image……http://docs.openstack.org/developer/heat/template_guide/openstack.html
14
OpenStack Heat – Heat Orchestration Template (HOT)
structureOutputs
15
OpenStack Heat – Example Template
• https://github.com/openstack/heat-templates/blob/master/hot/lb_server.yaml
16
OpenStack Heat – Cloud Formation Template
example• https://github.com/openstack/heat-templates/blob/master/cfn/F18/WordPress_Single_Instance.template
17
OpenStack Heat – Major Releases• Havana
o Initial integration with Tempesto Initial support for native template language o Initial integration with keystone trusts functionality
• Ice houseo Operator APIo Autoscaling resourceso Heat engine scalingo Cloud-init resources
• Junoo Implementation of new resource typeso Recovery from failures during stack updates
• Kiloo Improved scaling using nested stackso New template functionso Multiregion stackso Pause stack creation/update on a given resource o Stack lifecycle scheduler hints
18
OpenStack Orchestration Heat – Code Contributions
19
Resources• Blueprints https://launchpad.net/heat• Code https://github.com/openstack/heat• Docs https://wiki.openstack.org/wiki/Heat• Developer Docs http
://docs.openstack.org/developer/heat/• API Reference http://
developer.openstack.org/api-ref-orchestration-v1.html
• Example templates https://github.com/openstack/heat-templates