diff --git a/roles/ceph-iscsi-gw/tasks/common.yml b/roles/ceph-iscsi-gw/tasks/common.yml index 73159f21f..9ca684bd5 100644 --- a/roles/ceph-iscsi-gw/tasks/common.yml +++ b/roles/ceph-iscsi-gw/tasks/common.yml @@ -38,6 +38,11 @@ changed_when: false delegate_to: "{{ groups[mon_group_name][0] }}" + - name: assign application rbd to pool 'rbd' + command: "{{ container_exec_cmd }} ceph --connect-timeout 5 --cluster {{ cluster }} osd pool application enable rbd rbd" + delegate_to: "{{ groups[mon_group_name][0] }}" + run_once: True + - name: customize pool size command: "{{ container_exec_cmd | default('') }} ceph --cluster {{ cluster }} osd pool set rbd size {{ rbd_pool_size | default(osd_pool_default_size) }}" delegate_to: "{{ groups[mon_group_name][0] }}" diff --git a/tests/functional/all_daemons/group_vars/all b/tests/functional/all_daemons/group_vars/all index 046c86b33..a12c41d8d 100644 --- a/tests/functional/all_daemons/group_vars/all +++ b/tests/functional/all_daemons/group_vars/all @@ -17,6 +17,7 @@ openstack_glance_pool: erasure_profile: "" expected_num_objects: "" size: 1 + application: rbd openstack_cinder_pool: name: "volumes" pg_num: "{{ osd_pool_default_pg_num }}" @@ -26,6 +27,7 @@ openstack_cinder_pool: erasure_profile: "" expected_num_objects: "" size: 1 + application: rbd openstack_pools: - "{{ openstack_glance_pool }}" - "{{ openstack_cinder_pool }}" \ No newline at end of file