]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-mon: fix get rbd size hanging 1598/head
authorSébastien Han <seb@redhat.com>
Mon, 12 Jun 2017 12:38:10 +0000 (14:38 +0200)
committerSébastien Han <seb@redhat.com>
Mon, 12 Jun 2017 12:39:39 +0000 (14:39 +0200)
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 <seb@redhat.com>
roles/ceph-mon/tasks/ceph_keys.yml

index d3abe917fcaf922af1f734878f647e2afe321663..84f42477a7094fea4476882bf934938bc274de8e 100644 (file)
@@ -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