Conductor Documentation

Networking Guide

Getting started with Studio Conductor networking orchestration

This tutorial covers the steps required to setup your Conductor Manager and use it to orchestrate the deployment of a network service. It is accompanied by a complete set of ready examples. and structured in a way that walks the reader through the steps required, discusses and explains about alternative approaches and provides references to the actual code used. This tutorial, does not replace the Studio Conductor documentation, which provides much greater detail on each topic.

Objectives

The objectives of this tutorial are to:

  1. Get you started with a Studio Conductor server
  2. Analyze a basic network service, and orchestrate it using Studio Conductor through automation of:
    1. Infrastructure and element provisioning
    2. Service component configuration
    3. Chaining all components into a complete network service
  3. Learn orchestration best practices, and get the basic Studio Conductor knowledge to get you started with your own deployments.

Prerequisites

This tutorial assumes that the person running it has access to Openstack and/or Microsoft Azure, with the ability to allocate network, storage, and compute instances. Also required is a system capable of running the Conductor Manager AIO (or HA cluster) that has network access to the selected infrastructure. Note that the system can itself be an instance on the target cloud.

Structure

The guide begins with a description of a network service that will serve as the end goal of the tutorial. Next it discusses general VNF and service modeling methodology best practices. Finally, the guide will provide platform specific instructions for applying the methodology by creating an operational service chain using Studio Conductor.

Analyze our network service example

In this tutorial we are going to use a simple network service consisting of a load balancer and a firewall. To make it a tad more realistic we will be deploying a simple web server to represent the end of the service chain:

VNF sketch

If we break down how one would typically build such a service the basic steps might be:

  1. Set up the relevant networks
  2. Provision a firewall and configure its network interfaces and network settings
  3. Provision a load balancer and configure basic settings
  4. Provision a web server instance, configure it with basic web content
  5. Compose the service flow by setting the LB to accept traffic on configurable port, direct it to the firewall, and configure the Firewall to allow web traffic to the web server.

Upon completion of these steps we will have a complete service.

Network Service Orchestration Design Principles

As implied by the previous section, network service orchestration lends itself well to a layered approach. The layered approach makes both the comprehension of the overall system easier, and cleanly fits typical operational requirements. From an orchestration perspective, this means separating concerns that may be dependent on each other, but should be deployed and managed separately. Like the OSI networking model, each layer uses the layer below.

Orchestration Layering

Each layer constitutes a separate orchestration domain, meaning an independent lifecycle. In Studio Conductor terms, this means each layer consists of a blueprint or blueprints that have relationships to other layers, but are independently operated.
Let’s look at each layer in more detail:

Base Network

This layer is the substrate upon which the VNFs and service components will communicate. This layer itself may be virtualized, and in the context of cloud native orchestration is quite likely to be. The base network for a service chain would include the networks that the service VNFs would attach to, potentially along with supporting VNFs (like virtual routers) that are not part of the service itself. This is the most stable layer, as it serves as the platform upon which many services may be deployed (and undeployed) to over time.

Network Functions

This is the VNF layer. Once the base network is in place, the network functions that comprise the service are deployed. The VNFs attach and communicate via the base network substrate. From the VNFs, potentially many services may be composed.

Service Components

This layer represents non-VNF service components. This layer is optional, as a network service can be pure (say a service that provides packet forwarding). However, many services require non-network elements such as databases, web servers and application servers. The service components utilize the VNF layer to provide the overall service.

Service Chaining

This layer represent service configuration. This layer provides configurations of the underlying network and non-network services in order to provide a specific service configuration. Initial configurations as well as updates are managed at this layer, and rendered to the underlying layers as needed.

Studio Conductor Example Network Service Design

In Studio Conductor, network services are modeled using blueprints. A blueprint is a general purpose model for describing systems. To model our example network service, a blueprint (or blueprint collection) is created to represent each layer described in the previous section. Blueprints are composed of nodes which are instances of types. A type can represent anything we need to model, but in general represents the things to be orchestrated, virtual or otherwise. For example, a type can represent a network in Azure or in Openstack (or any other infrastructure). In Studio Conductor, the types are provided as plugins which you include in your blueprints. Once the types are included, they can be associated with each other via relationships.

Service design

Base Network

Ignoring cloud specific differences, the goal of the base network blueprint is to create

Azure base network blueprint

Azure base network blueprint

Network Functions

For this example, we’ve modeled the VNF layer as a collection of blueprints; one for each VNF (Fortinet Fortigate and F5 BigIP). Each of the VNF blueprints uses information from the previously discussed base network by access it’s defined capabilities. This not only isolates the VNF layer from the lifecycle of the base network, but also permits the VNF layer to consume the base network without being bound to its implementation.

F5 BigIP blueprint

F5 BigIP blueprint

Service Components

This layer is very simple in our example, and consists of a Python web server. It’s purpose is to demonstrate the effectiveness of the next layer, Service Chaining. The service chain deployment will expose the web server by configuring the previously deployed VNFs (firewall and load balancer).

Service Chaining

The final layer is a service chain implemented as a blueprint. This blueprint uses the exposed capabilities of the VNF blueprints to configure a network path that exposes the HTTPD server. This blueprint represents the configuration of the VNFs as separate nodes, and applies the configuration to the existing VNFs using their exposed capabilities and blueprint inputs. Note that there are different service chain blueprints for each platform, however the service chain is independent of the platform. This will be fixed in a future release.

Service Blueprint

Service blueprint

System and Platform setup

The remainder of the tutorial is a guide to constructing the service chain outlined above.

Available Resources

This tutorial is accompanied by the following resources.

Azure VNF Images

The Azure VNF images are located in the Azure marketplace. The default inputs in the blueprints are sufficient to access them.

Openstack VNF Images

Conductor Manager Deployment

The Conductor Manager will be responsible for executing the example deployments. Therefore, please ensure that the Conductor is installed according to one of the deployment configurations available. An All-in-one (AIO) configuration is sufficient for this example.

Refer to the Conductor Installation for installation options and instructions.

Plugin Installation

Studio Conductor has an extendable architecture that uses the concept of plugins for orchestration. Some plugins are built in, and others must be installed based on what platform and components are being orchestrated.

Learn more about plugins.

To install the necessary plugins using the Conductor CLI, run the following command from the command line:

cfy plugins bundle-upload

Uploading the plugins takes a few minutes.

Platform API connection parameters

Leveraging Openstack requires access credentials. It is a good practice to keep these credentials as ‘secrets’ in the Conductor Manager, allowing different deployments to use them without the need to re-mention in every deployment, or exposing them in blueprints.

Openstack API credentials

If using Openstack, you’ll need to create secrets on the manager prior to running the example blueprints If using Azure, skip down to the section following this one. Learn more about secrets…

In your OpenStack manager browse to: Compute >> Access&Security >>API Access. Click the ‘Download OpenStack RC file’ option. OpenStack RC

Copy the OpenStack RC file to the Conductor Manager instance and name it “env”:

scp <your rc filename> <manager-ip-address>:env

Login to the Conductor Manager server (or CLI host) and run the following commands to upload the secrets:

curl -O https://conductor.windriver.com/docs/latest/scripts/upload-secrets.sh
sh upload-secrets.sh

As before, you may need to prefix the commands with ‘sudo’, depending on your account permissions. You will be prompted to enter your Openstack secret during the process.

Azure API credentials

To use Azure you’ll need to create secrets containing API credentials on the manager so the blueprints can use them.

Provision the service components

Provisioning the base network

The key prerequisite for a VNF deployment is typically a network or more likely a set of related networks. This represents the “base network” layer in the design principles. In our example the Firewall is connected to 3 networks: Management network, WAN and LAN. and we will make sure we set all 3 up before provisioning the VNFs (network function layer).

BaseNetwork

Upload the base network blueprint

Using the Conductor Management Console from the “Local Blueprints” page, select the “Upload” button.

Upload base blueprint

This will display the “Upload blueprint” dialog. Fill the fields in as follows:

Once these fields have been entered, press the “Upload” button to copy the blueprint to the Conductor Manager.

Create the base network deployment

Uploading the blueprint placed it in the Conductor Manager local repository. In order to run workflows ( e.g. “install” ) on the blueprint, you must create a deployment, which represents the blueprint and any input parameters. From the “Local blueprints” page on the Conductor Management Console, click the rocket ship icon on the “service-base-network” blueprint line:

Deploy

This will display the “Create deployment” dialog box. It is here that the blueprint parameters are entered. Make the following entries:

If you are unsure about the external network name, look at the network details for the attribute “external: true”, in the Horizon networks page:

External network

Click the deploy button. This will kick off the deployment creation, and we are ready to install the network. If you are using Azure, the defaults in the blueprint are sufficient.

Create the base network

From the “Deployments” page in the Conductor Management Console, select the “install” workflow from the right dropdown hamburger menu on the ‘service-base-network’ deployment.

Install

This will display the install workflow dialog box. Press the “Execute” button to begin the installation. This will render the base network on the target cloud. Wait for successful completion before continuing.

VNF Provisioning - Fortigate Firewall

Now that the network substrate is in place, we can install our service VNFs. In this step we will be using a Conductor blueprint to deploy a Fortigate firewall.

Network functions

Upload the VNF blueprint package

Using the Conductor Management Console from the “Local Blueprints” page, select the “Upload” button.

Upload

This will display the “Upload blueprint“ dialog. In the upload dialog, use the following entries:

Once these fields have been entered, press the “Upload” button to copy the blueprint to the Conductor Manager.

Create the firewall VNF deployment

Uploading the blueprint placed it in the Conductor Manager local repository. In order to run workflows ( e.g. “install” ) on the blueprint, you must create a deployment, which represents the blueprint and any input parameters.

Prior to creating the deployment, a secret must be created that contains the Fortigate license file contents. The secret should be created with the following command:

cfy secret create fortigate_license -f <path to your license file>

From the “Local blueprints” page on the Conductor Management Console, click the rocket ship icon on the “firewall” blueprint line:

Deploy

This will display the “Create deployment” dialog box. Enter ‘firewall’ for the deployment name field. The rest of the default inputs will work as is. Press the Deploy button to create the deployment.

Install the firewall

From the “Deployments” page in the Conductor Management Console, select the “install” workflow from the right dropdown hamburger menu on the ‘firewall’ deployment:

Install

This will display the install workflow dialog box. Press the “Execute” button to begin the installation. This will instantiate the firewall on the target cloud. Wait for successful completion before continuing.

VNF Provisioning - Big IP Load Balancer

In this step we will be using Studio Conductor’s’ VNF provisioning blueprint to deploy an F5 Big IP Load balancer.

Network Functions

Upload the VNF blueprint package

Using the Conductor Management Console from the “Local Blueprints” page, select the “Upload” button

Upload

This will display the “Upload blueprint“ dialog. In the upload dialog, use the following entries:

Once these fields have been entered, press the “Upload” button to copy the blueprint to the Conductor Manager.

Create the load balancer VNF deployment

Uploading the blueprint placed it in the Conductor Manager local repository. In order to run workflows ( e.g. “install” ) on the blueprint, you must create a deployment, which represents the blueprint and any input parameters.

From the “Local blueprints” page on the Conductor Management Console, click the rocket ship icon on the “firewall” blueprint line:

Deploy

This will display the “Create deployment” dialog box. Enter ‘loadbalancer’ for the deployment name field. The default inputs will work as is. Press the Deploy button to create the deployment.

Install the load balancer

From the “Deployments” page in the Conductor Management Console, select the “install” workflow from the right dropdown hamburger menu on the ‘loadbalancer’ deployment:

Install

This will display the install workflow dialog box. Press the “Execute” button to begin the installation. This will instantiate the firewall on the target cloud. Wait for successful completion before continuing.

VNF Configuration

Both VNFs, firewall and load balancer, have been created on the target cloud. This step will configure them using blueprints.

Network Functions

Configure the Firewall

Upload the firewall configuration blueprint package

Using the Conductor Management Console from the “Local Blueprints” page, select the “Upload” button

Upload

This will display the “Upload blueprint“ dialog. In the upload dialog, use the following entries:

Once these fields have been entered, press the “Upload” button to copy the blueprint to the Conductor Manager.

Create the firewall configuration deployment

Uploading the blueprint placed it in the Conductor Manager local repository. In order to run workflows ( e.g. “install” ) on the blueprint, you must create a deployment, which represents the blueprint and any input parameters.

From the “Local blueprints” page on the Conductor Management Console, click the rocket ship icon on the “firewallconifg” blueprint line:

Deploy

This will display the “Create deployment” dialog box. Enter ‘firewallconfig’ for the deployment name field. For the ‘fortigate_vm_deployment_name’ input, use ‘firewall’. Press the Deploy button to create the deployment.

Install the firewall configuration

From the “Deployments” page in the Conductor Management Console, select the “install” workflow from the right dropdown hamburger menu on the ‘firewallconfig’ deployment:

Install

This will display the install workflow dialog box. Press the “Execute” button to begin the installation. This will configure the firewall. Wait for successful completion before continuing.

Configure the Load balancer

Upload the load balancer configuration blueprint package

Using the Conductor Management Console from the “Local Blueprints” page, select the “Upload” button

Upload

This will display the “Upload blueprint“ dialog. In the upload dialog, use the following entries:

Once these fields have been entered, press the “Upload” button to copy the blueprint to the Conductor Manager.

Create the load balancer configuration deployment

Uploading the blueprint placed it in the Conductor Manager local repository. In order to run workflows ( e.g. “install” ) on the blueprint, you must create a deployment, which represents the blueprint and any input parameters.

Prior to creating the deployment, a secret must be created that contains the Big IP license file contents. The secret should be created with the following command:

cfy secret create bigip_license -f <path to your license file>

From the “Local blueprints” page on the Conductor Management Console, click the rocket ship icon on the “loadbalancerconifg” blueprint line:

Deploy

This will display the “Create deployment” dialog box. Enter ‘loadbalancerconfig’ for the deployment name field. For the ‘prov_deployment_name’ input, use ‘loadbalancer’. Press the Deploy button to create the deployment.

Install the load balancer configuration

From the “Deployments” page in the Conductor Management Console, select the “install” workflow from the right dropdown hamburger menu on the ‘loadbalancerconfig’ deployment:

Install

This will display the install workflow dialog box. Press the “Execute” button to begin the installation. This will configure the load balancer. Wait for successful completion before continuing.

Web Server Provisioning and configuration

The web server represents the target of the service chain.

Service Components

Upload the HTTPD blueprint package

Using the Conductor Management Console from the “Local Blueprints” page, select the “Upload” button.

Upload

This will display the “Upload blueprint“ dialog. In the upload dialog, use the following entries:

Once these fields have been entered, press the “Upload” button to copy the blueprint to the Conductor Manager.

Create the web server deployment

Uploading the blueprint placed it in the Conductor Manager local repository. In order to run workflows ( e.g. “install” ) on the blueprint, you must create a deployment, which represents the blueprint and any input parameters.

From the “Local blueprints” page on the Conductor Management Console, click the rocket ship icon on the “webserver” blueprint line:

Deploy

This will display the “Create deployment” dialog box. Enter ‘webserver’ for the deployment name field. The rest of the default inputs will work as is. Press the Deploy button to create the deployment.

Install the web server

From the “Deployments” page in the Conductor Management Console, select the “install” workflow from the right dropdown hamburger menu on the ‘webserver’ deployment:

Install

This will display the install workflow dialog box. Press the “Execute” button to begin the installation. This will instantiate the web server on the target cloud. Wait for successful completion before continuing.

Web Server Configuration

Upload the HTTPD blueprint package

Using the Conductor Management Console from the “Local Blueprints” page, select the “Upload” button.

Upload

This will display the “Upload blueprint“ dialog. In the upload dialog, use the following entries:

Once these fields have been entered, press the “Upload” button to copy the blueprint to the Conductor Manager.

Note that the best practice is to have the configuration step independent from platform specifics. This will be fixed in a future release.

Create the web server configuration deployment

Uploading the blueprint placed it in the Conductor Manager local repository. In order to run workflows ( e.g. “install” ) on the blueprint, you must create a deployment, which represents the blueprint and any input parameters.

From the “Local blueprints” page on the Conductor Management Console, click the rocket ship icon on the “webserveconfig” blueprint line:

Deploy

This will display the “Create deployment” dialog box. Enter ‘webserverconfig’ for the deployment name field. For the “httpd_vm_deployment_name”, enter ‘webserver’. Press the Deploy button to create the deployment.

Install the web server configuration

From the “Deployments” page in the Conductor Management Console, select the “install” workflow from the right dropdown hamburger menu on the ‘webserverconfig’ deployment:

Install

This will display the install workflow dialog box. Press the “Execute” button to begin the installation. This will start the web server on the web server VM. Wait for successful completion before continuing.

Service chaining

Now all the service ingredients are in place. The base network, the VNFs, and the target web server. This step will create the service chain that ties them together. The chain is described in a blueprint that references the previously installed blueprints.

Service Chaining

Upload the service chaining blueprint package

Using the Conductor Management Console from the “Local Blueprints” page, select the “Upload” button

Upload

This will display the “Upload blueprint“ dialog. In the upload dialog, use the following entries:

Once these fields have been entered, press the “Upload” button to copy the blueprint to the Conductor Manager.

Create the service chain deployment

Uploading the blueprint placed it in the Conductor Manager local repository. In order to run workflows ( e.g. “install” ) on the blueprint, you must create a deployment, which represents the blueprint and any input parameters.

From the “Local blueprints” page on the Conductor Management Console, click the rocket ship icon on the “servicechain” blueprint line:

Deploy

This will display the “Create deployment” dialog box. Enter ‘servicechain’ for the deployment name field. For the ‘f5_prov_deployment_name’ input, use ‘loadbalancer’. For the ‘fg_prov_deployment_name’ enter ‘firewall’. For the ‘httpd_prov_deployment_name’ input, enter ‘httpd’. Press the Deploy button to create the deployment.

Install the firewall configuration

From the “Deployments” page in the Conductor Management Console, select the “install” workflow from the right dropdown hamburger menu on the ‘servicechain’ deployment:

Install

This will display the install workflow dialog box. Press the “Execute” button to begin the installation. This will configure the service chain. Wait for successful completion before continuing.

Conclusion

Through the series of blueprint installations a service chain of connected network services (Load Balancer, Firewall and Web Server) has been created. In this case service chaining consists of a port forwarding rule on Fortigate and load balancing rule on BIG IP in order to pass traffic through. While technically possible to orchestrate the various solution components in many ways, the layered approach is a best practice because it provides:

running a single end-to-end example

Through the series of blueprint installations been executed, a composed scenario been created. This composition is also supported by a single pane of glass service

Check out the latest version of the network automation example in our Examples bundle.