option for pg_autoscaler to retain same state of existing pools when upgrading to versions >= pacific
Currently, any version of Ceph that is >= Pacific will have autoscaler enabled by default even for existing pools.
We should have an option for the autoscaler to just retain its state before the upgrade.
#1 Updated by Kamoltat (Junior) Sirivadhna about 1 year ago
Since all the upgrade suites in Pacific turn the autoscaler off by default. I had to write a new upgrade test to try and reproduce this particular issue, https://github.com/ceph/ceph/pull/47677.
The result from a run I scheduled in Teuthology, /a/ksirivad-2022-08-19_22:01:49-upgrade:nautilus-x:autoscaler-pacific-distro-default-smithi/6981635/, suggests that the autoscaler does indeed retain its state when upgrading from Nautilus to Pacific.
Before the upgrade, the current version: Nautilus
After the upgrade, the current version: Pacific
#2 Updated by Vikhyat Umrao about 1 year ago
We discussed this one and the issue is in the following rolling upgrade playbook -
The following playbook tasks should check the pg autoscaler state before disabling them.
- name: disable pg autoscale on pools
- name: re-enable pg autoscale on pools
#4 Updated by Vikhyat Umrao about 1 year ago
Downstream ceph-ansible BZ - https://bugzilla.redhat.com/show_bug.cgi?id=2121097