- play_arrow Overview
- play_arrow Understanding Contrail
-
- play_arrow Installing and Upgrading Contrail
- play_arrow Supported Platforms and Server Requirements
- play_arrow Installing Contrail and Provisioning Roles
- Introduction to Containerized Contrail Modules
- Downloading Installation Software
- Installing the Operating System and Contrail Packages
- Installing Containerized Contrail Clusters Using Server Manager
- Installing Containerized Contrail Using Server Manager Lite (SM-Lite)
- Supporting Multiple Interfaces on Servers and Nodes
- Configuring the Control Node with BGP
- Adding a New Node to an Existing Containerized Contrail Cluster
- Using contrailctl to Configure Services Within Containers
- Supporting Multiple Interfaces on Servers and Nodes
- Contrail Global Controller
- Role and Resource-Based Access Control
- play_arrow Installation and Configuration Scenarios
- play_arrow Using Server Manager to Automate Provisioning
- play_arrow Installing and Using Contrail Storage
- play_arrow Upgrading Contrail Software
- Upgrading Contrail 4.0 to 4.1
- Upgrade Procedure for RHOSP-based Contrail 4.1.2 to Contrail 4.1.3
- Upgrade Procedure for Ubuntu-based Contrail 4.1.3 to Contrail 4.1.4 Using Juju with Netronome SmartNIC
- Upgrade Procedure for RHOSP-based Contrail 4.1.3 to Contrail 4.1.4
- Dynamic Kernel Module Support (DKMS) for vRouter
-
- play_arrow Monitoring and Troubleshooting the Network Using Contrail Analytics
- play_arrow Understanding Contrail Analytics
- play_arrow Configuring Contrail Analytics
- play_arrow Using Contrail Analytics to Monitor and Troubleshoot the Network
- Monitoring the System
- Debugging Processes Using the Contrail Introspect Feature
- Monitor > Infrastructure > Dashboard
- Monitor > Infrastructure > Control Nodes
- Monitor > Infrastructure > Virtual Routers
- Monitor > Infrastructure > Analytics Nodes
- Monitor > Infrastructure > Config Nodes
- Monitor > Networking
- Query > Flows
- Query > Logs
- Example: Debugging Connectivity Using Monitoring for Troubleshooting
-
Using the Contrail Heat Template
Heat is the orchestration engine of the OpenStack program. Heat enables launching multiple cloud applications based on templates that are comprised of text files.
Introduction to Heat
A Heat template describes the infrastructure for a cloud application, such as networks, servers, floating IP addresses, and the like, and can be used to manage the entire life cycle of that application.
When the application infrastructure changes, the Heat templates can be modified to automatically reflect those changes. Heat can also delete all application resources if the system is finished with an application.
Heat templates can record the relationships between resources, for example, which networks are connected by means of policy enforcements, and consequently call OpenStack REST APIs that create the necessary infrastructure, in the correct order, needed to launch the application managed by the Heat template.
Heat Architecture
Heat is implemented by means of Python applications, including the following:
heat-client
—The CLI tool that communicates with theheat-api
application to run Heat APIs.heat-api
—Provides an OpenStack native REST API that processes API requests by sending them to the Heat engine over remote procedure calls (RPCs).heat-engine
—Responsible for orchestrating the launch of templates and providing events back to the API consumer.
Support for Heat Version 2 Resources
Starting with Contrail Release 3.0.2, Contrail Heat resources
and templates are autogenerated from the Contrail schema, using Heat
Version 2 resources. Contrail Release 3.0.2 is the minimum required
version for using Heat with Contrail in 3.x releases. The Contrail
Heat Version 2 resources are of the following hierarchy: OS::ContrailV2::<ResourceName>
.
The generated resources and templates are part of the Contrail Python package, and are located in the following directory in the target installation:
/usr/lib/python2.7/dist-packages/vnc_api/gen/heat/
The heat/ directory has the following subdirectories:
resources/—Contains all the resources for the contrail-heat plugin, which runs in the context of the Heat engine service.
templates/—Contains sample templates for each resource. Each sample template presents every possible parameter in the schema. Use the sample templates as a reference when you build up more complex templates for your network design.
env/—Contains the environment for input to each template.
The following contains a list of all the generated plug-in resources
that are supported by contrail-heat
in
Contrail Release 3.0.2 and greater:
https://github.com/Juniper/contrail-heat/tree/master/generated/resources
The following contains a list of new example templates:
https://github.com/Juniper/contrail-heat/tree/master/contrail_heat/new_templates
Deprecation of Heat Version 1 Resources
Heat Version 1 resources within the hierarchy OS::Contrail::<ResourceName>
are being deprecated, and you should not create new service chains
using the Heat Version 1 templates.
Heat Version 2 with Service Chaining and Port Tuple Sample Workflow
With Contrail service templates Version 2, the user can create ports and bind them to a virtual machine (VM)-based service instance, by means of a port-tuple object. All objects created with the Version 2 service template are directly visible to the Contrail Heat engine, and are directly managed by Heat.
The following shows the basic workflow steps for creating a port tuple and service instance that will be managed by Heat:
Create a service template. Select 2 in the Version field.
Create a service instance for the service template just created.
Create a port-tuple object.
Create ports, using Nova VM launch or without a VM launch.
Label each port as left, right, mgmt, and so on, and add the ports to the port-tuple object.
Use a unique label for each of the ports in a single port tuple. The labels named left and right are used for forwarding.
Link the port tuple to a service instance.
Launch the service instance.
Example: Creating a Service Template Using Heat
The following is an example of how to create a service template using Heat.
Define a template to create the service template.
content_copy zoom_out_mapservice_template.yaml heat_template_version: 2013-‐05-‐23 description: > HOT template to create a service template parameters: name: type: string description: Name of service template mode: type: string description: service mode type: type: string description: service type image: type: string description: Name of the image flavor: type: string description: Flavor service_interface_type_list: type: string description: List of interface types shared_ip_list: type: string description: List of shared ip enabled-‐disabled static_routes_list: type: string description: List of static routes enabled-‐disabled resources: service_template: type: OS::ContrailV2::ServiceTemplate properties: name: { get_param: name } service_mode: { get_param: mode } service_type: { get_param: type } image_name: { get_param: image } flavor: { get_param: flavor } service_interface_type_list: { "Fn::Split" : [ ",", Ref: service_interface_type_list ] } shared_ip_list: { "Fn::Split" : [ ",", Ref: shared_ip_list ] } static_routes_list: { "Fn::Split" : [ ",", Ref: static_routes_list ] } outputs: service_template_fq_name: description: FQ name of the service template value: { get_attr: [ service_template, fq_name] } }
Create an environment file to define the values to put in the variables in the template file.
content_copy zoom_out_mapservice_template.env parameters: name: contrail_svc_temp mode: transparent type: firewall image: cirros flavor: m1.tiny service_interface_type_list: management,left,right,other shared_ip_list: True,True,False,False static_routes_list: False,True,False,False
Create the Heat stack by launching the template and the environment file, using the following command:
content_copy zoom_out_mapheat stack create stack1 –f service_template.yaml –e service_template.env
OR use this command for recent versions of OpenStack
content_copy zoom_out_mapopenstack stack create -e <env-file-name> -t <template-file-name> <stack-name>