]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Set the rgw_create_pools pools application to rgw
authorKevin Coakley <kcoakley@sdsc.edu>
Fri, 10 May 2019 13:32:00 +0000 (06:32 -0700)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 13 May 2019 09:05:14 +0000 (11:05 +0200)
Set the application to rgw for pools created from rgw_create_pools. On Ceph Nautilus the heath is set to HEALTH_WARN with the message "application not enabled on X pool(s)" if an application isn't specified for a pool.

Signed-off-by: Kevin Coakley <kcoakley@sdsc.edu>
(cherry picked from commit 381c58ca3e860ec8f0b3641e76035c55d5e0732f)

roles/ceph-rgw/tasks/main.yml

index 43248517cdc60031161a362fdfbe1ea73637d013..643bf11c06a3c17faa9e0ba04ca4e5cb7962f1d0 100644 (file)
       register: result
       until: result is succeeded
       when: item.size | default(osd_pool_default_size) != ceph_osd_pool_default_size
+
+    - name: set the rgw_create_pools pools application to rgw
+      command: "{{ docker_exec_cmd }} ceph --connect-timeout 5 --cluster {{ cluster }} osd pool application enable {{ item.key }} rgw"
+      changed_when: false
+      with_dict: "{{ rgw_create_pools }}"
+      delegate_to: "{{ groups[mon_group_name][0] }}"
+      register: result
+      until: result is succeeded
+      run_once: true