]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Set application for OpenStack pools
authorAndy McCrae <andy.mccrae@gmail.com>
Fri, 9 Feb 2018 14:12:35 +0000 (14:12 +0000)
committerSébastien Han <seb@redhat.com>
Tue, 13 Feb 2018 20:32:32 +0000 (21:32 +0100)
Since Luminous we need to set the application tag for each pool,
otherwise a CEPH_WARNING is generated when the pools are in use.

We should assign the OpenStack pools to their default which would be
"rbd". When updating to Luminous this would happen automatically to the
vms, images, backups and volumes pools, but for new deploys this is not
the case.

roles/ceph-mon/tasks/openstack_config.yml

index 0c5466b935c3b4d99366ffa49fe86ae03b0c4908..90c964cbd956df104a2de9a5207d9f8cad941215 100644 (file)
@@ -5,6 +5,14 @@
   changed_when: false
   failed_when: false
 
+- name: assign rbd application to pool(s)
+  command: "{{ docker_exec_cmd }} ceph --cluster {{ cluster }} osd pool application enable {{ item.name }} rbd"
+  with_items: "{{ openstack_pools | unique }}"
+  changed_when: false
+  failed_when: false
+  when:
+    - ceph_release_num[ceph_release] >= ceph_release_num['luminous']
+
 # A future version could use "--caps CAPSFILE"
 # which will set all of capabilities associated with a given key, for all subsystems
 - name: create openstack key(s)