Cisco Crosswork Planning 7.2.x Installation Guide

PDF

Cisco Crosswork Planning 7.2.x Installation Guide

Install Cisco Crosswork Planning using the Docker installer tool

Want to summarize with AI?

Log in

Describes how to install Cisco Crosswork Planning using the docker installer tool.


This section explains the procedure to install Cisco Crosswork Planning on a single VM using the docker installer tool.

This method is less recommended compared to using the vCenter UI or the OVF tool for installation.

Before you begin

  • Make sure that your environment meets all the vCenter requirements specified in VMware settings.

  • The edited template in the /data directory contains sensitive information (VM passwords and the vCenter password). The operator needs to manage access to this content. Store the templates used for your install in a secure environment or edit them to remove the passwords.

  • The install.log, install_tf.log, and .tfstate files will be created during the install and stored in the /data directory. If you encounter any trouble with the installation, provide these files to the Cisco Customer Experience team when opening a case.

  • The install script is safe to run multiple times. Upon error, input parameters can be corrected and re-run. You must remove the install.log, install_tf.log, and tfstate files before each re-run. Running the installer tool multiple times may result in the deletion and re-creation of VMs.

  • In case you are using the same installer tool for multiple Cisco Crosswork Planning installations, it is important to run the tool from different local directories, allowing for the deployment state files to be independent. The simplest way to do this is to create a local directory for each deployment on the host machine and map each one to the container accordingly.

  • Docker version 19 or higher is required while using the installer tool. For more information on Docker, see https://docs.docker.com/get-docker/.

  • To change the install parameters or to correct the parameters following the installation errors, it is important to distinguish whether the installation has managed to deploy the VM or not. Deployed VM is evidenced by the output of the installer similar to:

    vsphere_virtual_machine.crosswork-IPv4-vm["1"]: Creation complete after 2m50s [id=4214a520-c53f-f29c-80b3-25916e6c297f]
  • If you do not have Python installed, go to python.org and download the version of Python that is appropriate for your workstation.

Known limitations:

  • The vCenter host VMs defined must use the same network names (vSwitch) across all hosts in the data center.

  • The vCenter storage folders or datastores organized under a virtual folder structure, are not supported currently. Ensure that the datastores referenced are not grouped under a folder.

Procedure

  1. Create a directory for installation files and download the required files.

    1. In your Docker capable machine, create a directory where you will store everything you will use during this installation.
      Note

      If you are using a Mac, ensure that the directory name is in lower case.

    2. Download the installer bundle (.tar.gz file) and the OVA file from cisco.com (for 7.2.0, use this link and for 7.2.1-SP, use this link) to the directory you created previously.

      For the purpose of these instructions, we will use the file name as:

      • For 7.2.0: crosswork-planning-single-node-docker-deployment-7.2.0-45.tar.gz and crosswork-planning-single-node-deployment-7.2.0-45.ova

      • For 7.2.1-SP: crosswork-planning-single-node-docker-deployment-7.2.1.tar.gz and crosswork-planning-single-node-deployment-7.2.1.ova

      The file names mentioned in this topic are sample names and may differ from the actual file names on cisco.com.

  2. Unzip and review the installer bundle.

    1. Use this command to unzip the installer bundle:
      • For 7.2.0:

        tar -xvf crosswork-planning-single-node-docker-deployment-7.2.0-45.tar.gz

        The installer bundle is unzipped to a new directory. This directory will contain the installer image (cw-na-planning-7.2.0-45-releasecnc720-260127.tar.gz) and the files needed to validate the image.

      • For 7.2.1-SP:

        tar -xvf crosswork-planning-single-node-docker-deployment-7.2.1.tar.gz

        The installer bundle is unzipped to a new directory. This directory will contain the installer image (crosswork-planning-single-node-docker-deployment-7.2.1-123.tar.gz) and the files needed to validate the image.

    2. Review the contents of the README file to understand everything that is in the package and how it will be validated in the following steps.
  3. Verify the signature of the installer image using this command.

    Note

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

    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:

    python3 cisco_x509_verify_release.py3 -e <.cer file> -i <.tar.gz file> -s <.tar.gz.signature file> -v dgst -sha512
  4. Load the installer image into Docker and get the image ID.

    1. Use this command to load the installer image file into your Docker environment.
      docker load -i <.tar.gz file>

      For example:

      docker load -i crosswork-planning-single-node-docker-deployment-7.2.1-123.tar.gz
    2. Run the docker image list or docker images command to get the "image ID" (which is needed in the next step).

      For example:

      docker images

      The result will be similar to this. This example is for 7.2.1-SP. The section we will need is underlined for clarity.

      My Machine% docker images
      
      REPOSITORY            TAG                       IMAGE ID           CREATED     SIZE
      dockerhub.cisco.com/  crosswork-planning-single 59c350e0cdf2 7 days ago  414MB
      cw-installer          -node-docker-deployment
                            -7.2.1-123.tar.gz
      
      Note

      Pay attention to the "CREATED" time stamp in the table presented when you run docker images, as you might have other images present from the installation of prior releases. If you wish to remove these, the docker image rm {image id} command can be used.

  5. Launch the Docker container using this command:

    docker run --rm -it -v `pwd`:/data {image id of the installer container}

    To run the image loaded in our example, use this command:

    docker run --rm -it -v `pwd`:/data 4b99cf7d0684
    Note
    • You do not have to enter that full value. In this case, docker run --rm -it -v `pwd`:/data 4b9 was adequate. Docker requires enough of the image ID to uniquely identify the image you want to use for the installation.

    • In the above command, we are using the backtick (`). Do not use the single quote or apostrophe (') as the meaning to the shell is very different. By using the backtick (recommended), the template file and OVA will be stored in the directory where you are on your local disk when you run the commands, instead of inside the container.

    • CentOS/RHEL hosts, by default, enforce a strict SELinux policy which does not allow the installer container to read from or write to the mounted data volume. On such hosts, run the Docker volume command with the Z option as shown below:

      docker run --rm -it -v `pwd`:/data:Z <remainder of docker options>
    Note

    The Docker command provided will use the current directory to read the template and the ova files, and to write the log files used during the install.

    If you encounter either of these errors you should move the files to a directory where the path is in lowercase (all lowercase, no spaces or other special characters). Then, navigate to that directory and rerun the installer.

    Error 1:
    % docker run --rm -it -v `pwd`:/data 4b9
    docker: invalid reference format: repository name must be lowercase.
    See 'docker run --help'
    Error 2:
    docker: Error response from daemon: Mounts denied: approving /Users/Desktop: 
    file does not exist
    ERRO[0000] error waiting for container: context canceled
  6. Prepare the deployment template.

    1. Navigate to the directory with the VMware template.
      cd /opt/installer/deployments/7.2.x/vcenter
    2. Copy the template file found under /opt/installer/deployments/7.2.x/vcenter/deployment_template_tfvars to the /data folder using a different name.

      For example, cp deployment_template_tfvars /data/deployment.tfvars

      For the rest of this procedure, we will use deployment.tfvars in all the examples.

    3. Edit the template file located in the /data directory in a text editor, to match your planned deployment (for reference, see Sample manifest template). The <sample manifest template> includes an example that you can reference for proper formatting. The example is more compact due to the removal of descriptive comments.
  7. From the /opt/installer directory, run the installer.

    ./cw-installer.sh install -m /data/<template file name> -o /data/<.ova file>

    For example:

    • For 7.2.0:

      ./cw-installer.sh install -m /data/deployment.tfvars -o /data/crosswork-planning-single-node-deployment-7.2.0-45.ova
    • For 7.2.1-SP:

      ./cw-installer.sh install -m /data/deployment.tfvars -o /data/crosswork-planning-single-node-deployment-7.2.1.ova
  8. Accept the license agreement and complete the installation.

    1. Read, and then enter "yes" if you accept the End User License Agreement (EULA). Otherwise, exit the installer and contact your Cisco representative.
    2. Enter "yes" when prompted to confirm the operation.
      Note
      It is not uncommon to see some warnings like this during the install:
      Warning: Line 119: No space left for device '8' on parent controller '3'.
      Warning: Line 114: Unable to parse 'enableMPTSupport' for attribute 'key' on element
      'Config'.

      If the install process proceeds to a successful conclusion (see sample output below), these warnings can be ignored.

      Sample output:
      cw_vms = <sensitive>
      INFO: Copying day 0 state inventory to CW
      INFO: Waiting for deployment status server to startup on 10.90.147.66. 
      Elapsed time 0s, retrying in 30s
      Crosswork deployment status available at http://{VIP}:30602/d/NK1bwVxGk/crosswork-
      deployment-readiness?orgId=1&refresh=10s&theme=dark 
      Once deployment is complete login to Crosswork via: https://{VIP}:30603/#/
      logincontroller 
      INFO: Cw Installer operation complete.
      Note

      If the installation fails, open a case with Cisco and provide the .log files that were created in the /data directory (and the local directory where you launched the installer Docker container), to Cisco for review. The two most common reasons for the install to fail are: (a) password that is not adequately complex, and (b) errors in the template file. If the installer fails for any errors in the template (for example, mistyped IP address), correct the error and rerun the install script.


Sample manifest template

This section provides the manifest template example for deploying Cisco Crosswork Planning 7.2.1-SP on a single VM.


Cw_VM_Image = "crosswork-planning-single-node-deployment-7.2.1"  # Line added automatically by installer.
ClusterIPStack = "IPv4"
ManagementVIP = "172.20.118.86"
ManagementIPNetmask = "255.255.255.0"
ManagementIPGateway = "172.20.118.1"
DataVIP = "172.20.118.87"
DataIPNetmask = "255.255.255.0"
DataIPGateway = "172.20.118.1"
DNS = "172.24.97.250"
DomainName = "cisco.com"
CWPassword = "*****!"
VMSize = "Large"
NTP = "ntp.esl.cisco.com"
Timezone = "Asia/Calcutta"
ThinProvisioned = true
EnableHardReservations = false
EnableSkipAutoInstallFeature = "True"
ManagementVIPName = "CP-svm"
EnforcePodReservations = "True"
ThinProvisioned = "true"
ManagerDataFsSize = "2000"
SchemaVersion = "5.0.0"
bckup_min_percent = "35"
UseNonDefaultCalicoBgpPort = "true"
IgnoreDiagnosticsCheckFailure = "False"

CwVMs = {
    "0" = {
        VMName = "vm1",
        ManagementIPAddress = "172.20.118.88",
        DataIPAddress = "172.20.118.89",
        NodeType = "Hybrid"
    }
}
 
VCenterDC = {
    VCenterAddress = "172.20.118.84",
    VCenterUser = "<your-username>",
    VCenterPassword = "******",
    DCname = "cp",
    MgmtNetworkName = "VM Network",
    DataNetworkName = "vlan101",
    VMs = [
        {
            HostedCwVMs = ["0"],
            Host = "172.20.118.81",
            Datastore = "datastore1 (2)",
            HSDatastore = "datastore1 (2)"    
        }
    ]
}
# VM size definitions
vm_sizes = {
    "large" = {
        vcpus = 16,
        cpu_reservation = 24000,
        memory = 128000
    }
}