]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
qa/tasks: Allow override of recovery configs for tests 51664/head
authorSridhar Seshasayee <sseshasa@redhat.com>
Thu, 18 May 2023 09:18:09 +0000 (14:48 +0530)
committerSridhar Seshasayee <sseshasa@redhat.com>
Mon, 22 May 2023 11:40:34 +0000 (17:10 +0530)
commit93828a635a69933ae2840681b787b6985627c908
tree4247b4d7dcc74da131b591db9466cde2d4926446
parent41c903a4bf294b6f123484451ff36c449ca51a39
qa/tasks: Allow override of recovery configs for tests

With mClock scheduler enabled, a small subset of config options related
to recovery limits are not allowed to be modified unless
osd_mclock_override_recovery_settings option is enabled. This override
option is disabled by default. The following options cannot be modified
without enabling the override option:

 - osd_max_backfills
 - osd_recovery_max_active[_(hdd|ssd)]

The above options are removed from the mon kv store which effectively
restores them to the default values.

This was resulting in tests for example,
test_cluster_configuration.ClusterConfigurationTest to fail since it
modifies the recovery options and expects to verify the modified value.

Therefore, for tests, osd_mclock_override_recovery_settings option is
enabled in vstart_runner.py so that current and future tests
are not affected.

Fixes: https://tracker.ceph.com/issues/61155
Signed-off-by: Sridhar Seshasayee <sseshasa@redhat.com>
(cherry picked from commit aed71b56be3420d5e499453280e8aee017ce2dd5)
qa/tasks/vstart_runner.py