mirror of https://github.com/ceph/ceph-ansible.git
mon: add support for expected-num-objects
This commit adds the support for expected-num-objects when creating a pool. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1541520 Signed-off-by: Sébastien Han <seb@redhat.com>pull/2450/head
parent
18402b636f
commit
0011edd2bc
|
@ -90,22 +90,27 @@ dummy:
|
|||
# name: images
|
||||
# pg_num: "{{ osd_pool_default_pg_num }}"
|
||||
# rule_name: ""
|
||||
# size: ""
|
||||
#openstack_cinder_pool:
|
||||
# name: volumes
|
||||
# pg_num: "{{ osd_pool_default_pg_num }}"
|
||||
# rule_name: ""
|
||||
# size: ""
|
||||
#openstack_nova_pool:
|
||||
# name: vms
|
||||
# pg_num: "{{ osd_pool_default_pg_num }}"
|
||||
# rule_name: ""
|
||||
# size: ""
|
||||
#openstack_cinder_backup_pool:
|
||||
# name: backups
|
||||
# pg_num: "{{ osd_pool_default_pg_num }}"
|
||||
# rule_name: ""
|
||||
# size: ""
|
||||
#openstack_gnocchi_pool:
|
||||
# name: metrics
|
||||
# pg_num: "{{ osd_pool_default_pg_num }}"
|
||||
# rule_name: ""
|
||||
# size: ""
|
||||
|
||||
#openstack_pools:
|
||||
# - "{{ openstack_glance_pool }}"
|
||||
|
|
|
@ -82,22 +82,27 @@ openstack_glance_pool:
|
|||
name: images
|
||||
pg_num: "{{ osd_pool_default_pg_num }}"
|
||||
rule_name: ""
|
||||
size: ""
|
||||
openstack_cinder_pool:
|
||||
name: volumes
|
||||
pg_num: "{{ osd_pool_default_pg_num }}"
|
||||
rule_name: ""
|
||||
size: ""
|
||||
openstack_nova_pool:
|
||||
name: vms
|
||||
pg_num: "{{ osd_pool_default_pg_num }}"
|
||||
rule_name: ""
|
||||
size: ""
|
||||
openstack_cinder_backup_pool:
|
||||
name: backups
|
||||
pg_num: "{{ osd_pool_default_pg_num }}"
|
||||
rule_name: ""
|
||||
size: ""
|
||||
openstack_gnocchi_pool:
|
||||
name: metrics
|
||||
pg_num: "{{ osd_pool_default_pg_num }}"
|
||||
rule_name: ""
|
||||
size: ""
|
||||
|
||||
openstack_pools:
|
||||
- "{{ openstack_glance_pool }}"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
- name: create openstack pool(s)
|
||||
command: "{{ docker_exec_cmd }} ceph --cluster {{ cluster }} osd pool create {{ item.name }} {{ item.pg_num }} {{ item.rule_name|default('') }}"
|
||||
command: "{{ docker_exec_cmd }} ceph --cluster {{ cluster }} osd pool create {{ item.name }} {{ item.pg_num }} {{ item.rule_name|default('') }} {{ item.size|default('') }}"
|
||||
with_items: "{{ openstack_pools | unique }}"
|
||||
changed_when: false
|
||||
failed_when: false
|
||||
|
|
Loading…
Reference in New Issue