From 103c279c218ae654ec9ced29c1aef54eb8b59990 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Han?= Date: Fri, 29 Jun 2018 11:46:56 +0200 Subject: [PATCH] ceph-defaults: add default application to pool MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit We now add a default 'rbd' application type to each pool we create. This will remove the warning: " application not enabled on N pool(s) " Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1590275 Signed-off-by: Sébastien Han --- group_vars/all.yml.sample | 5 +++++ group_vars/rhcs.yml.sample | 5 +++++ roles/ceph-defaults/defaults/main.yml | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/group_vars/all.yml.sample b/group_vars/all.yml.sample index 6e65f0d85..90a4c9480 100644 --- a/group_vars/all.yml.sample +++ b/group_vars/all.yml.sample @@ -559,6 +559,7 @@ dummy: # type: 1 # erasure_profile: "" # expected_num_objects: "" +# application: "rbd" #openstack_cinder_pool: # name: "volumes" # pg_num: "{{ hostvars[groups[mon_group_name][0]]['osd_pool_default_pg_num'] }}" @@ -567,6 +568,7 @@ dummy: # type: 1 # erasure_profile: "" # expected_num_objects: "" +# application: "rbd" #openstack_nova_pool: # name: "vms" # pg_num: "{{ hostvars[groups[mon_group_name][0]]['osd_pool_default_pg_num'] }}" @@ -575,6 +577,7 @@ dummy: # type: 1 # erasure_profile: "" # expected_num_objects: "" +# application: "rbd" #openstack_cinder_backup_pool: # name: "backups" # pg_num: "{{ hostvars[groups[mon_group_name][0]]['osd_pool_default_pg_num'] }}" @@ -583,6 +586,7 @@ dummy: # type: 1 # erasure_profile: "" # expected_num_objects: "" +# application: "rbd" #openstack_gnocchi_pool: # name: "metrics" # pg_num: "{{ hostvars[groups[mon_group_name][0]]['osd_pool_default_pg_num'] }}" @@ -591,6 +595,7 @@ dummy: # type: 1 # erasure_profile: "" # expected_num_objects: "" +# application: "rbd" #openstack_pools: # - "{{ openstack_glance_pool }}" diff --git a/group_vars/rhcs.yml.sample b/group_vars/rhcs.yml.sample index 1d51fb4bd..b50e26d1b 100644 --- a/group_vars/rhcs.yml.sample +++ b/group_vars/rhcs.yml.sample @@ -559,6 +559,7 @@ ceph_repository: rhcs # type: 1 # erasure_profile: "" # expected_num_objects: "" +# application: "rbd" #openstack_cinder_pool: # name: "volumes" # pg_num: "{{ hostvars[groups[mon_group_name][0]]['osd_pool_default_pg_num'] }}" @@ -567,6 +568,7 @@ ceph_repository: rhcs # type: 1 # erasure_profile: "" # expected_num_objects: "" +# application: "rbd" #openstack_nova_pool: # name: "vms" # pg_num: "{{ hostvars[groups[mon_group_name][0]]['osd_pool_default_pg_num'] }}" @@ -575,6 +577,7 @@ ceph_repository: rhcs # type: 1 # erasure_profile: "" # expected_num_objects: "" +# application: "rbd" #openstack_cinder_backup_pool: # name: "backups" # pg_num: "{{ hostvars[groups[mon_group_name][0]]['osd_pool_default_pg_num'] }}" @@ -583,6 +586,7 @@ ceph_repository: rhcs # type: 1 # erasure_profile: "" # expected_num_objects: "" +# application: "rbd" #openstack_gnocchi_pool: # name: "metrics" # pg_num: "{{ hostvars[groups[mon_group_name][0]]['osd_pool_default_pg_num'] }}" @@ -591,6 +595,7 @@ ceph_repository: rhcs # type: 1 # erasure_profile: "" # expected_num_objects: "" +# application: "rbd" #openstack_pools: # - "{{ openstack_glance_pool }}" diff --git a/roles/ceph-defaults/defaults/main.yml b/roles/ceph-defaults/defaults/main.yml index 906c5d4db..5c3e8dd15 100644 --- a/roles/ceph-defaults/defaults/main.yml +++ b/roles/ceph-defaults/defaults/main.yml @@ -551,6 +551,7 @@ openstack_glance_pool: type: 1 erasure_profile: "" expected_num_objects: "" + application: "rbd" openstack_cinder_pool: name: "volumes" pg_num: "{{ hostvars[groups[mon_group_name][0]]['osd_pool_default_pg_num'] }}" @@ -559,6 +560,7 @@ openstack_cinder_pool: type: 1 erasure_profile: "" expected_num_objects: "" + application: "rbd" openstack_nova_pool: name: "vms" pg_num: "{{ hostvars[groups[mon_group_name][0]]['osd_pool_default_pg_num'] }}" @@ -567,6 +569,7 @@ openstack_nova_pool: type: 1 erasure_profile: "" expected_num_objects: "" + application: "rbd" openstack_cinder_backup_pool: name: "backups" pg_num: "{{ hostvars[groups[mon_group_name][0]]['osd_pool_default_pg_num'] }}" @@ -575,6 +578,7 @@ openstack_cinder_backup_pool: type: 1 erasure_profile: "" expected_num_objects: "" + application: "rbd" openstack_gnocchi_pool: name: "metrics" pg_num: "{{ hostvars[groups[mon_group_name][0]]['osd_pool_default_pg_num'] }}" @@ -583,6 +587,7 @@ openstack_gnocchi_pool: type: 1 erasure_profile: "" expected_num_objects: "" + application: "rbd" openstack_pools: - "{{ openstack_glance_pool }}" -- 2.39.5