Motr  M0
motr_mini_prov.py File Reference

Go to the source code of this file.

Data Structures

class  MotrError
 

Namespaces

 motr_mini_prov
 

Functions

def execute_command_without_log (cmd, timeout_secs=TIMEOUT_SECS, verbose=False, retries=1, stdin=None, logging=False)
 
def execute_command_console (self, command)
 
def execute_command (self, cmd, timeout_secs=TIMEOUT_SECS, verbose=False, retries=1, stdin=None, logging=True)
 
def execute_command_verbose (self, cmd, timeout_secs=TIMEOUT_SECS, verbose=False, set_timeout=True, retry_count=CMD_RETRY_COUNT)
 
def execute_command_without_exception (self, cmd, timeout_secs=TIMEOUT_SECS, retries=1)
 
def check_type (var, vtype, msg)
 
def configure_machine_id (self, phase)
 
def get_server_node (self)
 
def calc_size (self, sz)
 
def set_setup_size (self, service)
 
def get_value (self, key, key_type)
 
def get_logical_node_class (self)
 
def get_storage (self)
 
def restart_services (self, services)
 
def validate_file (file)
 
def validate_files (files)
 
def create_dirs (self, dirs)
 
def is_hw_node (self)
 
def validate_motr_rpm (self)
 
def update_config_file (self, fname, kv_list)
 
def update_copy_motr_config_file (self)
 
def get_md_disks_lists (self, node_info)
 
def get_mdisks_from_list (self, md_lists)
 
def update_to_file (self, index, url, machine_id, md_disks)
 
def get_data_nodes (self)
 
def update_motr_hare_keys (self, nodes)
 
def motr_config_k8 (self)
 
def motr_config (self)
 
def configure_net (self)
 
def configure_lnet (self)
 
def configure_libfabric (self)
 
def verify_libfabric (self)
 
def swap_on (self)
 
def swap_off (self)
 
def add_swap_fstab (self, dev_name)
 
def del_swap_fstab_by_vg_name (self, vg_name)
 
def create_swap (self, swap_dev)
 
def create_lvm (self, index, metadata_dev)
 
def calc_lvm_min_size (self, lv_path, lvm_min_size)
 
def get_cvg_cnt_and_cvg (self)
 
def validate_storage_schema (storage)
 
def get_cvg_cnt_and_cvg_k8 (self)
 
def align_val (val, size)
 
def update_bseg_size (self)
 
def config_lvm (self)
 
def get_lnet_xface ()
 
def check_pkgs (self, pkgs)
 
def get_nids (self, nodes)
 
def get_nodes (self)
 
def lnet_ping (self)
 
def test_lnet (self)
 
def test_libfabric (self)
 
def get_metadata_disks_count (self)
 
def lvm_exist (self)
 
def cluster_up (self)
 
def pkg_installed (self, pkg)
 
def test_io (self)
 
def config_logger (self)
 
def remove_dirs (self, log_dir, patterns)
 
def remove_logs (self, patterns)
 
def check_services (self, services)
 
def verify_lnet (self)
 
def lnet_self_ping (self)
 
def update_motr_hare_keys_for_all_nodes (self)
 
def get_vol_grps (self)
 
def lvm_clean (self)
 
def remove_dm_entries (self)
 
def get_disk_size (self, device)
 
def read_config (file)
 
def part_clean (self)
 
def get_part_count (self, device)
 
def delete_parts (self, dev_count, device)
 
def delete_part (self, device, part_num)
 
def get_fid (self, fids, service, idx)
 
def fetch_fid (self, service, idx)
 
def getListOfm0dProcess ()
 
def receiveSigTerm (signalNumber, frame)
 
def start_service (self, service, idx)
 

Variables

string MOTR_SERVER_SCRIPT_PATH = "/usr/libexec/cortx-motr/motr-start"
 
string MOTR_MKFS_SCRIPT_PATH = "/usr/libexec/cortx-motr/motr-mkfs"
 
string MOTR_FSM_SCRIPT_PATH = "/usr/libexec/cortx-motr/motr-free-space-monitor"
 
string MOTR_CONFIG_SCRIPT = "/opt/seagate/cortx/motr/libexec/motr_cfg.sh"
 
string LNET_CONF_FILE = "/etc/modprobe.d/lnet.conf"
 
string LIBFAB_CONF_FILE = "/etc/libfab.conf"
 
string SYS_CLASS_NET_DIR = "/sys/class/net/"
 
string MOTR_SYS_CFG = "/etc/sysconfig/motr"
 
string MOTR_WORKLOAD_DIR = "/opt/seagate/cortx/motr/workload"
 
string FSTAB = "/etc/fstab"
 
string LOGFILE = "/var/log/seagate/motr/mini_provisioner"
 
string LOGDIR = "/var/log/seagate/motr"
 
string LOGGER = "mini_provisioner"
 
string IVT_DIR = "/var/log/seagate/motr/ivt"
 
string MOTR_LOG_DIR = "/var/motr"
 
int TIMEOUT_SECS = 120
 
int MACHINE_ID_LEN = 32
 
list MOTR_LOG_DIRS = [LOGDIR, MOTR_LOG_DIR]
 
int BE_LOG_SZ = 4*1024*1024*1024
 
int BE_SEG0_SZ = 128 * 1024 *1024
 
int ALLIGN_SIZE = 4096
 
string MACHINE_ID_FILE = "/etc/machine-id"
 
string TEMP_FID_FILE = "/opt/seagate/cortx/motr/conf/service_fid.yaml"
 
int CMD_RETRY_COUNT = 5
 
int MEM_THRESHOLD = 4*1024*1024*1024
 
string CVG_COUNT_KEY = "num_cvg"
 
 machine_id
 
 setup_size