From f4dd2801ca7102333b366a9871cc2c80fbe871a5 Mon Sep 17 00:00:00 2001 From: huanwen ren Date: Sat, 22 Jul 2017 16:06:45 +0800 Subject: [PATCH] doc/mon: fix ceph-authtool create keyring 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 --- doc/rados/troubleshooting/troubleshooting-mon.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/rados/troubleshooting/troubleshooting-mon.rst b/doc/rados/troubleshooting/troubleshooting-mon.rst index 51b1ccac5dd..756e3f74293 100644 --- a/doc/rados/troubleshooting/troubleshooting-mon.rst +++ b/doc/rados/troubleshooting/troubleshooting-mon.rst @@ -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 -- 2.39.5