]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-mon: change command to see if rbd exists 1442/head
authorAndrew Schoen <aschoen@redhat.com>
Wed, 12 Apr 2017 20:07:10 +0000 (15:07 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Wed, 12 Apr 2017 20:07:10 +0000 (15:07 -0500)
The previous command was hanging, see this issue:

https://github.com/ceph/ceph-ansible/issues/1440

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
roles/ceph-mon/tasks/ceph_keys.yml

index 3e7ffe2f111fb669707ee7ddc4566a7b332ee78d..b54d0712232f2bec360b40409e8caf7c637a869b 100644 (file)
@@ -57,7 +57,7 @@
 - include: set_osd_pool_default_pg_num.yml
 
 - name: test if rbd exists
-  command: ceph --cluster {{ cluster }} osd pool stats rbd
+  command: ceph --cluster {{ cluster }} osd pool get rbd size
   changed_when: false
   failed_when: false
   register: rbd_pool_exist