Skip to content

Commit

Permalink
use snafu as a package
Browse files Browse the repository at this point in the history
  • Loading branch information
mohit-sheth authored and chaitanyaenr committed Jul 29, 2020
1 parent 238eba7 commit b800a7d
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ data:
export es={{ snafu_es_host }}
export es_port={{ snafu_es_port }}
export es_index={{ snafu_es_index_prefix }}
pbench-user-benchmark -- 'VIPERCONFIG=/root/workload/cluster-limits-deployments-per-namespace.yaml python3 /tmp/snafu/run_snafu.py -t cl scale-ci --cl-output True --dir /tmp/snafu_results -p openshift-tests'
pbench-user-benchmark -- 'VIPERCONFIG=/root/workload/cluster-limits-deployments-per-namespace.yaml run_snafu -t cl scale-ci --cl-output True --dir /tmp/snafu_results -p openshift-tests'
pbench-copy-results --prefix {{deployments_per_ns_test_prefix}}
echo "$(date -u) Completed running Deployments per ns cluster limits test"
# End of Test Code
Expand Down
2 changes: 1 addition & 1 deletion workloads/templates/workload-fio-script-cm.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ data:
export es={{ snafu_es_host }}
export es_port={{ snafu_es_port }}
export es_index={{ snafu_es_index_prefix }}
pbench-user-benchmark --config="{{ fiotest_prefix }}-pods-{{ fiotest_maxpods }}-sc-{{ fiotest_storageclass }}-create_pods-{{ fiotest_description }}" -- 'VIPERCONFIG=/root/workload/fiotest.yml python3 /tmp/snafu/run_snafu.py -t cl scale-ci --cl-output True --dir /tmp/snafu_results -p openshift-tests'
pbench-user-benchmark --config="{{ fiotest_prefix }}-pods-{{ fiotest_maxpods }}-sc-{{ fiotest_storageclass }}-create_pods-{{ fiotest_description }}" -- 'VIPERCONFIG=/root/workload/fiotest.yml run_snafu -t cl scale-ci --cl-output True --dir /tmp/snafu_results -p openshift-tests'
echo "$(date -u) Pods for FIO I/O test created."

# wait until all pods are started and then collect data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ data:
export es={{ snafu_es_host }}
export es_port={{ snafu_es_port }}
export es_index={{ snafu_es_index_prefix }}
VIPERCONFIG=/tmp/mastervertical.yaml python3 /tmp/snafu/run_snafu.py -t cl scale-ci --cl-output True --dir "${result_dir}" -p openshift-tests | tee "${result_dir}/clusterloader.txt"
VIPERCONFIG=/tmp/mastervertical.yaml run_snafu -t cl scale-ci --cl-output True --dir "${result_dir}" -p openshift-tests | tee "${result_dir}/clusterloader.txt"
exit_code=$?
end_time=$(date +%s)
duration=$((end_time-start_time))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ data:
export es={{ snafu_es_host }}
export es_port={{ snafu_es_port }}
export es_index={{ snafu_es_index_prefix }}
VIPERCONFIG=/tmp/namespaces_per_cluster.yaml python3 /tmp/snafu/run_snafu.py -t cl scale-ci --cl-output True --dir "${result_dir}" -p openshift-tests | tee "${result_dir}/clusterloader.txt"
VIPERCONFIG=/tmp/namespaces_per_cluster.yaml run_snafu -t cl scale-ci --cl-output True --dir "${result_dir}" -p openshift-tests | tee "${result_dir}/clusterloader.txt"
exit_code=$?
end_time=$(date +%s)
duration=$((end_time-start_time))
Expand Down
2 changes: 1 addition & 1 deletion workloads/templates/workload-network-script-cm.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ data:
export es={{ snafu_es_host }}
export es_port={{ snafu_es_port }}
export es_index={{ snafu_es_index_prefix }}
VIPERCONFIG=/tmp/network.yaml python3 /tmp/snafu/run_snafu.py -t cl scale-ci --cl-output True --dir "${result_dir}" -p openshift-tests
VIPERCONFIG=/tmp/network.yaml python3 run_snafu -t cl scale-ci --cl-output True --dir "${result_dir}" -p openshift-tests

# Check if clients and servers are ready
for rc_num in `seq 0 $((${pair_count} - 1))`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ data:
export es={{ snafu_es_host }}
export es_port={{ snafu_es_port }}
export es_index={{ snafu_es_index_prefix }}
VIPERCONFIG=/tmp/nodevertical-heavy.yaml python3 /tmp/snafu/run_snafu.py -t cl scale-ci --cl-output True --dir "${result_dir}" -p openshift-tests | tee "${result_dir}/clusterloader.txt"
VIPERCONFIG=/tmp/nodevertical-heavy.yaml run_snafu -t cl scale-ci --cl-output True --dir "${result_dir}" -p openshift-tests | tee "${result_dir}/clusterloader.txt"
exit_code=$?
end_time=$(date +%s)
duration=$((end_time-start_time))
Expand Down
2 changes: 1 addition & 1 deletion workloads/templates/workload-nodevertical-script-cm.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ data:
export es={{ snafu_es_host }}
export es_port={{ snafu_es_port }}
export es_index={{ snafu_es_index_prefix }}
VIPERCONFIG=/tmp/nodevertical.yaml python3 /tmp/snafu/run_snafu.py -t cl scale-ci --cl-output True --dir "${result_dir}" -p openshift-tests | tee "${result_dir}/clusterloader.txt"
VIPERCONFIG=/tmp/nodevertical.yaml run_snafu -t cl scale-ci --cl-output True --dir "${result_dir}" -p openshift-tests | tee "${result_dir}/clusterloader.txt"
exit_code=$?
end_time=$(date +%s)
duration=$((end_time-start_time))
Expand Down
2 changes: 1 addition & 1 deletion workloads/templates/workload-podvertical-script-cm.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ data:
export es={{ snafu_es_host }}
export es_port={{ snafu_es_port }}
export es_index={{ snafu_es_index_prefix }}
VIPERCONFIG=/tmp/podvertical.yaml python3 /tmp/snafu/run_snafu.py -t cl scale-ci --cl-output True --dir "${result_dir}" -p openshift-tests | tee "${result_dir}/clusterloader.txt"
VIPERCONFIG=/tmp/podvertical.yaml run_snafu -t cl scale-ci --cl-output True --dir "${result_dir}" -p openshift-tests | tee "${result_dir}/clusterloader.txt"
exit_code=$?
end_time=$(date +%s)
duration=$((end_time-start_time))
Expand Down
2 changes: 1 addition & 1 deletion workloads/templates/workload-pvcscale-script-cm.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ data:
export es={{ snafu_es_host }}
export es_port={{ snafu_es_port }}
export es_index={{ snafu_es_index_prefix }}
pbench-user-benchmark --config="{{ pvcscale_test_prefix }}-pods-{{ pvcscale_maxpods }}-sc-{{ pvcscale_storageclass }}-create_pods" -- 'VIPERCONFIG=/root/workload/pvcscale.yml python3 /tmp/snafu/run_snafu.py -t cl scale-ci --cl-output True --dir /tmp/snafu_results -p openshift-tests'
pbench-user-benchmark --config="{{ pvcscale_test_prefix }}-pods-{{ pvcscale_maxpods }}-sc-{{ pvcscale_storageclass }}-create_pods" -- 'VIPERCONFIG=/root/workload/pvcscale.yml run_snafu -t cl scale-ci --cl-output True --dir /tmp/snafu_results -p openshift-tests'

echo "$(date -u) Pods/PVC are crated ..."
# End Test Configuration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ data:
export es={{ snafu_es_host }}
export es_port={{ snafu_es_port }}
export es_index={{ snafu_es_index_prefix }}
VIPERCONFIG=/tmp/services_per_namespace.yaml python3 /tmp/snafu/run_snafu.py -t cl scale-ci --cl-output True --dir "${result_dir}" -p openshift-tests | tee "${result_dir}/clusterloader.txt"
VIPERCONFIG=/tmp/services_per_namespace.yaml run_snafu -t cl scale-ci --cl-output True --dir "${result_dir}" -p openshift-tests | tee "${result_dir}/clusterloader.txt"
exit_code=$?
end_time=$(date +%s)
duration=$((end_time-start_time))
Expand Down

0 comments on commit b800a7d

Please sign in to comment.