Rate This Document
Findability
Accuracy
Completeness
Readability

Installing HAF on a Host Node

  1. Install the software package on host nodes and execute the service flow from host nodes.

  2. Modify the installation configuration file.

    The certificate verification period is used as an example. The default period is 7 days. To change the period to 6 days, run the following commands:

    cd /home/omm/haf-software

    sed -i 's/\"cert_check_period_time\": 7/\"cert_check_period_time\": 6/g' install-config/haf_host_install.conf

    • Skip this step if the default configuration file haf_host_install.conf in Configuration Items for HAF Deployment meets your service requirements.
    • When installing the HAF software on a host node, you can modify the haf_host_install.conf file to modify the installation configuration of nodes in a batch. For details about the options that can be modified, see Configuration Items for HAF Deployment.
    • You are advised to use the configuration file to modify the options that cannot be modified by haf-tool.
    • To modify other options, you can run related commands as required. The preceding example is for reference only.
    1. Select all host nodes and click Configure Service.

    2. Select Custom and click Next.

    3. Select Command Execution and click Add a Task.

    4. Set task 1 parameters and click Save.
      Table 1 Parameter description

      Parameter

      Description

      Task Name

      Changing the certificate verification period

      Task Description

      Changing the certificate verification period

      Run Directory

      /home/omm/haf-software

      Run Command

      sed -i 's/\"cert_check_period_time\": 7/\"cert_check_period_time\": 6/g' install-config/haf_host_install.conf

      Whether to Check Return Code

      Yes

      Expected Return Code

      0

    5. Save the settings and click to execute the service flow.

  3. Install HAF on the host nodes.
    1. Select all host nodes and click Configure Service.

    2. Select Custom and click Next.

    3. Select Command Execution and click Add a Task.

    4. Set task 1 parameters and click Save.
      Table 2 Parameter description

      Parameter

      Description

      Task Name

      Installing the HAF package on host nodes

      Task Description

      Installing the HAF package on host nodes and generating the key for initialization

      Run Directory

      /home/omm/haf-software

      Run Command

      ./haf_installer -m host -p /home/omm/haf-software/haf-host-1.4.0.tar.gz -t /home/omm/haf-install -s communication_port

      NOTE:

      The script parameters are described as follows:

      • -m host: installing HAF on the host node. This parameter is mandatory.
      • -p /home/omm/haf-software/haf-host-1.4.0.tar.gz: path to the HAF installation package for the host node. This parameter is mandatory.
      • -t /home/omm/haf-install: HAF installation directory on the host node. This parameter is mandatory.
      • -s communication_port: service listening port. The default value is 17531. This parameter is optional and can be configured using haf-tool. The value must be the same as that of the offload node.

      Whether to Check Return Code

      Yes

      Expected Return Code

      0

    1. Execute the service flow. Click Finish in the lower right corner and then click Run Service to execute the service flow.