blob: aef2b4f7061859f95af648d71fa4593c774dba05 [file] [log] [blame]
Alex627a5ca2021-03-19 09:37:59 -05001#!/bin/bash
2cd /artifacts
3# Installing prerequisites
Alex3bc29ae2021-04-02 18:06:00 -05004#apt -y update
5#apt -y install python3-pip vim git iperf3 mtr htop iputils-ping traceroute tcpdump wget iproute2 curl
6#pip3 install rally-openstack python-neutronclient pyghmi
Alex627a5ca2021-03-19 09:37:59 -05007
8# Prepare Rally
9rally db create
10
11# Create openstack env
12rally env create --from-sysenv --name openstack
13rally env check
14
15# Prepare rally for kubernetes
Alex627a5ca2021-03-19 09:37:59 -050016git clone https://github.com/Mirantis/rally-plugins.git
17cd rally-plugins/
18pip3 install .
19rally plugin list | grep kubernetes
20
21# Configure kubernetes
Ievgeniia Zadorozhnac6582cb2021-05-13 17:14:31 +030022# Check and prepare kubespec file
23if [ ! -f /artifacts/kubespec_generated.yaml ]; then
Alex83075ac2022-02-16 13:39:50 -060024 sudo bash /artifacts/rally-files/gen_kubespec.sh /artifacts/mos-kubeconfig.yaml
Ievgeniia Zadorozhnac6582cb2021-05-13 17:14:31 +030025fi
26# Create kubernetes env
Alex627a5ca2021-03-19 09:37:59 -050027rally env create --name kubernetes --spec /artifacts/kubespec_generated.yaml
28rally env check
29cd /artifacts