Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Application and Network Orchestration using Heat & Tosca


Published on

The buzzwords Neutron, Heat, and TOSCA are spoken about quite often when it comes to the OpenStack - and many of us are still trying to make sense of the terminology and its place in the OpenStack world.

Where OpenStack Neutron provides APIs for creating network elements, OpenStack Heat provides an orchestration engine for automating the setup and configuration of OpenStack infrastructure, while TOSCA is a standard for templating and defining application topology and policies (that form the basis for Heat). In this context, it really makes sense to put these all together to achieve application and network automation for OpenStack on steroids.

In this session we will learn how we can use the robust combination of Heat and TOSCA to configure and control resources on Nova and Neutron in order to automate the network configuration as part of the application deployment.

The session will include a demo and code examples that show how you can configure virtual networks, attach public IPs, set up security groups, set up load balancing and automatically scale up/down and more. You will leave this session understanding where Neutron meets Heat and TOSCA.

This talk was delivered as part of OpenStack Paris summit - 2014 -

Published in: Technology

Application and Network Orchestration using Heat & Tosca

  1. 1. Application and Network Orchestration Using HEAT & TOSCA Nati Shalom @natishalom Samuel Bercovici @samuelbercovici
  2. 2. Agenda  Introduction  Introduction to Networking & Neutron  Introduction to Orchestration with HEAT & TOSCA  Orchestrating Network & Applications by Example  Heat + Ceilometer Auto-Scaling Demo  Portable Version using TOSCA  Real World (NFV) Example –  Creating “Your own Skype” On-demand.  Summary
  3. 3. Let’s Start With a Quick Overview...
  4. 4. Apache Server DB Server Apache Wordpress MySQL Networking & Application • App Network • App Subnet • App Port • Security Group • Data Network • Data Subnet • Data Port • Security Group Router • Apache Floating IP • Router Gateway Data VLAN Public VLAN Layer 3 Layer 2 Layer 2 Layer 4-7
  5. 5. What is Neutron? Tenant Facing API to manage L2-L7 network logical elements .• Layer 2 networks • Layer 3 subnets – IP address management – DHCP based – Router / gateway / NAT – Port (Security groups, Floating IP) • Layer 4-7 Services - Load balancing, VPN, Firewall
  6. 6. Networking in OpenStack Horizon
  7. 7. What is Heat? Heat provides a mechanism for orchestrating OpenStack resources through the use of modular templates.
  8. 8. Heat Architecture
  9. 9. Heat Topology View
  10. 10. What is TOSCA? TOSCA defines the interoperable description of applications; including their components, relationships, dependencies, requirements, and capabilities….
  11. 11. TOSCA in a Nutshell Mapping of application logic through plans (workflows), policies, relationships, actions
  12. 12. TOSCA State of the Union  Top four cloud open standard (Forrester)  5000+ participants  65+ countries  TOSCA Parser Integrated into the Heat Project The focus of this session
  13. 13. Comparing TOSCA & Heat  Heat – Automate the configuration and setup of OpenStack resources  Specific to OpenStack  TOSCA – Automation of the application deployment and management lifecycle  Portable Merging Concepts
  14. 14. Heat/HOT vs TOSCA Syntax New ` Focus on Application Components and Lifecycle not Infrastructure Resources
  15. 15. Orchestrating Networks & Applications by Example... • Define Networks as Parameters • Create a New WordPress Stack • WordPress Scale-out • WordPress Scale-in Reference Hot Templates: autoscaling.yaml and lb_server.yaml
  16. 16. Demo Scenario Router L3 Network Demo Project Management Network VIP1 Alteon VA Project VM 3 VM VM 2 VM DB 1 Web 4
  17. 17. Auto Scaling - Key Elements
  18. 18. Create New Stack #heat stack-create AutoScale_stack --template-file ~/autoscale.yaml --parameters=“image=fedora_image_for_web_and_db; key=some_key; flavor=m1.small;database_flavor=m1.small; network_id=servers_network_id; subnet_id=servers_subnet_id; external_network=floating_ip_network
  19. 19. Create New Stack
  20. 20. WordPress Scale-out
  21. 21. WordPress Scale-In
  22. 22. Portable TOSCA Alternative Software components are defined just like any other resource Infrastructure resource matched by their properties
  23. 23. Portable Auto-Scaling Agent Monitoring Agent Application Stack App VM Monitoring Policy DB Engine Cloudify Manager Third party monitoring tool Using Industry Best Practices - Open Source Frameworks Diamond
  24. 24. Portable TOSCA (Like) Metrics Set Diamond Collector
  25. 25. Portable TOSCA (Like) Auto-Scaling Set Auto-Scaling Policy Based on the App Metric
  26. 26. Mixing TOSCA & Heat TOSCA Orchestration (Portable Lifecycle Orchestration) Heat Orchestration (Infrastructure Orchestration) Other Cloud Orchestration (Infrastructure Orchestration) Other Cloud OpenStack See Heat & TOSCA example here
  27. 27. Real Life (NFV) Use Case Create Your Own “Skype” On-demand ..
  28. 28. ClearWater
  29. 29. Automating the Entire Stack
  30. 30. Summary Putting networks & apps together enables: • Simplify the deployment of complex apps • Tighten the security • Increase the agility Available Today: Heat & Neutron, Ceilometer TOSCA makes it portable
  31. 31. References • Auto-Scaling WordPress Example (by Radware) • ClearWater (NFV) Example (by Cloudify) • Heat on DevStack • Putting Heat & TOSCA Together • Heat Technical Overview • TOSCA Overview • TOSCA Translator Project on StackForge