Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Cortx monitor 3 Node VM provisioning manual

shriya-deshmukh edited this page Jul 15, 2021 · 15 revisions

Pre-Requisites:

Run below steps in all 3 nodes

  1. Setup yum repo (Required only for installing build specific RPMS)

    $yum-config-manager --add-repo http://cortx-storage.colo.seagate.com/releases/cortx/github/integration-custom-ci/centos-7.8.2003/custom-build-399/cortx_iso/

  2. Ensure below 3rd party packages are installed.

    1. RPMs

      Package Version
      hdparm 9.43
      ipmitool 1.8.18
      lshw B.02.18
      python3 3.6.8
      python36-dbus 1.2.4
      python36-gobject 3.22.0
      python36-paramiko 2.1.1
      python36-psutil 5.6.7
      shadow-utils 4.6
      smartmontools 7.0
      systemd-python36 1.0.0
      udisks2 2.8.4
    2. Python

      Package Version
      cryptography 2.8
      jsonschema 3.2.0
      pika 1.1.0
      pyinotify 0.9.6
      python-daemon 2.2.4
      requests 2.25.1
      zope.component 4.6.2
      zope.event 4.5.0
      zope.interface 5.2.0
  3. Run cortx-py-utils pre-requisites

  4. Install cortx-py-utils

  5. Install SSPL RPMs

Mini Provisioning Steps

Find description, example and usage of config used across mini provisioner stages here

Provisioning

  1. Post Install

    1. Run Utils post_install on all 3 nodes

    2. Edit this template and store the file with filled in value at /tmp/sspl.post-install.tmpl.3-node on all 3 nodes

    3. Run SSPL post_install on all 3 nodes

      /opt/seagate/cortx/sspl/bin/sspl_setup post_install --config yaml:///tmp/sspl.post-install.tmpl.3-node

  2. Prepare

    1. Edit this template and store the file with filled in value at /tmp/sspl.prepare.tmpl.3-node on all 3 nodes

    2. Run SSPL prepare on all 3 nodes

      /opt/seagate/cortx/sspl/bin/sspl_setup prepare --config yaml:///tmp/sspl.prepare.tmpl.3-node

  3. Config

    1. Run Utils config

    2. Edit this template and store the file with filled in value at /tmp/sspl.config.tmpl.3-node on all 3 nodes

    3. Run SSPL config on all 3 nodes

      /opt/seagate/cortx/sspl/bin/sspl_setup config --config yaml:///tmp/sspl.config.tmpl.3-node

  4. Init

    1. Edit this template and store the file with filled in value at /tmp/sspl.init.tmpl.3-node on all 3 nodes

    2. Run SSPL init on all 3 nodes

      /opt/seagate/cortx/sspl/bin/sspl_setup init --config yaml:///tmp/sspl.init.tmpl.3-node

Validation and Test

Start

Run below stpes in all 3 nodes

  1. Start SSPL service

    systemctl start sspl-ll

  2. Check service status

    systemctl status sspl-ll

Note: Starting service using systemctl is recommended only when HA framework is not in place, otherwise service is supposed to be started in Cortx cluster automatically by HA

Test

Run below step in all 3 node to execute tests

Note: Test check features on single node alone(on one which its executed)

  1. Ensure cortx-sspl-test RPM is installed on all the 3 nodes.

  2. Start SSPL tests with plan

    /opt/seagate/cortx/sspl/bin/sspl_setup test --config <config_url> --plan [dev_sanity|alerts|sanity]

    Ex. To run tests on VM, plan should be dev_sanity OR alerts

    /opt/seagate/cortx/sspl/bin/sspl_setup test --config <config_url> --plan dev_sanity

    /opt/seagate/cortx/sspl/bin/sspl_setup test --config <config_url> --plan alerts