koder aka kdanilov | 4643fd6 | 2015-02-10 16:20:13 -0800 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | set -x |
koder aka kdanilov | 4643fd6 | 2015-02-10 16:20:13 -0800 | [diff] [blame] | 3 | |
| 4 | type="iozone" |
| 5 | |
koder aka kdanilov | 7acd6bd | 2015-02-12 14:28:30 -0800 | [diff] [blame^] | 6 | # nova image-list | grep ' ubuntu ' >/dev/null |
| 7 | # if [ $? -ne 0 ] ; then |
| 8 | # url="https://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img" |
| 9 | # glance image-create --name 'ubuntu' --disk-format qcow2 --container-format bare --is-public true --copy-from $url |
| 10 | # fi |
| 11 | |
| 12 | # nova flavor-list | grep ' ceph.512 ' >/dev/null |
| 13 | # if [ $? -ne 0 ] ; then |
| 14 | # nova flavor-create ceph.512 ceph.512 512 50 1 |
| 15 | # fi |
| 16 | |
| 17 | # nova server-group-list | grep ' ceph ' >/dev/null |
| 18 | # if [ $? -ne 0 ] ; then |
| 19 | # nova server-group-create --policy anti-affinity ceph |
| 20 | # fi |
| 21 | |
| 22 | # nova keypair-list | grep ' ceph ' >/dev/null |
| 23 | # if [ $? -ne 0 ] ; then |
| 24 | # nova keypair-add ceph > ceph.pem |
| 25 | # fi |
| 26 | |
| 27 | set -e |
| 28 | |
koder aka kdanilov | 4643fd6 | 2015-02-10 16:20:13 -0800 | [diff] [blame] | 29 | io_opts="--type $type -a write --iodepth 16 --blocksize 1m --iosize x20" |
koder aka kdanilov | 7acd6bd | 2015-02-12 14:28:30 -0800 | [diff] [blame^] | 30 | python run_test.py --runner ssh -l -o "$io_opts" -t io-scenario $type --runner-extra-opts="ubuntu ceph.pem" |
| 31 | |
| 32 | # io_opts="--type $type -a write --iodepth 16 --blocksize 1m --iosize x20" |
| 33 | # python run_test.py --runner rally -l -o "$io_opts" -t io-scenario $type --runner-extra-opts="--deployment perf-1" |