From 8ebb8a83394d529ad2667f2b3ccc6effc769ef23 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sat, 2 Sep 2023 01:59:47 -0400 Subject: [PATCH] Disable autoscale via command As per [1] the ceph.conf option does not work properly and must be set this way. [1] https://stackoverflow.com/questions/63853436/ceph-octopus-setting-autoscale-mode-from-ceph-conf-file --- roles/pvc/tasks/ceph/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/pvc/tasks/ceph/main.yml b/roles/pvc/tasks/ceph/main.yml index 1ae8b4d..db75edd 100644 --- a/roles/pvc/tasks/ceph/main.yml +++ b/roles/pvc/tasks/ceph/main.yml @@ -111,6 +111,11 @@ run_once: yes ignore_errors: yes +- name: set pg_autoscale_mode disabled + command: ceph config set global osd_pool_default_pg_autoscale_mode off + run_once: yes + ignore_errors: yes + - name: create mgr auth keyring command: ceph auth get-or-create mgr.{{ ansible_hostname }} mon 'allow profile mgr' osd 'allow *' mds 'allow *' --out-file /var/lib/ceph/mgr/ceph-{{ ansible_hostname }}/keyring become_user: ceph