summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/cinder-volume/tasks/loop.yml
diff options
context:
space:
mode:
authorcarey.xu <carey.xuhan@huawei.com>2015-10-26 23:47:19 +0800
committercarey.xu <carey.xuhan@huawei.com>2015-10-27 17:07:08 +0800
commitdcd8ebd9d8da04c91650f596ae78f92115f8a97b (patch)
tree6e8d86d9dbfa86e094b3303c1845fbcc06b48e9c /deploy/adapters/ansible/roles/cinder-volume/tasks/loop.yml
parent4d2673fbf7dc77113309c2ce50eaa2b850c7825e (diff)
cinder volume space is too small
JIRA: COMPASS-116 Change-Id: I26553b6e56bbe46138e8dec4ee3af1aed7093bc4 Signed-off-by: carey.xu <carey.xuhan@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/cinder-volume/tasks/loop.yml')
-rw-r--r--deploy/adapters/ansible/roles/cinder-volume/tasks/loop.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/cinder-volume/tasks/loop.yml b/deploy/adapters/ansible/roles/cinder-volume/tasks/loop.yml
new file mode 100644
index 00000000..b44253c4
--- /dev/null
+++ b/deploy/adapters/ansible/roles/cinder-volume/tasks/loop.yml
@@ -0,0 +1,20 @@
+---
+- include_vars: "{{ ansible_os_family }}.yml"
+
+- name: get available /var partition size
+ script: get_var_size.sh
+ register: part_size
+
+- name: create cinder file if not exitst
+ script: create_img.sh {{ part_size.stdout }}
+
+- name: do a losetup on /mnt/cinder-volumes
+ script: losetup.sh
+ register: loop_device
+
+- name: debug loop device
+ debug: msg={{ loop_device.stdout }}
+
+- name: create physical and group volumes
+ lvg: vg=cinder-volumes pvs={{ loop_device.stdout }}
+ vg_options=--force