Installing and Configuring Clara up to V1.0.0.5 with Docker

Checking system prerequisites

Before starting to install Clara, you must check the following system prerequisites:

  1. Verify that Docker and Docker Compose are installed, configured, and ready to use. For the required version, see: System Requirements.  

If you don't have Docker and Docker Compose already installed, see: Installing Docker and Docker Compose.

  1. Clara requires some values to be set for ulimit parameter, for Linux OS. See: How to verify and set ulimit parameter.

  2. Verify the available virtual memory. See: How to verify and set the available virtual memory.

  3. If you are installing Clara on RHEL or CentOS distros, SELinux must be set to Permissive or Disabled. See: How to set SELinux to permissive.

Installation procedure

To install and configure Clara, run the following procedure.

 

  1. From HCL License Portal download the appropriate Clara installation package. Depending on your license type, you have two different options:

Each option is available with 2 different types of installation packages: online and offline.

Use the online installation package to build Clara images directly on your machines. This type of package requires a working Internet connection.

Use the offline installation package if the machine does not have an Internet connection or if you do not want to build Clara.

The following table summarizes the content of the 2 different types of packages:

  1. Extract the content of the tar.gz file into <BUILD_DIR>, a directory of your choice using one of the extraction tools available on your system or downloadable from the Internet. The tool you use must be able to keep the file permissions on the extracted files.

  1. To enable Clara interaction with your Workload Automation environment, you must properly customize the <BUILD_DIR>/clara/config/Clara-WA.env.TEMPLATE file. See below the section about Customizing environment files.  If you want to enable Clara interaction with multiple Workload Automation environments, see Managing multiple Workload Automation environments. You might decide to skip this step: in this case, the installation script will ask you to provide the required customization information during the installation process.  

  2. If you want to change default Clara credentials before building in Docker, see Customizing Clara credentials.

  1. To install Clara on Linux operating system, the user must have read and write permissions for the  <BUILD_DIR>  directory. Also, the user must have execute permission for Docker commands. This means that the user must be a member of sudoers group or Docker group. If the user is a member of sudoers group but not of Docker group, the installation script must be run with sudo.

  1. Open a bash shell and get ready to install Clara.

  1. If it is the first time you install Clara, or you need to update Clara images, you must first build Clara images.  You can skip this step if you are not installing Clara for the first time or the images are locally available.

Change the directory to <BUILD_DIR> and extract the content of clara-img.tar.gz file:

cd <BUILD_DIR>

tar xvfz clara-img.tar.gz

Build Clara images by running the command:

clara-img/clara-build.sh -p -i ALL 2>&1 | tee clara-build.log

 

Note: To run the above command, an active internet connection is required. In case this is not possible, you can build Clara images on a different Linux server with Docker and an internet connection. See Building Clara images on a different server.

 

If you have built images locally, you can skip directly to the next step.

If you have built images on a remote server, ensure all required tar.gz files have been copied locally under <BUILD_DIR> directory and run the following command:

./clara.sh --load-images 

  1. Proceed with Clara installation. See Clara.sh command usage if you want to skip license check, OS prerequisites check, all variable prompts and use defaults (defaults will be loaded from .env file if present in the installation or local path). For example, if you pass the following parameters to the installation script:

  2. --skip-check-prereq --skip-var-prompts

    and a valid .env file if present in the installation or local path, the installation will be completely unattended. Otherwise:

     

clara.sh --install --install-path <install_path>

where <install_path> is the installation directory of your choice (default value is /opt/hcl).

For a detailed description of the command, see clara.sh command.

If Clara is successfully installed, the installation process generates a UID.

        1. Contact HCL Solutions Team (HCLSolutionsSupport@hcl.com) with the UID to get a valid Autobot license (license.properties file).

        2. Copy the license.properties file in the Clara installation directory.

        3. From the installation directory, activate and configure Clara by running the following command:

./clara.sh --load-project <prj> --license license.properties

where <prj> can be:

IWA   IBM Workload Automation

HWA   HCL Workload Automation

IWAz  IBM Workload Automation for z

 

 

 

  1. As the installation script starts, if you haven't previously customized  the <BUILD_DIR>/clara/config/Clara-WA.env.TEMPLATE  file (see step 3), you are required to provide information to enable Clara interaction with your target environment. Press Enter to accept the proposed default values (see step 3).

The installation script checks the prerequisites (unless you have specified the --skip-check-prereq parameter), runs the installation process, and verifies its successful completion.

 

 

clara.sh command

clara.sh [options]

 

OPTIONS:

 

Help:

   -h                      Help

 

To control Clara services:

   

   --up [up options]                 Create and start Clara container

        where [up options] can be:

        [--nc]                               Specify --nc to get the new configuration from the .env file

        [--noauth]                       Specify --noauth to disable authentication

        [--auth]                           Specify --auth to enable authentication

 

   --down  [--vol]                      Stop and remove Clara containers and network

                                               Specify --vol to remove also persistent volumes

   --start                                   Start Clara services

 

   --stop                                   Stop Clara services

   

   --join-net                             Link Clara network to Workload Automation network when they are both running in the same network

 

   --remove                             Print commands to clean-up Clara containers, persistent volumes and network manually

   

   --print-urls                          Print Clara URLS

 

 Examples:

 

    First Clara start-up

      ./clara.sh --up

 

    Stop Clara containers

      ./clara.sh --stop

 

To add a custom Knowledge Base to Clara:

 

   --kb <CSV_file>                Integrate Clara KB with the provided Q&A

                                               <CSV_file>   The CSV file with the KB (use absolute path)

 

To backup and restore Clara persistent volumes:

 

   --backup-volumes             Create a backup file for each Clara persistent volume

   --restore <vol_name> --from-dir <backup_directory>

                                              Restore the volume <vol_name> from the backup stored in

                                              the directory <backup_directory> (use absolute path)

    Examples:

 

    Backup all clara volumes

      clara.sh --backup-volumes

 

    Restore the clara-Etc_data volume taken on 2020-12-09-1439-734236800

      clara.sh --restore clara-Etc_data --from-dir /opt/hcl/clara/backups/2020-12-09-1439-734236800

 

To install Clara:

 

   -c, --prereq                        Check Prerequisites (skip any other option if present)

 

   --load-images                    Load Clara images from clara_images.tar.gz(in the same path as this script)

 

   --install                               Install or upgrade Clara

   

   --install-path <path>         Modify install path (default is /opt/hcl)

   

   --load-project <prj>          Install the specified Clara project

                                              Possible values for <prj> are:

                                              IWA     IBM Workload Automation

                                              HWA   HCL Workload Automation  

                                              IWAz   IBM Workload Automation for z

                                              HWAz HCL Workload Automation for z 

                           

   --license <lic_file>            Import Clara license

                                              <lic_file>    fully qualified path to the license file

                                              Use CONTAINER if Clara was already enabled in the past and

                                               the persistent storage is available

 

   --migrate-data                    Migrate data from Clara V1.0.0.2 or V1.0.0.3 to V1.0.0.4 or above

                                         

   --skip-lic-check                 Pass this parameter to skip license check

   

   --skip-check-prereq         Pass this parameter to skip all OS prereq checks

 

   --skip-var-prompts           Pass this parameter to skip all var prompts except prereq checks and use defaults

                                           Defaults will be loaded from .env file if present in the installation or local path.

 

   --remote-hostname <name> Specify Clara hostname, i.e. can be the hostname for Clara external access

   

Steps:

 

  1. Check Clara prerequisites

./clara.sh -c

  1. Load Clara images (run only of you need to import new images)

./clara.sh --load-images

  1. Install or upgrade Clara. Select one of the following cases:

    1. First time installation (if you don't have a valid license.properties file), run:

 ./clara.sh --install --install-path /opt/hcl

Communicate the generated UID to the HCL Solutions Team (HCLSolutionsSupport@hcl.com) to get a valid license.properties.file.

    1. If you have a valid license.properties file, run:

./clara.sh --install --install-path /opt/hcl --license ./license.properties

    1. If Clara is already installed and activated and the persistent Clara volume is available, you can re-use the license already cached. Run:

./clara.sh --install --install-path /opt/hcl --license CONTAINER

  1. Configure Clara for Workload Automation. From the installation directory, run:

cd /opt/hcl/clara
./clara.sh --load-project HWA

Note: This step will overwrite the existing Clara Knowledge Base and Smart Actions. If you previously modified the Knowledge Base and don't want to lose your changes, see: Upgrading Clara.

  1. If you are upgrading Clara from 1.0.0.2 or 1.0.0.3 to V1.0.0.4 or above, run:

cd /opt/hcl/clara
./clara.sh --migrate-data

 

   For unattended installations, add the following options to the above commands:
  --skip-check-prereq --skip-var-prompts