From 497924795db6253395932853308788e87af8b7c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Mon, 12 Jun 2017 14:38:10 +0200 Subject: [PATCH] ceph-mon: fix get rbd size hanging MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For newly created cluster the command: ceph --cluster {{ cluster }} osd pool get rbd size does not respond properly. We only want to check if the rbd pool exists, so we know use an ls | grep approach. Closes: https://github.com/ceph/ceph-ansible/issues/1547 Signed-off-by: Sébastien Han --- roles/ceph-mon/tasks/ceph_keys.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/ceph-mon/tasks/ceph_keys.yml b/roles/ceph-mon/tasks/ceph_keys.yml index d3abe917f..84f42477a 100644 --- a/roles/ceph-mon/tasks/ceph_keys.yml +++ b/roles/ceph-mon/tasks/ceph_keys.yml @@ -59,7 +59,8 @@ - include: set_osd_pool_default_pg_num.yml - name: test if rbd exists - command: ceph --cluster {{ cluster }} osd pool get rbd size + shell: | + ceph --cluster {{ cluster }} osd pool ls | grep -sq rbd changed_when: false failed_when: false register: rbd_pool_exist