Skip to content
Snippets Groups Projects
Commit 37f6e92b authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

Merge "Configure application for ceph pool"

parents d753da05 6e377622
No related branches found
No related tags found
No related merge requests found
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
cache_mode: "{{ item.cache_mode }}" cache_mode: "{{ item.cache_mode }}"
pool_pg_num: "{{ item.pool_pg_num }}" pool_pg_num: "{{ item.pool_pg_num }}"
pool_pgp_num: "{{ item.pool_pgp_num }}" pool_pgp_num: "{{ item.pool_pgp_num }}"
pool_application: "cephfs"
with_items: with_items:
- pool_name: "{{ cephfs_data_pool_name }}" - pool_name: "{{ cephfs_data_pool_name }}"
pool_type: "{{ cephfs_data_pool_type }}" pool_type: "{{ cephfs_data_pool_type }}"
......
...@@ -30,6 +30,12 @@ ...@@ -30,6 +30,12 @@
changed_when: False changed_when: False
run_once: True 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 - name: Creating ceph ruleset for cache
command: docker exec ceph_mon ceph osd crush rule create-simple cache {{ ceph_cache_rule }} command: docker exec ceph_mon ceph osd crush rule create-simple cache {{ ceph_cache_rule }}
delegate_to: "{{ groups['ceph-mon'][0] }}" delegate_to: "{{ groups['ceph-mon'][0] }}"
......
...@@ -43,6 +43,7 @@ ...@@ -43,6 +43,7 @@
cache_mode: "{{ cinder_cache_mode }}" cache_mode: "{{ cinder_cache_mode }}"
pool_pg_num: "{{ cinder_pool_pg_num }}" pool_pg_num: "{{ cinder_pool_pg_num }}"
pool_pgp_num: "{{ cinder_pool_pgp_num }}" pool_pgp_num: "{{ cinder_pool_pgp_num }}"
pool_application: "rbd"
- include: ../../ceph_pools.yml - include: ../../ceph_pools.yml
vars: vars:
...@@ -51,6 +52,7 @@ ...@@ -51,6 +52,7 @@
cache_mode: "{{ cinder_backup_cache_mode }}" cache_mode: "{{ cinder_backup_cache_mode }}"
pool_pg_num: "{{ cinder_backup_pool_pg_num }}" pool_pg_num: "{{ cinder_backup_pool_pg_num }}"
pool_pgp_num: "{{ cinder_backup_pool_pgp_num }}" pool_pgp_num: "{{ cinder_backup_pool_pgp_num }}"
pool_application: "rbd"
# TODO(SamYaple): Improve changed_when tests # TODO(SamYaple): Improve changed_when tests
- name: Pulling cephx keyring for cinder - name: Pulling cephx keyring for cinder
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
cache_mode: "{{ glance_cache_mode }}" cache_mode: "{{ glance_cache_mode }}"
pool_pg_num: "{{ glance_pool_pg_num }}" pool_pg_num: "{{ glance_pool_pg_num }}"
pool_pgp_num: "{{ glance_pool_pgp_num }}" pool_pgp_num: "{{ glance_pool_pgp_num }}"
pool_application: "rbd"
# TODO(SamYaple): Improve changed_when tests # TODO(SamYaple): Improve changed_when tests
- name: Pulling cephx keyring - name: Pulling cephx keyring
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
cache_mode: "{{ gnocchi_cache_mode }}" cache_mode: "{{ gnocchi_cache_mode }}"
pool_pg_num: "{{ gnocchi_pool_pg_num }}" pool_pg_num: "{{ gnocchi_pool_pg_num }}"
pool_pgp_num: "{{ gnocchi_pool_pgp_num }}" pool_pgp_num: "{{ gnocchi_pool_pgp_num }}"
pool_application: "rgw"
# TODO(SamYaple): Improve changed_when tests # TODO(SamYaple): Improve changed_when tests
- name: Pulling cephx keyring - name: Pulling cephx keyring
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
cache_mode: "{{ nova_cache_mode }}" cache_mode: "{{ nova_cache_mode }}"
pool_pg_num: "{{ nova_pool_pg_num }}" pool_pg_num: "{{ nova_pool_pg_num }}"
pool_pgp_num: "{{ nova_pool_pgp_num }}" pool_pgp_num: "{{ nova_pool_pgp_num }}"
pool_application: "rbd"
# TODO(SamYaple): Improve changed_when tests # TODO(SamYaple): Improve changed_when tests
- name: Pulling cephx keyring for nova - name: Pulling cephx keyring for nova
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment