blob: 2265176984276da9b683411c65e7b1e2f23d9202 [file] [log] [blame]
koder aka kdanilov4643fd62015-02-10 16:20:13 -08001#!/bin/bash
2set -x
koder aka kdanilov4643fd62015-02-10 16:20:13 -08003
4type="iozone"
5
koder aka kdanilov7acd6bd2015-02-12 14:28:30 -08006# 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
27set -e
28
koder aka kdanilov4643fd62015-02-10 16:20:13 -080029io_opts="--type $type -a write --iodepth 16 --blocksize 1m --iosize x20"
koder aka kdanilov7acd6bd2015-02-12 14:28:30 -080030python 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"