Cisco Crosswork Planning 7.2.x Installation Guide

PDF

Cisco Crosswork Planning 7.2.x Installation Guide

Installing Cisco Crosswork Planning on Amazon EC2

Want to summarize with AI?

Log in

Describes the process of installing Cisco Crosswork Planning instances on Amazon EC2 using a customized CF template, including key requirements and installation stages.


This process describes how to install Cisco Crosswork Planning on Amazon Elastic Compute Cloud (EC2) using a customized CF template. Amazon EC2 is a web service that provides compute resources in the cloud to host your Cisco Crosswork Planning applications.

Summary

The installation procedure involves deploying this Crosswork resource using the corresponding CF template (YAML file):

  • EC2 VM: The main stack (cp-singlenode.yaml) which will deploy the Cisco Crosswork Planning EC2 instance.

Workflow

These are the stages of installing Cisco Crosswork Planning on Amazon EC2.

  1. Ensure that your AWS EC2 environment meets all the requirements.

    Note

    Once you have determined the subnet for your Cisco Crosswork Planning node, confirm that there are enough available IP addresses to support the node (and virtual IP addresses) needed.

  2. Extract the CF template package. For more information, refer to Extract CF template image.

  3. Install Cisco Crosswork Planning on Amazon EC2 by customizing the CF template. For a list of important parameters that you must specify in the CF template, refer to CF template parameters for installing Cisco Crosswork Planning VM.

  4. Deploy the CF template using the steps in Deploy a CF template.

  5. Verify that the Cisco Crosswork Planning installation is successful using the steps in Monitor the installation.

  6. Access the Cisco Crosswork Planning UI. For more information, refer to Access the Cisco Crosswork Planning UI.

Result

Cisco Crosswork Planning is successfully installed and accessible on Amazon EC2.


Amazon EC2 settings

This section describes the settings that must be configured to install Cisco Crosswork Planning on Amazon EC2.

Cisco Crosswork Planning is deployed in Amazon EC2 using a CloudFormation (CF) template. The CloudFormation process is faster and less error prone than the manual procedure to build the VM. However, you must have the necessary skills to prepare a CloudFormation template with details of the VM deployment.

You must review and meet the prerequisites described in this section before installing Cisco Crosswork Planning in the Amazon Web Services (AWS) environment. Most of the requirements discussed in this section are AWS concepts and not imposed exclusively by Cisco Crosswork Planning.

Table 1. AWS prerequisites and settings

Requirement

Description

VPC and Subnets

Virtual Private Cloud (VPC) is created and configured with dedicated subnets for Crosswork interfaces (Management and Data).

Direct IP connectivity is required between all subnets.

Endpoints

An endpoint is created in your VPC with these parameters:

  • Service name: EC2 service for the region (availability zone) where you are deploying.

  • Private DNS names: Enabled

  • Endpoint type: Interface

  • Under Subnets, specify the management subnet that you intend to use for the installation.

For information on how to configure the endpoints, refer to the AWS documentation.

IAM role

A role is created in Identity and Access Management (IAM) with relevant permission policies. An IAM role is an identity that has specific permissions with credentials that are valid for short durations. Roles can be assumed by entities that you trust.

Note
  • The minimum permissions required for a Crosswork role are ec2:DescribeNetworkInterfaces, ec2:AssignPrivateIpAddresses and ec2:UnassignPrivateIpAddresses.

  • The trust policy for your role must have the "Action": "sts:AssumeRole" condition.

Key pairs

Key pairs (private keys used to log into the VM) are created and configured.

IP addresses

Four IPv4 addresses: One management and one data IP address for the node being deployed, and two additional IP addresses to be used as the management and data Virtual IP (VIP) address (one for the Management network and one for the Data network).

Security group

Create and configure a security group to specify which ports or traffic are allowed.

Instance type

The resource profile for your instance deployment. The AWS Instance type should be selected to conform with the VM resource and network requirements listed in Cisco Crosswork Planning resource footprint for AWS EC2.

  • Select m5.4xlarge for demos or lab deployments.

  • Select m5.8xlarge or m6i.8xlarge for production deployments.

  • Select m5.16xlarge or m6i.16xlarge for extra large profiles.

CloudFormation (CF) template

The CF template (.yaml) file for Cisco Crosswork Planning that must be uploaded during installation. For more information, see Extract CF template image.

Route53DomainName

Domain name configured for Route53 DNS hosted zone.

User data

The VM-specific parameters script that must be specified during the manual installation procedure.

Hosted Zone ID

Provide the Hosted Zone ID with the domain name (Route53DomainName).


Cisco Crosswork Planning resource footprint for AWS EC2

When deploying in AWS EC2, choose an EC2 instance size that meets or surpasses the resource requirements listed in this table.

Component

vCPU

Memory (RAM)

Network Interface Controller (NIC)

Storage (Boot disk + Data Disks)

Cisco Crosswork Planning node

16

128 GB

10 Gbps

1 TB

The VM data store(s) need to have disk access latency < 10 ms and > 5000 IOPS.

Cisco Crosswork Planning node (xLarge profile)

24

256 GB

10 Gbps

1 TB

The VM data store(s) need to have disk access latency < 10 ms and > 5000 IOPS.

Cisco SR-PCE

Note
This is the requirement for running a Cisco XRv9K with SR-PCE functionality enabled.

8

24 GB

10 Gbps

120 GB

Basic SCP Server (for storing backups)

-

-

-

At least 25 GB (recommended)


CF template parameters for installing Cisco Crosswork Planning VM

This section describes the parameters that are required for deploying a Cisco Crosswork Planning VM.

Note
  • The parameters that are mandatory for creating the template are indicated explicitly. Parameters without this indication are optional and are populated with the default values, which you can alter based on your deployment requirement.

  • All IP addresses you enter as parameters should be available.

Table 2. Cisco Crosswork Planning VM deployment parameters

Parameter

Description

VpcId

The Virtual Private Cloud (VPC) ID of your existing VPC. For example, vpc-0f83aac74690101a3.

SecGroup

A pre-created security group that must be applied to the stack. For example, sg-096ff4bc355af16a0. The group must allow ingress access to ports 22, 30160:31560.

CwSSHPassword

The SSH password of the Cisco Crosswork Planning.

Note

We recommend using an external secret store for the password.

SSHKeyName

EC2 key name to use for cw-admin access.

This is an optional parameter.

CwAmiId

The Cisco Crosswork Planning AMI ID.

This is a mandatory parameter.

CwMgmtSubnetId

The management subnet for the Cisco Crosswork Planning VM.

CwMgmtSubnetNetmask

The management subnet netmask in dotted decimal form. For example, 255.255.255.0. This parameter is ignored when deploying in a single interface mode.

This is a mandatory parameter.

CwMgmtSubnetGateway

The management default gateway on the selected data subnet. Typically, the first address on the subnet. This parameter is ignored when deployed in a single interface mode.

This is a mandatory parameter.

InterfaceDeploymentMode

The deployment mode.

Options: 1 to deploy the Management interface or 2 to deploy the Management and Data interface.

HostedZoneId

The Hosted Zone ID provided with the domain name (Route53DomainName). The Network Load Balancer (NLB) deployments require a predefined Route53 hosted zone.

This is a mandatory parameter.

ManagementVIPName

Cisco Crosswork Planning Management VIP name. For example, dev1-cwmgnt.

DataVIPName

Cisco Crosswork Planning Data VIP name. For example, dev1-cwdata.

Route53DomainName

Domain name used for all Route53 objects.

This is a mandatory parameter.

CwDataSubnetId

The data subnet for the Cisco Crosswork Planning VM.

CwDataSubnetNetmask

The data subnet netmask in dotted decimal form. For example, 255.255.255.0. This parameter is ignored when deploying in a single interface mode.

This is a mandatory parameter.

CwDataSubnetGateway

The management default gateway on the selected data subnet. Typically, the first address on the subnet. This parameter is ignored when deployed in a single interface mode.

This is a mandatory parameter.

Table 3. Optional VM parameters

Parameters

Description

CwMgmtVIP

The current Cisco Crosswork Planning Management VIP address.

CwDataVIP

The current Cisco Crosswork Planning Data VIP address. When using an external NLB, you can leave this parameter empty.

Cw1MgmtIP

A free address on the management subnet. If not specified, an address is automatically assigned.

Cw1DataIP

A free address on the data subnet. If not specified, an address is automatically assigned.

Table 4. Cisco Crosswork Planning VM customization parameters

Parameter

Description

InstanceType

The EC2 instance type for the node instances.

This is a mandatory parameter.

RunAsSpotInstance

A spot instance.

Options are:

  • True: to enable the feature

  • False: to disable the feature

Default value is False.

This is a mandatory parameter.

DataDiskSize

Cisco Crosswork Planning data disk size. The default is 450 GB and should be fine for most deployments. Enter the default unless otherwise directed by Cisco Customer Experience team.

This is a mandatory parameter.

K8sServiceNetwork

The network address for the Kubernetes service network. The CIDR range is fixed to '/16'. If not provided, the default will be taken, that is, 10.96.0.0.

This is a mandatory parameter.

K8sPodNetwork

The network address for the Kubernetes pod network. The CIDR range is fixed to '/16'."

This is a mandatory parameter.

SkipAutoInstall

Configures the Skip Auto Install feature. Options are:

  • True: to enable the feature

  • False: to disable the feature

Default value is False.

This is a mandatory parameter.

EnforcePodReservations

Enforces minimum resource reservations for the pod.

IgnoreDiagnosticsCheckFailure

Sets the system response in case of a diagnostic check failure.

Table 5. Optional Cisco Crosswork Planning VM customization parameters

Parameter

Description

CreateEni

Select "True" to deploy ENI.

EniStackName

Specify the Cisco Crosswork Planning StackName where ENI is already created, only if CreateEni is False.


Roles and policy permissions

This section describes the roles and the policy permissions required for deploying the CF template on Amazon. For information on how to create and manage the roles, refer to the Amazon documentation.

Table 6. Amazon EC2 Roles and Actions Assigned to the Roles

Role

Actions

EC2

DescribeInternetGateways, DescribeNetworkInterfaces, DescribeImages, DeleteLaunchTemplate, DescribeSubnets, DescribeAccountAttributes, DescribeSecurityGroups, RunInstances, DescribeVpcs, DescribeInstances, CreateNetworkInterface, CreateTags, DescribeKeyPairs, CreateLaunchTemplate, DeleteNetworkInterface, TerminateInstances

ELB

DescribeLoadBalancers, CreateLoadBalancer, ModifyLoadBalancerAttributes, AddTags, DeleteLoadBalancer

ELB v2

DescribeLoadBalancers, CreateLoadBalancer, AddTags, DeleteLoadBalancer, CreateTargetGroup, CreateListener, DeleteListener, DescribeTargetGroups, ModifyLoadBalancerAttributes, DescribeListeners, RegisterTargets, DeleteTargetGroup, ModifyTargetGroupAttributes, DescribeTargetHealth

IAM

CreateNodegroup, DescribeNodegroup, DeleteNodegroup


Extract CF template image

Use this task to extract and validate the Cisco Crosswork Planning CF template image.

Note
  • The file names mentioned in this topic are sample names and may differ from the actual file names in release version.

  • The image files (AMI files) for the deployment are not posted on cisco.com, but are instead copied to the customer's AWS account based on request. For more information, please contact your Cisco Account team.

Procedure

  1. Download the Cisco Crosswork Planning CF template package from cisco.com (for 7.2.0, use this link and for 7.2.1-SP, use this link). The file name is crosswork-planning-single-node-cft-7.2.0-18.tar.gz for 7.2.0 and crosswork-planning-single-node-cft-7.2.1.tar.gz for 7.2.1-SP.

  2. Unzip the package.

    • For 7.2.0:

      tar -xzvf crosswork-planning-single-node-cft-7.2.0-18.tar.gz
    • For 7.2.1-SP:

      tar -xzvf crosswork-planning-single-node-cft-7.2.1.tar.gz

    The package is unzipped into a new directory. This new directory includes the CF template image and files needed for image validation.

    Example:

    • For 7.2.0:

      tar -xzvf crosswork-planning-single-node-cft-7.2.0-18.tar.gz
      
      x crosswork-planning-single-node-cft-7.2.0-releasecnc720-18.tar.gz
      x crosswork-planning-single-node-cft-7.2.0-releasecnc720-18.tar.gz.signature
      x README
      x CW-CCO_RELEASE.cer
      x cisco_x509_verify_release.py3
      x cisco_x509_verify_release.py
    • For 7.2.1-SP:

      tar -xzvf crosswork-planning-single-node-cft-7.2.1.tar.gz
      
      x crosswork-planning-single-node-cft-7.2.1-releasecnc720-43.tar.gz
      x crosswork-planning-single-node-cft-7.2.1-releasecnc720-43.tar.gz.signature
      x README
      x CW-CCO_RELEASE.cer
      x cisco_x509_verify_release.py3
      x cisco_x509_verify_release.py
  3. Review the contents of the README file to learn what is included in the package and how the package is validated.

  4. Go to the newly created directory and verify the signature of the installer image.

    If you are using Python 2.x, use this command to validate the file:

    python cisco_x509_verify_release.py -e <.cer file> -i <.tar.gz file> -s 
    <.tar.gz.signature file> -v dgst -sha512

    If you are using Python 3.x, use this command to validate the file:

    python cisco_x509_verify_release.py3 -e <.cer file> -i <.tar.gz file> -s 
    <.tar.gz.signature file> -v dgst -sha512
    Note

    Use python --version to find out the version of Python on your machine.

    Example:

    • For 7.2.0:

      python cisco_x509_verify_release.py3 -e CW-CCO_RELEASE.cer -i crosswork-planning-single-node-
      cft-7.2.0-releasecnc720.tar.gz -s crosswork-planning-single-node-cft-7.2.0-releasecnc720.tar.gz.signature 
      -v dgst -sha512
      
      Retrieving CA certificate from http://www.cisco.com/security/pki/certs/crcam2.cer ...
      Successfully retrieved and verified crcam2.cer.
      Retrieving SubCA certificate from http://www.cisco.com/security/pki/certs/innerspace.cer ...
      Successfully retrieved and verified innerspace.cer.
      Successfully verified root, subca and end-entity certificate chain.
      Successfully fetched a public key from CW-CCO_RELEASE.cer.
      Successfully verified the signature of crosswork-planning-single-node-cft-7.2.0-releasecnc720.tar.gz using CW-CCO_RELEASE.cer
    • For 7.2.1-SP:

      python cisco_x509_verify_release.py3 -e CW-CCO_RELEASE.cer -i crosswork-planning-single-node-
      cft-7.2.1-releasecnc720-43.tar.gz -s crosswork-planning-single-node-cft-7.2.1-releasecnc720-43.tar.gz.signature 
      -v dgst -sha512
      
      Retrieving CA certificate from http://www.cisco.com/security/pki/certs/crcam2.cer ...
      Successfully retrieved and verified crcam2.cer.
      Retrieving SubCA certificate from http://www.cisco.com/security/pki/certs/innerspace.cer ...
      Successfully retrieved and verified innerspace.cer.
      Successfully verified root, subca and end-entity certificate chain.
      Successfully fetched a public key from CW-CCO_RELEASE.cer.
      Successfully verified the signature of crosswork-planning-single-node-cft-7.2.1-releasecnc720-43.tar.gz using CW-CCO_RELEASE.cer

    The contents of the package is extracted and validated successfully.

  5. Unzip the installer package.

    • For 7.2.0:

      tar -xzvf crosswork-planning-single-node-cft-7.2.0-releasecnc720.tar.gz
    • For 7.2.1-SP:

      tar -xzvf crosswork-planning-single-node-cft-7.2.1-releasecnc720-43.tar.gz
  6. In the directory (Cloud), locate the "cp-singlenode.yaml" file. This file is used to install Cisco Crosswork Planning on Amazon EC2.

  7. Customize the CF template in the directory to install Cisco Crosswork Planning on Amazon EC2 . For a list of installation parameters, see CF template parameters for installing Cisco Crosswork Planning VM.


Deploy a CF template

You can install Cisco Crosswork Planning on Amazon EC2 with custom resources. Depending on the configured parameters, the system installs the required components with their respective capabilities.

Before you begin

  • Ensure you have met the Amazon EC2 settings prescribed for installing Cisco Crosswork Planning on Amazon EC2.

  • Ensure you have access to the CloudFormation template that is stored in the S3 bucket or on your local machine. If the template is in Amazon S3, keep the URL of the template file copied.

Procedure

  1. Log in to the AWS account and navigate to the S3 bucket. If the CF template (cp-singlenode.yaml) is on your local computer, you can upload the template.

  2. In the AWS CloudFormation console, navigate to the Stacks page and choose Create stack > With new resources (standard).

    The Create stack page opens.
  3. Enter these details:

    1. Under Prerequisite - Prepare template, select Template is ready.

    2. Under Specify template > Template source, select one of these options:

      • If you have the YAML file URL directing to the S3 bucket where the CF template is located, select Amazon S3 URL. In the Amazon S3 URL field, enter the URL and click Next.

      • If the CF template is saved on your local computer, select Upload a template file and click Choose File to select the file you want to upload. After you have selected the template, Amazon uploads the file and displays the S3 URL. Click Next.

    Note

    (Optional) Click View in Designer to view a visual representation of the execution flow in your CF template.

  4. In the Specify stack details page, enter the relevant values for the stack name and parameter values. Click Next.

    Note

    The fields visible in this page are defined by the parameters in the CF template.

  5. Review the parameter values that you have configured.

  6. Under Capabilities, select these check boxes:

    • I acknowledge that AWS CloudFormation might create IAM resources with custom names.

    • I acknowledge that AWS CloudFormation might require the following capability: CAPABILITY_AUTO_EXPAND.

  7. Submit the changes.

What to do next

The time taken to create the cluster can vary based on the size of your deployment profile and the performance characteristics of your hardware. To know how you can check the status of the installation, refer to Monitor the installation.


Monitor the installation

This section describes how to verify if the deployment is complete without errors.

Procedure

  1. In the CloudFormation console, from the left side Stacks pane, select the stack that you have deployed.

  2. The stack details are displayed on the right. Click on each tab in this window to view details of the stack. If the stack creation is in progress, the status of the stack in the Events tab is CREATE_IN_PROGRESS.

  3. After the stack is created:

    • The status of the stack changes to CREATE_COMPLETE and the Logical ID displays the stack name.

    • The Resources tab displays the details of all the resources created by the CF template, including the physical IDs.

    • The Outputs tab has details of the interface IP addresses of the VM.


Access the Cisco Crosswork Planning UI

After the stacks are created, you can check if the node is up and running from the Cisco Crosswork Planning UI.

Before you begin

  • Ensure that you have a spare Network Load Balancer (NLB). To access Cisco Crosswork Planning UI, use an external NLB that routes requests to its targets using the protocol DNS and port number that you specify.

  • Verify that the Cisco Crosswork Planning pods are in the running state. For information on how to view the status, refer to Monitor the installation.

  • Make sure to keep the IP address of the Management node copied. This IP address is used to access the Cisco Crosswork Planning UI. You can copy the IP address from the Outputs tab of the CloudFormation console. For information on accessing the Outputs tab, refer to Monitor the installation.

Procedure

  1. Log in to the AWS console and navigate to Target Groups to register the targets.

  2. Under Targets, click Register targets. The Register targets page opens.

  3. In the IPv4 address, specify the Management IP address that you copied from the CloudFormation console.

  4. Specify the port as 30603. Click Include as pending below.

  5. Click Register pending targets.

    To deregister the targets that are no longer in use, select the target and click Deregister.

  6. After the target is in the healthy state, click the load balancer name under Details.

    The Load balancer page opens.
  7. Copy the DNS name from the DNS name column.

  8. Launch a supported browser and enter https://<DNS_name>:30603/ in the address bar.

    Note

    When you access Cisco Crosswork Planning for the first time, some browsers display a warning that the site is untrusted. When this happens, follow the prompts to add a security exception and download the self-signed certificate from Cisco Crosswork server. After you add a security exception, the browser accepts the server as a trusted site in all future login attempts.

  9. Log in to Cisco Crosswork Planning.

    1. Enter the Cisco Crosswork Planning administrator username admin and the default password admin.

    2. Click Log In.

    3. When prompted to change the administrator's default password, enter the new password in the fields provided, and then click OK.

      Note

      Use a strong VM password (a minimum of eight characters, including uppercase and lowercase letters, numbers, and at least one special character). Avoid using passwords similar to dictionary words (for example, "Pa55w0rd!") or relatable words.

What to do next

Click the Crosswork Health tab, and click on the Crosswork Infrastructure tile to view the health status of the microservices running on Cisco Crosswork Planning.