fix results output
diff --git a/fix_rally.py b/fix_rally.py
index 1f02e8d..d11963e 100644
--- a/fix_rally.py
+++ b/fix_rally.py
@@ -252,11 +252,11 @@
if opts.io_opts is None:
testtool_py_argv = ['--type', opts.tool_type,
'-a', 'randwrite',
- '--iodepth', '2',
+ '--iodepth', '8',
'--blocksize', '4k',
'--iosize', '20M',
'--binary-path', dst_testtool_path,
- '-d']
+ '-s']
else:
testtool_py_argv = opts.io_opts.split(" ")
@@ -266,7 +266,7 @@
files_dir=opts.test_directory,
rally_extra_opts=opts.rally_extra_opts,
max_preparation_time=opts.max_preparation_time)
- res
+ print "Results =", res
return 0
# ubuntu cloud image
diff --git a/fix_rally_subnets.sh b/fix_rally_subnets.sh
new file mode 100644
index 0000000..b1073d4
--- /dev/null
+++ b/fix_rally_subnets.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+port_ids=$(neutron port-list | tail -n+4 | head -n-1 | awk '{print $2}')
+
+for port_id in $port_ids; do
+ neutron port-delete $port_id
+done
+
+subnet_list=$(neutron subnet-list | grep rally | awk '{print $2}')
+
+for subnet_id in $subnet_id; do
+ neutron subnet-delete $subnet_id
+done
+
+net_ids=$(neutron net-list | grep rally | awk '{print $2}')
+
+for net_id in $net_ids; do
+ neutron net-delete $net_id
+done