]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/rados/ops: add caps restore command 64320/head
authorZac Dover <zac.dover@proton.me>
Wed, 2 Jul 2025 12:29:48 +0000 (22:29 +1000)
committerZac Dover <zac.dover@proton.me>
Thu, 3 Jul 2025 06:53:22 +0000 (16:53 +1000)
Add a command that restores caps to client.admin after they have been
accidentally destroyed or removed.

Fixes: https://tracker.ceph.com/issues/23594
Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit de8c148a2f99db3a1dc4eb70a19aca19a0e9bacf)

doc/rados/operations/user-management.rst

index 23e894621e2828f62d8000e410d7cb645ccb74f2..fcaa30fb071267e32da5d2343e92edc52a5490f6 100644 (file)
@@ -336,6 +336,17 @@ The following entries describe valid capability profiles:
               with the manager ``crash`` module to upload daemon crash
               dumps into monitor storage for later analysis.
 
+.. important:: If you run the command ``ceph auth caps client.admin mgr
+   'allow*'``, you will remove necessary capabilities from ``client.admin``. To
+   repair this, run a command of the following form from within the
+   ``/var/lib/ceph/mon/<monitor_name>`` directory:
+
+      .. prompt:: bash #
+
+         ceph -n mon. --keyring keyring auth caps client.admin mds 'allow *' osd 'allow *' mon 'allow *'
+
+
+
 Pool
 ----