]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: allow getpoolstats for mgr modules 67023/head
authorMykola Golub <mykola.golub@clyso.com>
Wed, 21 Jan 2026 14:44:02 +0000 (16:44 +0200)
committerMykola Golub <mykola.golub@clyso.com>
Sun, 28 Jun 2026 17:45:50 +0000 (20:45 +0300)
Fixes: https://tracker.ceph.com/issues/74490
Signed-off-by: Mykola Golub <mykola.golub@clyso.com>
src/mon/MonCap.cc

index 60f006703d436d21fe3daf30888b469ab90f9eed..2ddf186dc9a5a525cebe110d0d4a1e4a08fda72b 100644 (file)
@@ -227,6 +227,8 @@ void MonCapGrant::expand_profile(const EntityName& name) const
     // allow the Telemetry module to gather heap and mempool metrics
     profile_grants.push_back(MonCapGrant("heap"));
     profile_grants.push_back(MonCapGrant("dump_mempools"));
+    // alow getpoolstats for mgr modules
+    profile_grants.push_back(MonCapGrant("pg", MON_CAP_R));
   }
   if (profile == "osd" || profile == "mds" || profile == "mon" ||
       profile == "mgr") {