How do I install custom Mistral actions for NSP Workflows?

Purpose

Perform this procedure to install custom Mistral actions created by Nokia Professional Services.

Before you start, the zip file containing the custom actions must be saved in a directory accessible to the root user. The zip file must follow Python directory packaging rules. The subdirectories in the zip file must be called actions and expressions.

This procedure must be performed after an upgrade or DR switchover on the NSP deployer host.

Note: The Mistral pods must be restarted for the custom actions to be applied in NSP Workflows. The restart will affect NSP Workflows operation.

If there are any files in /opt/nsp/volumes/nsp-mistral-data, they must be backed up to make them available for future use.

Note: release-ID in a file path has the following format:

R.r.p-rel.version

where

R.r.p is the NSP release, in the form MAJOR.minor.patch

version is a numeric value

Steps
 

Log in as the root or NSP admin user on the NSP deployer host.


Open a console window.


Enter the following:

cd /opt/nsp/NSP-CN-DEP-release-ID/NSP-CN-release-ID/tools/wfm/bin ↵


Perform one of the following:

  1. To copy the custom actions to the NSP without restarting the pods, enter the following:

    ./custom-actions.bash --install path

  2. To copy the custom actions to the NSP and restart the pods immediately, enter the following:

    ./custom-actions.bash --install path --restart ↵

where path is the absolute path of the zip file that contains the custom actions to install


To restart the Mistral pods, enter the following:

./custom-actions.bash --restart ↵


Close the console window.

End of steps