mirror of https://github.com/ceph/ceph-ansible.git
ceph-mon: fix get rbd size hanging
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>pull/1598/head
parent
93fc892978
commit
497924795d
|
@ -59,7 +59,8 @@
|
||||||
- include: set_osd_pool_default_pg_num.yml
|
- include: set_osd_pool_default_pg_num.yml
|
||||||
|
|
||||||
- name: test if rbd exists
|
- 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
|
changed_when: false
|
||||||
failed_when: false
|
failed_when: false
|
||||||
register: rbd_pool_exist
|
register: rbd_pool_exist
|
||||||
|
|
Loading…
Reference in New Issue