summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--benchmarks/playbooks/fio.yaml18
-rw-r--r--benchmarks/playbooks/iperf.yaml44
-rw-r--r--benchmarks/playbooks/netperf.yaml4
-rw-r--r--benchmarks/playbooks/result_transform/iperf/iperf_transform.py30
-rw-r--r--data/hosts7
-rw-r--r--data/my_key.pem50
-rw-r--r--test_cases/dell_santa_clara/network/iperf_topology_1.yaml12
-rw-r--r--test_cases/dell_santa_clara/network/iperf_topology_2.yaml8
-rw-r--r--test_cases/dell_santa_clara/network/netperf.yaml4
-rw-r--r--test_cases/dell_santa_clara/storage/fio_parallel.yaml4
-rw-r--r--test_list/network.txt1
-rw-r--r--test_list/storage.txt1
12 files changed, 122 insertions, 61 deletions
diff --git a/benchmarks/playbooks/fio.yaml b/benchmarks/playbooks/fio.yaml
index 40fd805b..9f832ce1 100644
--- a/benchmarks/playbooks/fio.yaml
+++ b/benchmarks/playbooks/fio.yaml
@@ -2,9 +2,9 @@
connection: local
tasks:
- name: making fio directory
- file: path={{Dest_dir}}/fio state=directory
+ file: path=../../{{Dest_dir}}/fio state=directory
- name: making temporary fio directory
- file: path={{Dest_dir}}/fio/fio_temp state=directory
+ file: path=../../{{Dest_dir}}/fio/fio_temp state=directory
- hosts: "{{role}}"
@@ -54,29 +54,29 @@
shell: (cd $HOME/qtip_result/; find . -maxdepth 1 -name "*.json") | cut -d'/' -f2
register: files_to_copy
- name: copy results
- fetch: src={{home_dir.stdout}}/qtip_result/{{item}} dest={{Dest_dir}}/fio/fio_temp
+ fetch: src={{home_dir.stdout}}/qtip_result/{{item}} dest=../../{{Dest_dir}}/fio/fio_temp
with_items: files_to_copy.stdout_lines
- name: registering log files
shell: (cd $HOME/qtip_result/; find . -maxdepth 1 -name "*.log") | cut -d'/' -f2
register: copy_log_results
- name: copying log results
- fetch: src={{home_dir.stdout}}/qtip_result/{{item}} dest={{Dest_dir}}/fio/fio_temp
+ fetch: src={{home_dir.stdout}}/qtip_result/{{item}} dest=../../{{Dest_dir}}/fio/fio_temp
with_items: copy_log_results.stdout_lines
- name: copy results
- fetch: src=/root/results/{{item}} dest={{Dest_dir}}/fio
+ fetch: src=/root/results/{{item}} dest=../../{{Dest_dir}}/fio
with_items: files_to_copy.stdout_lines
- hosts: 127.0.0.1
connection: local
tasks:
- name: extracting_json
- shell: ( find {{Dest_dir}}/fio/fio_temp/ -name "*.json" | xargs cp -t {{Dest_dir}}/fio/)
+ shell: ( find ../../{{Dest_dir}}/fio/fio_temp/ -name "*.json" | xargs cp -t ../../{{Dest_dir}}/fio/)
- name: making_logs_folder
- shell: mkdir -p {{Dest_dir}}/fio/logs
+ shell: mkdir -p ../../{{Dest_dir}}/fio/logs
- name: extracting_log
- shell: ( find {{Dest_dir}}/fio/fio_temp/ -name "*.log" | xargs cp -t {{Dest_dir}}/fio/logs)
+ shell: ( find ../../{{Dest_dir}}/fio/fio_temp/ -name "*.log" | xargs cp -t ../../{{Dest_dir}}/fio/logs)
- name: removing fio_log
- shell: rm -rf {{Dest_dir}}/fio/fio_temp
+ shell: rm -rf ../../{{Dest_dir}}/fio/fio_temp
diff --git a/benchmarks/playbooks/iperf.yaml b/benchmarks/playbooks/iperf.yaml
index dd5c2b0f..11d427f3 100644
--- a/benchmarks/playbooks/iperf.yaml
+++ b/benchmarks/playbooks/iperf.yaml
@@ -59,24 +59,40 @@
poll: 0
when: rolename == "1-server"
- name: Running Iperf on Host
- shell: iperf3 -Z --{{protocol}} --time {{duration}} -b {{bandwidthGbps}}G -c {{item}} -J >> ./qtip_result/server{{hostID.stdout}}-{{item}}.json
- ignore_errors: yes
- with_items:
- - "{{ip1}}"
- - "{{ip2}}"
- when: rolename == "2-host" and "{{ip2}}" != ''
- - name: Running Iperf on Host
- shell: iperf3 -Z --{{protocol}} --time {{duration}} -b {{bandwidthGbps}}G -c {{item}} -J >> ./qtip_result/server{{hostID.stdout}}-{{item}}.json
+ shell: iperf3 --time {{duration}} -b {{bandwidthGbps}}G -c {{privateip1}} -J -O10>> ./qtip_result/iperf_raw.json
ignore_errors: yes
with_items:
- "{{ip1}}"
when: rolename == "2-host" and "{{ip2}}" == ''
+ - name: Fetching result transformation script
+ copy: src=./result_transform/iperf/iperf_transform.py dest={{home_dir.stdout}}/qtip_result
+ - name: Transforming result
+ shell: cd $HOME/qtip_result && python iperf_transform.py
+ when: rolename =="2-host" and "{{ip2}}" == ''
+ - name: copy report formation script
+ copy: src=./result_transform/final_report.py dest={{home_dir.stdout}}/qtip_result
+ when: rolename =="2-host" and "{{ip2}}" == ''
+ - name: consolidating report
+ shell: cd $HOME/qtip_result && python final_report.py IPERF
+ when: rolename =="2-host" and "{{ip2}}" == ''
- name: Files to Copy
shell: (cd $HOME/qtip_result/; find . -maxdepth 1 -name "*.json") | cut -d'/' -f2
register: files_to_copy
+ when: rolename =="2-host" and "{{ip2}}" == ''
- name: copy results
fetch: src={{home_dir.stdout}}/qtip_result/{{item}} dest=../../{{Dest_dir}}/iperf/iperf_temp
with_items: files_to_copy.stdout_lines
+ when: rolename =="2-host" and "{{ip2}}" == ''
+ - name: registering log files
+ shell: (cd $HOME/qtip_result/; find . -maxdepth 1 -name "*.log") | cut -d'/' -f2
+ register: copy_log_results
+ when: rolename =="2-host" and "{{ip2}}" == ''
+ - name: copying log results
+ fetch: src={{home_dir.stdout}}/qtip_result/{{item}} dest=../../{{Dest_dir}}/iperf/iperf_temp
+ with_items: copy_log_results.stdout_lines
+ when: rolename =="2-host" and "{{ip2}}" == ''
+
+
- hosts: 127.0.0.1
connection: local
tasks:
@@ -86,4 +102,14 @@
when: role is defined
- name: extracting_json
shell: ( find ../../{{Dest_dir}}/iperf/iperf_temp/ -name "*.json" | xargs cp -t ../../{{Dest_dir}}/iperf/)
- when: rolename == "2-host" \ No newline at end of file
+ when: rolename == "2-host"
+ - name: making_logs_folder
+ shell: mkdir -p ../../{{Dest_dir}}/iperf/logs
+ - name: extracting_log
+ shell: ( find ../../{{Dest_dir}}/iperf/iperf_temp/ -name "*.log" | xargs cp -t ../../{{Dest_dir}}/iperf/logs)
+ when: rolename == "2-host"
+ - name: removing iperf_raw file
+ shell: rm -rf ../../{{Dest_dir}}/iperf/iperf_raw.json
+ when: rolename == "2-host"
+ - name: removing iperf_temp
+ shell: rm -rf ../../{{Dest_dir}}/iperf/iperf_temp \ No newline at end of file
diff --git a/benchmarks/playbooks/netperf.yaml b/benchmarks/playbooks/netperf.yaml
index fb6fd18a..3292f060 100644
--- a/benchmarks/playbooks/netperf.yaml
+++ b/benchmarks/playbooks/netperf.yaml
@@ -71,4 +71,6 @@
when: role is defined
- name: extracting_json
shell: ( find ../../{{Dest_dir}}/netperf/netperf_temp/ -name "*.json" | xargs cp -t ../../{{Dest_dir}}/netperf/)
- when: rolename == "2-host" \ No newline at end of file
+ when: rolename == "2-host"
+ - name: removing netperf_temp
+ shell: rm -rf ../../{{Dest_dir}}/netperf/netperf_temp \ No newline at end of file
diff --git a/benchmarks/playbooks/result_transform/iperf/iperf_transform.py b/benchmarks/playbooks/result_transform/iperf/iperf_transform.py
new file mode 100644
index 00000000..39c5956c
--- /dev/null
+++ b/benchmarks/playbooks/result_transform/iperf/iperf_transform.py
@@ -0,0 +1,30 @@
+import json
+import datetime
+import pickle
+with open('iperf_raw.json','r') as ifile:
+ raw_iperf_data=json.loads(ifile.read().rstrip())
+
+
+bits_sent= raw_iperf_data['end']['sum_sent']['bits_per_second']
+bits_received= raw_iperf_data['end']['sum_received']['bits_per_second']
+total_byte_sent=raw_iperf_data['end']['sum_sent']['bytes']
+total_byte_received=raw_iperf_data['end']['sum_received']['bytes']
+cpu_host_total_percent=raw_iperf_data['end']['cpu_utilization_percent']['host_total']
+cpu_remote_total_percent=raw_iperf_data['end']['cpu_utilization_percent']['remote_total']
+
+result={}
+time_stamp = str(datetime.datetime.utcnow().isoformat())
+
+result['1. Version']=raw_iperf_data['start']['version']
+result['2. Bandwidth']={}
+result['2. Bandwidth']['1. throughput Sender (b/s)'] = bits_sent
+result['2. Bandwidth']['2. throughput Received (b/s)'] = bits_received
+result['3. CPU']={}
+result['3. CPU']['1. CPU host total (%)']=cpu_host_total_percent
+result['3. CPU']['2. CPU remote total (%)']=cpu_remote_total_percent
+
+with open('iperf_raw-'+time_stamp+'.log','w+') as ofile:
+ ofile.write(json.dumps(raw_iperf_data))
+
+with open('./result_temp', 'w+') as result_file:
+ pickle.dump(result,result_file) \ No newline at end of file
diff --git a/data/hosts b/data/hosts
index 5d73834b..ac441ab8 100644
--- a/data/hosts
+++ b/data/hosts
@@ -1,3 +1,4 @@
-[1Run]
-172.18.0.100
-172.18.0.99
+[2-host]
+172.18.0.112
+[1-server]
+172.18.0.113
diff --git a/data/my_key.pem b/data/my_key.pem
index 50a6b861..701beaf5 100644
--- a/data/my_key.pem
+++ b/data/my_key.pem
@@ -1,27 +1,27 @@
-----BEGIN RSA PRIVATE KEY-----
-MIIEpAIBAAKCAQEAv5Y+wZP4KOzZf3hahb3UVUYf235R21M9lo6xnoie1ph71Pa+
-uHeCAnUhQs/RzCoi6y8U2JrPqmF3/HaP0CSPTyAZTdiKqHspQdLDndTdSMcVOMw0
-1C4QdQPTsejwsLW4ktxw/xjroZEhVyij5tJdCGjFLtPXXmYdPy4zSMqAOMuPvelE
-IlkEqcRkqQ0X0UBjQTDJvHKw1wYH9sFQLwMpuUI4JU1uHiC19LjJxV0Ih67yIXyw
-TSzw35rWPAbumgfJ5wG6k4jw1s8zYet10pXYMIxsAevieb8skSz97ytQKIVUjj/j
-6NfyoMxTuEKT8uvxwlx5QHU2N3A6qHVigWjmVQIDAQABAoIBAQC3KW2/5bYHckCR
-hD+Owyg/ijYkwwSBGXi0+qDG/rhUUx14QZmeg+qQbOiqlkJt3Q7bJ3zXhFHrAxoS
-DEt7Y6h6riZi7RXK80xDOLt5pisUS/h2/4u2Gn/zTwBRg3CwkFrwVL3WtD15jmWA
-jUL9BrqYsolpNnAdOKTXZVT0T1z8bb0FpRRCkKrYAUWF6ansvv7gryTLXjEvdBCp
-THz9QCMdGSm6bOM1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ik5k
++TASzGH2CGf+kE0W2d/kFN/422n71G4xYIS9TovibEYMYhsA1HBP1erZoQO1fVb3
+B7V+1jveTkKxaeWtNiN2TUxW1dGURllSczPm8wOm8JsHIjP7/oItac9zHNsE5ClT
++d/PYG8U3PGU0qLeSP1OFckCgYB/gRWNiqb/XtXJzN8m5YlTqXnvPMpOI4+PA72B
+vjiKVpeU8J9+HgGaX902KoEP8ACh2lJPEsCck+FSPqbPp+jyrHmwR46tJq318MvP
+noANm/39O8uesMLa0Zy0qit2k86YVH3FrMVrED25IklBbZUNjuFGcba9txRqeK/h
+9oVJTwKBgEWKRVYpBK7SzR+7RQZYcO681FXHC4l3e4GBZaNXxEnpyy+qwYpHML/3
+5jgTZ8OusMosfdWWP87ce9D97iXADJ5gaMZr3c7w1VbJqxSu7dX96lNmvzjdGW1M
+WFCHXmPXElZtmcPXCMoA9G5rUSBnwEgNe5ILdejz/l9TNp1OD0+F
-----END RSA PRIVATE KEY-----
diff --git a/test_cases/dell_santa_clara/network/iperf_topology_1.yaml b/test_cases/dell_santa_clara/network/iperf_topology_1.yaml
index 20a433a9..18eba8ac 100644
--- a/test_cases/dell_santa_clara/network/iperf_topology_1.yaml
+++ b/test_cases/dell_santa_clara/network/iperf_topology_1.yaml
@@ -4,8 +4,8 @@ Scenario:
server : virtualmachine_1
client: virtualmachine_2
benchmark_details:
- duration: 10
- protocol: udp
+ duration: 20
+ protocol: tcp
bandwidthGbps: 10
Context:
@@ -14,16 +14,16 @@ Context:
Virtual_Machines:
virtualmachine_1:
- availability_zone: compute2
+ availability_zone: compute1
OS_image: QTIP_CentOS
- public_network: 'provider_network'
+ public_network: 'net04_ext'
role: 1-server
flavor: m1.large
virtualmachine_2:
- availability_zone: compute2
+ availability_zone: compute1
OS_image: QTIP_CentOS
- public_network: 'provider_network'
+ public_network: 'net04_ext'
role: 2-host
flavor: m1.large
diff --git a/test_cases/dell_santa_clara/network/iperf_topology_2.yaml b/test_cases/dell_santa_clara/network/iperf_topology_2.yaml
index 4392f32b..301a9916 100644
--- a/test_cases/dell_santa_clara/network/iperf_topology_2.yaml
+++ b/test_cases/dell_santa_clara/network/iperf_topology_2.yaml
@@ -5,8 +5,8 @@ Scenario:
client: virtualmachine_2
benchmark_details:
duration: 20
- protocol: udp
- bandwidthGbps: 1
+ protocol: tcp
+ bandwidthGbps: 10
Context:
Host_Machines:
@@ -16,14 +16,14 @@ Context:
virtualmachine_1:
availability_zone: compute1
OS_image: QTIP_CentOS
- public_network: 'provider_network'
+ public_network: 'net04_ext'
role: 1-server
flavor: m1.large
virtualmachine_2:
availability_zone: compute2
OS_image: QTIP_CentOS
- public_network: 'provider_network'
+ public_network: 'net04_ext'
role: 2-host
flavor: m1.large
diff --git a/test_cases/dell_santa_clara/network/netperf.yaml b/test_cases/dell_santa_clara/network/netperf.yaml
index 60ee4a13..267b288d 100644
--- a/test_cases/dell_santa_clara/network/netperf.yaml
+++ b/test_cases/dell_santa_clara/network/netperf.yaml
@@ -15,14 +15,14 @@ Context:
virtualmachine_1:
availability_zone: compute2
OS_image: QTIP_CentOS
- public_network: 'provider_network'
+ public_network: 'net04_ext'
role: 1-server
flavor: m1.large
virtualmachine_2:
availability_zone: compute2
OS_image: QTIP_CentOS
- public_network: 'provider_network'
+ public_network: 'net04_ext'
role: 2-host
flavor: m1.large
diff --git a/test_cases/dell_santa_clara/storage/fio_parallel.yaml b/test_cases/dell_santa_clara/storage/fio_parallel.yaml
index e058af24..9f11af05 100644
--- a/test_cases/dell_santa_clara/storage/fio_parallel.yaml
+++ b/test_cases/dell_santa_clara/storage/fio_parallel.yaml
@@ -6,11 +6,11 @@ Scenario:
Context:
Host_Machines:
machine_1:
- ip: 10.20.0.4
+ ip: 10.20.0.6
pw: r00tme
role: host
machine_2:
- ip: 10.20.0.5
+ ip: 10.20.0.7
pw: r00tme
role: host
diff --git a/test_list/network.txt b/test_list/network.txt
index e69de29b..3ed6f82f 100644
--- a/test_list/network.txt
+++ b/test_list/network.txt
@@ -0,0 +1 @@
+iperf_topology_1.yaml
diff --git a/test_list/storage.txt b/test_list/storage.txt
index e69de29b..7884a434 100644
--- a/test_list/storage.txt
+++ b/test_list/storage.txt
@@ -0,0 +1 @@
+fio_parallel.yaml