Skip to content

Deploying a workload

Workloads that have been provisioned in the Management System are ready to be deployed in the menu Deploy Icon Deploy > Deployments.

Deploy Menu

This section covers the deployment process of the available workloads: CODESYS workloads, Virtual Machine workloads, Docker workloads and Docker Compose workloads. The process of deploying workloads is identical for all types of workloads. Therefore, the instructions below contain no specific information. Workloads can be deployed from the following areas in the Management System:

  • Deploy menu
  • Workloads menu

Deploying a workload from the Deploy menu

The Deploy menu is a section of the Management System dedicated to deploying workloads to nodes.

  1. Select Deploy Icon Deploy > Deployments in the navigation on the left.
  2. Select one of the workload type icons. A list of corresponding workloads will appear below.

    Workload List

  3. Select a workload from the list. A list of versions of this workload will appear to the right.
    Workload Versions

  4. Select the version of the workload to deploy.

  5. Select Next in the bottom-right corner.
    Select next

  6. Tick the checkboxes on the left to select one or more nodes from the list for deployment.

    Note

    Automatic filtering of nodes is applied according to labels, online status and capabilities. The list of available nodes only displays nodes compatible for the workload. For example, it is not possible to deploy a workload that uses Management System registry to a node that doesn't support it.

  7. Select Next in the lower-right corner.
    Workload Icons

  8. Select Deploy to execute the deployment.
    Optional: Enter a Deploy name to make this deployment easy to identify. A timestamp is filled in automatically.

    Workload Icons

The Management System will continue to the deployment logs next. The current deployment is at the top of the list. The Deploy name chosen before is the name that identifies the deployment in the log.

Workload Icons

Select the log entry of the deployment to see a more detailed view. The progress of the current deployment is displayed here.

Workload Icons

If the workload has been deployed successfully, it can be checked in the node tree. Select Nodes Symbol Nodes > View in the navigation on the left. Select the node with the deployed workload to find the deployed workload in the Overview.

Workload Icons

Reach the workload control area by selecting a workload. All workloads are started as soon as they are deployed. Note that CODESYS applications can only be controlled through the Local UI.

Deploying a workload from the Workloads menu

It is also possible to deploy workloads from the Workloads menu. A Deploy Icon Deploy icon is available for every workload version in the list of workload versions.

  1. Select Workloads in the navigation on the left. Select workloads menu

  2. Select a workload from the list.

  3. Select the Deploy Icon Deploy icon from the Action column of the workload version that will be deployed.
  4. Tick the checkboxes on the left to select one or more nodes from the list for deployment.

    Note

    Automatic filtering of nodes is applied according to labels, online status and capabilities. Additionally, when you deploy a workload that uses the Docker registry to the node, only nodes that support the Docker registry will be shown. The list of available nodes only displays nodes compatible for the workload.

  5. Select Next in the lower-right corner.
    Workload Icons

  6. Select Deploy to execute the deployment.
    Optional: Enter a Deploy name to make this deployment easy to identify. A timestamp is filled in automatically. Workload Icons

The Management System will continue to the deployment logs next. The current deployment is at the top of the list. The Deploy name chosen before is the name that identifies the deployment in the log.

Workload Icons

Select the log entry of the deployment to see a more detailed view. The progress of the current deployment is displayed here.

Workload Icons

If the workload has been deployed successfully, it can be checked in the node tree. Select Nodes Symbol Nodes > View in the navigation on the left. Select the node with the deployed workload to find the deployed workload in the Overview.

Workload Icons

Reach the workload control area by selecting a workload. All workloads are started as soon as they are deployed. Note that CODESYS applications can only be controlled through the Local UI.

Removing logical volumes after unsuccessful VM deployment

If a virtual machine workload fails in the download phase of the deployment process, it is possible that the logical volumes created for the workload stay behind. This does not negatively impact the system. However, the disk space reserved for the virtual machine workload will stay reserved unless it is removed. Follow the instructions below to find out the workload ID of the failed deployment and how to remove the logical volume.

Finding out the workload ID

Every workload has a unique ID that is used for naming the logical volume when it is created during the deployment process. This workload ID can be found in a JSON file when a workload is exported from the Management System.

  1. Access the Management System.
  2. Export the virtual machine workload the deployment of which has failed by following Exporting a workload. The workload is downloaded as a TAR file.
  3. Navigate to the folder where the TAR file is located.
  4. Extract the TAR file.
  5. Open the JSON file with a text editor. The TAR file only contains one JSON file.
  6. Look for "workloadId" in the file. It is the second entry in the file.

    Find Workload ID

  7. Note down the ID. It is required to identify the logical volume that needs to be removed.

Removing the logical volumes

With the workload ID of the unsuccessfully deployed workload, the logical volumes can be correctly identified and removed. For this, the workstation needs to be connected to the physical port of the Nerve Device associated with host access, and the network adapter IP address of the workstation needs to be configured in the correct range. This information is device specific. Refer to the device guide for information on the Nerve Device.

Note

The following instructions require access to the Linux host system of Nerve. Using host access requires expert Linux knowledge as system internal changes can be performed. Note that changes may impact the Nerve system.

  1. Open an SSH client like PuTTY.
  2. Enter the IP address for host access to the Nerve Device under Host Name (or IP address) to log in to the host of the Nerve Device.

    PuTTY Host Login

  3. Log in with the credentials for host access to the Nerve Device.

  4. Enter lsblk to display a list of volumes.
  5. Find the logical volume containing the workloadId from the JSON file.

    Find logical volume

  6. Enter the following command to remove the logical volumes:

    sudo lvremove /dev/nerve/<volume-name> -y
    

Note

Note that the steps above can also be performed through a remote connection. Refer to Configuring a remote tunnel to a node for more information.

Log

Select Deploy Icon Deploy > Log to view the history of deployments. This includes:

  • deployments in progress
  • failed deployments
  • successful deployments

It is displayed in reverse chronological order and can be filtered according to search criteria. It also offers some control functionality for active and failed deployments.

Log

Item Description
Search by name (1) Enter text here to filter the list by deployment name.
Workload type (2) Select an option from the drop-down menu to filter the list for a specific workload type: VM, Docker, CODESYS or Compose.
Deploy name (3) This is the name of the deployment with the workload type displayed as a symbol. The default is the time of deployment unless a deployment name has been entered during the deployment process. Note that this is not the name of the workload.
Workload name (4) This is the workload name as defined during workload creation.
Version name (5) This is the workload version name as defined during workload creation.
Status (6) The status is an indicator for both progress and status. Depending on the status of the deployment the content changes:
  • Done
    This is displayed if a workload has been deployed successfully
  • Percentages
    If a workload is currently being deployed, the progress of the deployment is displayed in percent.
  • Failed
    This is displayed if the deployment of a workload has failed.
Finished (7) This is the date and time the workload deployment was completed. The date format is DD/MM/YYYY.
This field will display In progress if a workload is in progress of being deployed.
Action (8) This column contains the Delete icon. Selecting this will remove the entry from the log. When a workload is in progress, this entry is grayed out.

Deployment details

Selecting an entry in the log will show the details of the deployment.

Deployment Details

Item Description
Back button (1) Select the arrow to return to the log.
Header (2) The header states the name of the deployment in the format Details of deployment <deploymentname>.
Search (3) Enter text here to filter the Operation task list by device name. The search function can be combined with the status checkboxes to the right of the search bar.
Status checkboxes (4) The checkboxes to the right of the search bar filter the Operation task list by status:
  • Successful
    Deployments that were completed successfully are shown in the list if this checkbox is ticked.
  • In progress
    Deployments that are currently in progress are shown in the list if this checkbox is ticked.
  • Failed
    Deployments that could not be completed are shown if this checkbox is ticked.
  • Canceled
    Deployments that have been aborted by the user are shown in the list if this checkbox is ticked. However, it is not possible to cancel deployments in this version.
If a checkbox is ticked, tasks with the corresponding status will be displayed in the operation task list. All checkboxes are ticked by default.
Deployment information (5) This is information about the deployment.
  • Workload name
    The name of the workload that has been defined in the provisioning process. Selecting this link redirects to the version list of this workload.
  • Workload version
    The name of the workload version. Selecting this link redirects to the settings page of this workload version.
  • Operation start time
    This is the date and time the workload deployment was started. The date format is DD/MM/YYYY, hh:mm:ss.
  • Operation finish time
    This is the date and time the workload deployment finished. The date format is DD/MM/YYYY, hh:mm:ss.
  • Release name
    This is the release name of the workload version.
  • Type
    This is the type of the workload that has been deployed: codesys, vm, docker or docker-compose.
  • Status
    This is the status of the deployment. Possible statuses are Created, In progress, Completed, Error, Canceled.
  • Status
    This is incorrectly labeled. The second status box displays the progress of the deployment in percent.
Operation task list (6) The operation task list displays details for single deployments that are part of the deployment campaign. The list displays information in six columns:
  • Action Icon
    Here the icon of the deployment action (Deploy or Replacement) is displayed.
  • Node name
    This is the node name of the node that is the target of the deployment. Selecting this link redirects to the node details view of this node in the node tree.
  • Serial number
    This is the serial number of the node that is the target of the deployment. Selecting this link redirects to the node details view of this node in the node tree.
  • Status
    This is the status of the deployment. The status is an indicator for both progress and status. Depending on the status of the deployment the content changes:
    • Done
      This is displayed if a workload has been deployed successfully
    • Percentages
      If a workload is currently being deployed, the progress of the deployment is displayed in percent.
    • Failed
      This is displayed if the deployment of a workload has failed. A red notice icon is also displayed right next to it. Hover over the icon to have the error feedback message appear.
  • Retry counter/max
    In case of failure, the Management System will attempt the deployment of a workload up to three times automatically. The left number of the counter shows the number of the current attempt. The right number is the maximum number of attempts.
  • Started
    This is the date and time the workload deployment was started. The date format is DD/MM/YYYY, hh:mm:ss.
  • Finished
    This is the date and time the workload deployment was finished. The date format is DD/MM/YYYY, hh:mm:ss.
  • Action
    The second Action column contains icons for different actions:
    • Retry
      Select this to immediately retry a failed deployment. Refer to Restarting a failed deployment below for more information.
    • Mark task as success
    • Mark task as fail