]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: fill keyring with caps before passing it to ceph-monstore-tool 11126/head
authorKefu Chai <kchai@redhat.com>
Mon, 10 Oct 2016 10:43:39 +0000 (18:43 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 18 Oct 2016 02:49:43 +0000 (10:49 +0800)
to make sure the recovered monitor store is ready for use.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit af8e21163735377071b6832d8a81b035bb835257)

doc/rados/troubleshooting/troubleshooting-mon.rst

index a9feb6d2a1d7fb00df587e0f02b4195f242253e8..a50db4cb9eb3f8c09d588b91922892179d3885ec 100644 (file)
@@ -430,8 +430,13 @@ information stored in OSDs.::
     rsync -avz user@host:$ms $ms
   done
   # rebuild the monitor store from the collected map, if the cluster does not
-  # use cephx authentication, there is no need to pass the "--keyring" option.
-  # i.e. use "ceph-monstore-tool /tmp/mon-store rebuild" instead
+  # use cephx authentication, we can skip the following steps to update the
+  # keyring with the caps, and there is no need to pass the "--keyring" option.
+  # i.e. just use "ceph-monstore-tool /tmp/mon-store rebuild" instead
+  ceph-authtool /path/to/admin.keyring -n mon. \
+    --cap mon allow 'allow *'
+  ceph-authtool /path/to/admin.keyring -n client.admin \
+    --cap mon allow 'allow *' --cap osd 'allow *' --cap mds 'allow *'
   ceph-monstore-tool /tmp/mon-store rebuild -- --keyring /path/to/admin.keyring
   # backup corrupted store.db just in case
   mv /var/lib/ceph/mon/mon.0/store.db /var/lib/ceph/mon/mon.0/store.db.corrupted