application and network orchestration using heat & tosca

31
Application and Network Orchestration Using HEAT & TOSCA Nati Shalom @natishalom Samuel Bercovici @samuelbercovici

Upload: nati-shalom

Post on 14-Jun-2015

2.086 views

Category:

Technology


9 download

DESCRIPTION

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 - http://openstacksummitnovember2014paris.sched.org/event/2b85b682ccaf3a5961e463b61e2403f8#.VFeuG_TF8mc

TRANSCRIPT

  • 1. Application and NetworkOrchestration UsingHEAT & TOSCANati Shalom@natishalomSamuel Bercovici@samuelbercovici

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. Lets StartWith a QuickOverview... 4. Apache Server DB ServerApacheWordpressMySQLNetworking & Application App Network App Subnet App Port Security Group Data Network Data Subnet Data Port Security GroupRouter Apache Floating IP Router GatewayDataVLANPublicVLANLayer 3Layer 2Layer 2Layer 4-7 5. What is Neutron?Tenant Facing API to manage L2-L7 network logicalelements. 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. Networking in OpenStack Horizon 7. What is Heat?Heat provides amechanism fororchestratingOpenStackresources throughthe use of modulartemplates. 8. Heat Architecture 9. Heat Topology View 10. What is TOSCA?TOSCA defines theinteroperable descriptionof applications; includingtheir components,relationships,dependencies,requirements, andcapabilities. 11. TOSCA in a NutshellMapping of application logicthrough plans (workflows),policies, relationships,actions 12. TOSCA State of the Union Top four cloud open standard (Forrester) 5000+ participants 65+ countries TOSCA Parser Integrated into theHeat ProjectThe focusof this session 13. Comparing TOSCA & Heat Heat Automate theconfiguration andsetup of OpenStackresources Specific to OpenStack TOSCA Automationof the applicationdeployment andmanagement lifecycle PortableMerging Concepts 14. Heat/HOT vs TOSCA SyntaxNew`Focus on ApplicationComponents andLifecycle notInfrastructure Resources 15. Orchestrating Networks &Applications by Example... Define Networks as Parameters Create a New WordPress Stack WordPress Scale-out WordPress Scale-inReference Hot Templates: autoscaling.yaml and lb_server.yaml 16. Demo ScenarioRouterL3NetworkDemo ProjectManagement NetworkVIP1Alteon VA ProjectVM3VMVM2VMDB 1Web 4 17. Auto Scaling - Key Elements 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. Create New Stack 20. WordPress Scale-out 21. WordPress Scale-In 22. Portable TOSCA AlternativeSoftware componentsare defined just like anyother resourceInfrastructure resourcematched by their properties 23. Portable Auto-ScalingAgentMonitoringAgentApplicationStackApp VMMonitoringPolicy DBEngineCloudify ManagerThird partymonitoringtoolUsing Industry Best Practices - Open Source FrameworksDiamond 24. Portable TOSCA (Like) MetricsSet Diamond Collector 25. Portable TOSCA (Like) Auto-ScalingSet Auto-Scaling PolicyBased on the AppMetric 26. Mixing TOSCA & HeatTOSCA Orchestration (Portable Lifecycle Orchestration)Heat Orchestration (Infrastructure Orchestration)Other Cloud Orchestration(Infrastructure Orchestration)Other Cloud OpenStackSee Heat & TOSCA example here 27. Real Life (NFV) Use CaseCreate YourOwn SkypeOn-demand .. 28. ClearWater 29. Automating the Entire Stack 30. SummaryPutting networks & apps together enables: Simplify the deployment of complex apps Tighten the security Increase the agilityAvailable Today: Heat & Neutron, CeilometerTOSCA makes it portable 31. References Auto-Scaling WordPress Example (byRadware) ClearWater (NFV) Example (by Cloudify) Heat on DevStack Putting Heat & TOSCA Together Heat Technical Overview TOSCA Overview TOSCA Translator Project on StackForge