]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/MonCap: Allow default osd profile to run "config rm" with restriction
authorSridhar Seshasayee <sseshasa@redhat.com>
Tue, 16 May 2023 17:29:41 +0000 (22:59 +0530)
committerSridhar Seshasayee <sseshasa@redhat.com>
Mon, 22 May 2023 11:37:45 +0000 (17:07 +0530)
commitab5d74ed6f8afebff26d0970151ff785aad468ff
tree8a3fcae509d3bd1995a93e63b1c6a988a7f2b006
parent98be5f1666798c0d7d476959b59269129cff2b63
mon/MonCap: Allow default osd profile to run "config rm" with restriction

This is a follow-up to PR: https://github.com/ceph/ceph/pull/48703.
Modify the mon caps to allow OSDs to run the "config rm" command with
restriction to remove only the following config keys from the mon store:
- osd_max_backfills
- osd_recovery_max_active(.*)
  - osd_recovery_max_active and
  - osd_recovery_max_active_(hdd|ssd)
- osd_mclock_scheduler_(.*) -> all the QoS specific config options.

The above is similar to the change in mon caps to run the "config set"
command as implemented in PR: https://github.com/ceph/ceph/pull/42853.

Fixes: https://tracker.ceph.com/issues/61155
Signed-off-by: Sridhar Seshasayee <sseshasa@redhat.com>
(cherry picked from commit 69160081eea908ba1d5841b6b827352515fb304e)
src/mon/MonCap.cc