diff --git a/ansible/roles/ceph/tasks/start_mdss.yml b/ansible/roles/ceph/tasks/start_mdss.yml index 3ec8d695497b06d3314732633da59629ece6fca7..4727e0d8c6b6a4a370dab7e68a69e5429553de31 100644 --- a/ansible/roles/ceph/tasks/start_mdss.yml +++ b/ansible/roles/ceph/tasks/start_mdss.yml @@ -6,6 +6,7 @@ cache_mode: "{{ item.cache_mode }}" pool_pg_num: "{{ item.pool_pg_num }}" pool_pgp_num: "{{ item.pool_pgp_num }}" + pool_application: "cephfs" with_items: - pool_name: "{{ cephfs_data_pool_name }}" pool_type: "{{ cephfs_data_pool_type }}" diff --git a/ansible/roles/ceph_pools.yml b/ansible/roles/ceph_pools.yml index 12a8d02af19901335f91ca1588bcd79c5bd5d12c..67f7e0d2d30f0eb0d44aa6b85ad4503a542417da 100644 --- a/ansible/roles/ceph_pools.yml +++ b/ansible/roles/ceph_pools.yml @@ -31,6 +31,12 @@ failed_when: False run_once: True +- name: enable application for ceph pool + command: docker exec ceph_mon ceph osd pool application enable {{ pool_name }} {{ pool_application }} + changed_when: False + delegate_to: "{{ groups['ceph-mon'][0] }}" + run_once: True + - name: Creating ceph ruleset for cache command: docker exec ceph_mon ceph osd crush rule create-simple cache {{ ceph_cache_rule }} delegate_to: "{{ groups['ceph-mon'][0] }}" diff --git a/ansible/roles/cinder/tasks/ceph.yml b/ansible/roles/cinder/tasks/ceph.yml index 2be771b6aa385e319bd2144652f2ad6ed18ef3c1..01b9bf72920d1873cf7ea42c7a02582877e116d6 100644 --- a/ansible/roles/cinder/tasks/ceph.yml +++ b/ansible/roles/cinder/tasks/ceph.yml @@ -37,6 +37,7 @@ cache_mode: "{{ cinder_cache_mode }}" pool_pg_num: "{{ cinder_pool_pg_num }}" pool_pgp_num: "{{ cinder_pool_pgp_num }}" + pool_application: "rbd" - include: ../../ceph_pools.yml vars: @@ -45,6 +46,7 @@ cache_mode: "{{ cinder_backup_cache_mode }}" pool_pg_num: "{{ cinder_backup_pool_pg_num }}" pool_pgp_num: "{{ cinder_backup_pool_pgp_num }}" + pool_application: "rbd" # TODO(SamYaple): Improve changed_when tests - name: Pulling cephx keyring for cinder diff --git a/ansible/roles/glance/tasks/ceph.yml b/ansible/roles/glance/tasks/ceph.yml index 2c9c8287f340b906848b0e5faf386ae07c7f7869..b8c246e2658be97a94e91cd927719d6e8891cc1a 100644 --- a/ansible/roles/glance/tasks/ceph.yml +++ b/ansible/roles/glance/tasks/ceph.yml @@ -23,6 +23,7 @@ cache_mode: "{{ glance_cache_mode }}" pool_pg_num: "{{ glance_pool_pg_num }}" pool_pgp_num: "{{ glance_pool_pgp_num }}" + pool_application: "rbd" # TODO(SamYaple): Improve changed_when tests - name: Pulling cephx keyring diff --git a/ansible/roles/gnocchi/tasks/ceph.yml b/ansible/roles/gnocchi/tasks/ceph.yml index babaaf4edcabecea1ca347f408679439ee659970..60fa152cf397f855231b303b15a3388066777e8c 100644 --- a/ansible/roles/gnocchi/tasks/ceph.yml +++ b/ansible/roles/gnocchi/tasks/ceph.yml @@ -29,6 +29,7 @@ cache_mode: "{{ gnocchi_cache_mode }}" pool_pg_num: "{{ gnocchi_pool_pg_num }}" pool_pgp_num: "{{ gnocchi_pool_pgp_num }}" + pool_application: "rgw" # TODO(SamYaple): Improve changed_when tests - name: Pulling cephx keyring diff --git a/ansible/roles/nova/tasks/ceph.yml b/ansible/roles/nova/tasks/ceph.yml index fd2ecdc7ee9ae1f46f0feae9396aae2052d47774..1500f5fbde170658a9edfc8d4545e249301c53e1 100644 --- a/ansible/roles/nova/tasks/ceph.yml +++ b/ansible/roles/nova/tasks/ceph.yml @@ -31,6 +31,7 @@ cache_mode: "{{ nova_cache_mode }}" pool_pg_num: "{{ nova_pool_pg_num }}" pool_pgp_num: "{{ nova_pool_pgp_num }}" + pool_application: "rbd" # TODO(SamYaple): Improve changed_when tests - name: Pulling cephx keyring for nova