]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/MonCap: Update osd profile to allow cmd to set iops capacity on mon db
authorSridhar Seshasayee <sseshasa@redhat.com>
Thu, 19 Aug 2021 13:52:02 +0000 (19:22 +0530)
committerSridhar Seshasayee <sseshasa@redhat.com>
Wed, 1 Sep 2021 08:16:01 +0000 (13:46 +0530)
commit2cdbe81d7dd34b65e5c3c51005df5214a1e3a577
tree9e88fcc8534f56a41791f0a0078eba49e34be81e
parentdb226b99e77fe09d8998db7884f50a4fa0e7f363
mon/MonCap: Update osd profile to allow cmd to set iops capacity on mon db

The default mon caps for osds is set to "allow profile osd", which allows
only "rw" capability. Osds with mclock scheduler enabled store their max
iops capacity on the mon config store. This can be achieved by executing
the "config set" command. However, since the osd(s) by default do not have
the execute permission, the command fails with "Permission denied" error.

Therefore, modify the default osd profile to allow running the "config set"
command with restriction to only set keys with name matching either (regex)
"osd_mclock_max_capacity_iops_hdd" or "osd_mclock_max_capacity_iops_ssd"
so that the osd has the permission to update the mon config store with the
desired information.

Fixes: https://tracker.ceph.com/issues/52329
Signed-off-by: Sridhar Seshasayee <sseshasa@redhat.com>
src/mon/MonCap.cc