From dfcb6ed45f182a8c40920b3f906082963f601c55 Mon Sep 17 00:00:00 2001 From: Dimitri Savineau Date: Wed, 5 May 2021 10:39:02 -0400 Subject: [PATCH] ceph-rgw: fix pg_autoscale_mode for pool The pg_autoscale_mode for rgw pools introduced in 9f03a52 was wrong and was missing a `value` keyword because `rgw_create_pools` is a dict. Fixes: #6516 Signed-off-by: Dimitri Savineau (cherry picked from commit a670982a38cf87cef87ebadf15d7e33fa7a6ff44) --- roles/ceph-rgw/tasks/rgw_create_pools.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/ceph-rgw/tasks/rgw_create_pools.yml b/roles/ceph-rgw/tasks/rgw_create_pools.yml index 69de174cd..0907a9df1 100644 --- a/roles/ceph-rgw/tasks/rgw_create_pools.yml +++ b/roles/ceph-rgw/tasks/rgw_create_pools.yml @@ -37,7 +37,7 @@ pg_num: "{{ item.value.pg_num | default(omit) }}" pgp_num: "{{ item.value.pgp_num | default(omit) }}" size: "{{ item.value.size | default(omit) }}" - pg_autoscale_mode: "{{ item.pg_autoscale_mode | default(omit) }}" + pg_autoscale_mode: "{{ item.value.pg_autoscale_mode | default(omit) }}" target_size_ratio: "{{ item.value.target_size_ratio | default(omit) }}" pool_type: erasure erasure_profile: "{{ item.value.ec_profile }}" @@ -60,7 +60,7 @@ pgp_num: "{{ item.value.pgp_num | default(omit) }}" size: "{{ item.value.size | default(omit) }}" min_size: "{{ item.value.min_size | default(omit) }}" - pg_autoscale_mode: "{{ item.pg_autoscale_mode | default(omit) }}" + pg_autoscale_mode: "{{ item.value.pg_autoscale_mode | default(omit) }}" target_size_ratio: "{{ item.value.target_size_ratio | default(omit) }}" pool_type: replicated rule_name: "{{ item.value.rule_name | default(ceph_osd_pool_default_crush_rule_name) }}"