aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles
diff options
context:
space:
mode:
authorgrakiss <grakiss.wanglei@huawei.com>2016-01-16 15:56:31 +0800
committerJustin chi <chigang@huawei.com>2016-01-18 14:19:07 +0000
commit8f997e075da72337a5c60158708081bc40d77c67 (patch)
tree70253f97629b79f9e13a1f756b6f605bef4339ae /deploy/adapters/ansible/roles
parent15cd9fed3e0ff4bdd5d712df459037a765fe562e (diff)
Use wait_for instead of sleep to fetch keyring
JIRA: COMPASS-275 - fetch is not reliable, and sleep is also not reliable - wait_for can be used to confirm the file existence Change-Id: Ie44715e1b8756398f656fdee2c3243f03967e29a Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles')
-rw-r--r--deploy/adapters/ansible/roles/ceph-mon/tasks/install_mon.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/deploy/adapters/ansible/roles/ceph-mon/tasks/install_mon.yml b/deploy/adapters/ansible/roles/ceph-mon/tasks/install_mon.yml
index e2fc8ebb..1bdf3bfc 100644
--- a/deploy/adapters/ansible/roles/ceph-mon/tasks/install_mon.yml
+++ b/deploy/adapters/ansible/roles/ceph-mon/tasks/install_mon.yml
@@ -14,8 +14,8 @@
- name: auto start ceph-mon
file: path="/var/lib/ceph/mon/ceph-{{ inventory_hostname }}/upstart" state="touch"
-- name: sleep for creating osd keyring
- shell: sleep 10
+- name: wait for creating osd keyring
+ wait_for: path=/var/lib/ceph/bootstrap-osd/ceph.keyring
- name: fetch osd keyring
fetch: src="/var/lib/ceph/bootstrap-osd/ceph.keyring" dest="/tmp/ceph.osd.keyring" flat=yes