]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/mon: fix ceph-authtool create keyring 16503/head
authorhuanwen ren <rhwlyw@163.com>
Sat, 22 Jul 2017 08:06:45 +0000 (16:06 +0800)
committerhuanwen ren <ren.huanwen@zte.com.cn>
Mon, 24 Jul 2017 09:00:10 +0000 (17:00 +0800)
if use "ceph-authtool keyring -n mon. --cap mon allow 'allow *'"
as err:
[root]# ceph-authtool keyring -n mon. --cap mon allow 'allow *'
ceph-authtool: unexpected 'allow *'

Excessive "allow" is the cause of the error

Signed-off-by huanwen ren <ren.huanwen@zte.com.cn>

doc/rados/troubleshooting/troubleshooting-mon.rst

index 51b1ccac5dd99161771f749453fe8018ba09da28..756e3f74293ec55a05356e87c2adce492a9e6d59 100644 (file)
@@ -434,9 +434,9 @@ information stored in OSDs.::
   # 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 *'
+    --cap mon 'allow *'
   ceph-authtool /path/to/admin.keyring -n client.admin \
-    --cap mon allow 'allow *' --cap osd 'allow *' --cap mds 'allow *'
+    --cap mon '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