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

Cortx monitor single node VM provisioning manual

Sandeep Anjara edited this page Apr 5, 2021 · 18 revisions

Pre-Requisites:

  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. Install 3rd party packages

    curl -s http://cortx-storage.colo.seagate.com/releases/cortx/third-party-deps/rpm/install-cortx-prereq.sh | bash

    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. Edit this template and store the file with filled in value at /tmp/utils.post_install.tmpl.1-node

    2. Run Utils post_install

      opt/seagate/cortx/utils/bin/utils_setup post_install --config yaml:///tmp/utils.post_install.tmpl.1-node

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

    4. Run SSPL post_install

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

  2. Prepare

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

    2. Run SSPL prepare

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

  3. Config

    1. Edit this template and store the file with filled in value at /tmp/utils.config.tmpl.1-node

      Description of keys used in tmpl file

    2. Run Utils config

      /opt/seagate/cortx/utils/bin/utils_setup config --config yaml:///tmp/utils.config.tmpl.1-node

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

    4. Run SSPL config

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

  4. Init

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

    2. Run SSPL init

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

Validation and Test

Start

  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

  1. Start SSPL tests with plan

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

    Ex.

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