summaryrefslogtreecommitdiffstats
path: root/deploy
diff options
context:
space:
mode:
authorJustin chi <chigang@huawei.com>2017-10-29 12:52:50 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-10-29 12:52:50 +0000
commit697ef40111839d0003183976081a546affd534de (patch)
treeadfc5443fb6daaee6989daf809e53ce1289fc4e3 /deploy
parente63fd0ceff67ead3e9b362cc7b9126b7b8e2d650 (diff)
parent43b19eaefb31c9fc4c20e7d9402f52ab9542ef9b (diff)
Merge "fix ceph reboot issue"
Diffstat (limited to 'deploy')
-rw-r--r--deploy/adapters/ansible/roles/storage/tasks/ceph.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/storage/tasks/ceph.yml b/deploy/adapters/ansible/roles/storage/tasks/ceph.yml
index e024c671..50476c7b 100644
--- a/deploy/adapters/ansible/roles/storage/tasks/ceph.yml
+++ b/deploy/adapters/ansible/roles/storage/tasks/ceph.yml
@@ -43,3 +43,10 @@
line: "losetup -f /var/{{ item }}.img"
insertbefore: "{{ rc_local_insert_before }}"
with_items: "{{ ceph_osd_images }}"
+
+- name: Create ceph partitions at boot time
+ lineinfile:
+ dest: "{{ rc_local }}"
+ line: "partprobe -s {{ item }}"
+ insertbefore: "{{ rc_local_insert_before }}"
+ with_items: "{{ ceph_loopback.results | map(attribute='stdout') | list }}"