]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
iscsi: assign application (rbd) to pool 'rbd'
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 11 Jun 2019 20:03:59 +0000 (22:03 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 13 Jun 2019 12:43:25 +0000 (14:43 +0200)
if we don't assign the rbd application tag on this pool,
the cluster will get `HEALTH_WARN` state like following:

```
HEALTH_WARN application not enabled on 1 pool(s)
POOL_APP_NOT_ENABLED application not enabled on 1 pool(s)
    application not enabled on pool 'rbd'
```

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 4cf17a6fddc052c944026ae1d138263131e677f8)

roles/ceph-iscsi-gw/tasks/common.yml
tests/functional/all_daemons/group_vars/all

index 3d4a556fd41523ff1dfc34dd8c0dbca8cce2a2ad..44e30ab4e7e47f0d229030dcec84fa989a490d14 100644 (file)
       changed_when: false
       delegate_to: "{{ groups[mon_group_name][0] }}"
 
+    - name: assign application rbd to pool 'rbd'
+      command: "{{ docker_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: "{{ docker_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] }}"
index 5e11a1ce77c3f6eb61a3b265b21d64d7a9126f48..4bd4fe2b902e70b080ddf6a4d34e5caaa996a2c0 100644 (file)
@@ -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