Mon: Create rbd pool on luminous

There is no more an rbd pool that comes with luminous.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
pull/1677/head
Guillaume Abrioux 2017-07-18 00:40:12 +02:00
parent 0570008718
commit 151d59db4e
1 changed files with 10 additions and 0 deletions

View File

@ -82,6 +82,16 @@
- global_in_ceph_conf_overrides
- ceph_conf_overrides.global.osd_pool_default_size is defined
- name: create rbd pool on luminous
shell: ceph --connect-timeout 5 --cluster {{ cluster }} osd pool create rbd {{ ceph_conf_overrides.global.osd_pool_default_pg_num }}
changed_when: false
failed_when: false
when:
- ceph_release_num.{{ ceph_release }} >= ceph_release_num.luminous
- global_in_ceph_conf_overrides
- ceph_conf_overrides.global.osd_pool_default_pg_num is defined
- rbd_pool_exist.rc != 0
- include: openstack_config.yml
when:
- openstack_config