add lat/bw limits, fio binaryes, fix bugs, fix latency calculations, etc
diff --git a/scripts/build_fio_ubuntu.sh b/scripts/build_fio_ubuntu.sh
new file mode 100644
index 0000000..87e6f66
--- /dev/null
+++ b/scripts/build_fio_ubuntu.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+sudo apt-get update
+sudo apt-get -y install g++ git zlib1g-dev libaio-dev librbd-dev make
+git clone https://github.com/axboe/fio.git
+cd fio
+./configure
+make
diff --git a/scripts/prepare.sh b/scripts/prepare.sh
index 475f47f..c9be2f5 100644
--- a/scripts/prepare.sh
+++ b/scripts/prepare.sh
@@ -91,8 +91,16 @@
if [ -z "$img_id" ] ; then
echo "Creating $IMAGE_NAME image"
+
+ # opts="--disk-format qcow2 --container-format bare --is-public true"
+ # glance image-create --name "$IMAGE_NAME" $opts --copy-from "$IMAGE_URL" >/dev/null
+
+ IMAGE_FILE="/tmp/${IMAGE_NAME}.qcow"
+ if [ ! -f "$IMAGE_FILE" ] ; then
+ curl "$IMAGE_URL" -o "$IMAGE_FILE"
+ fi
opts="--disk-format qcow2 --container-format bare --is-public true"
- glance image-create --name "$IMAGE_NAME" $opts --copy-from "$IMAGE_URL" >/dev/null
+ glance image-create --name "$IMAGE_NAME" $opts --file "$IMAGE_FILE" >/dev/null
echo "Image created, but may need a time to became active"
fi