summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/cinder-volume/files
diff options
context:
space:
mode:
authorJustin chi <chigang@huawei.com>2015-12-23 09:39:12 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2015-12-23 09:39:12 +0000
commit6447ed5fe06bba5b973ba673780235d33c909302 (patch)
tree70c7df960962e6ffd8043f938779c1b98641b904 /deploy/adapters/ansible/roles/cinder-volume/files
parent89a5321aa8d7981cc5422e72ba5827b710bac9ee (diff)
parentff1acb9305e5e13239a6ba7a30e99f8aa673514e (diff)
Merge "cinder volume use the vg created by storage role"
Diffstat (limited to 'deploy/adapters/ansible/roles/cinder-volume/files')
-rw-r--r--deploy/adapters/ansible/roles/cinder-volume/files/create_img.sh3
-rw-r--r--deploy/adapters/ansible/roles/cinder-volume/files/get_var_size.sh6
-rw-r--r--deploy/adapters/ansible/roles/cinder-volume/files/loop.yml1
-rw-r--r--deploy/adapters/ansible/roles/cinder-volume/files/losetup.sh7
4 files changed, 0 insertions, 17 deletions
diff --git a/deploy/adapters/ansible/roles/cinder-volume/files/create_img.sh b/deploy/adapters/ansible/roles/cinder-volume/files/create_img.sh
deleted file mode 100644
index 5d64143e..00000000
--- a/deploy/adapters/ansible/roles/cinder-volume/files/create_img.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-if [ ! -f /var/cinder.img ]; then
- dd if=/dev/zero of=/var/cinder.img bs=1 count=0 seek=$1
-fi
diff --git a/deploy/adapters/ansible/roles/cinder-volume/files/get_var_size.sh b/deploy/adapters/ansible/roles/cinder-volume/files/get_var_size.sh
deleted file mode 100644
index 6f690375..00000000
--- a/deploy/adapters/ansible/roles/cinder-volume/files/get_var_size.sh
+++ /dev/null
@@ -1,6 +0,0 @@
-size=`df /var | awk '$3 ~ /[0-9]+/ { print $4 }'`;
-if [ $size -gt 2000000000 ]; then
- echo -n 2000000000000;
-else
- echo -n $((size * 1000 / 512 * 512));
-fi
diff --git a/deploy/adapters/ansible/roles/cinder-volume/files/loop.yml b/deploy/adapters/ansible/roles/cinder-volume/files/loop.yml
deleted file mode 100644
index e872652a..00000000
--- a/deploy/adapters/ansible/roles/cinder-volume/files/loop.yml
+++ /dev/null
@@ -1 +0,0 @@
-physical_device: /dev/loop0
diff --git a/deploy/adapters/ansible/roles/cinder-volume/files/losetup.sh b/deploy/adapters/ansible/roles/cinder-volume/files/losetup.sh
deleted file mode 100644
index 1f0b2b0e..00000000
--- a/deploy/adapters/ansible/roles/cinder-volume/files/losetup.sh
+++ /dev/null
@@ -1,7 +0,0 @@
-loop_dev=`losetup -a |grep "/var/cinder.img"|awk -F':' '{print $1}'`
-if [ -z $loop_dev ]; then
- losetup -f --show /var/cinder.img
-else
- echo $loop_dev
-fi
-