From: huanwen ren Date: Sat, 22 Jul 2017 08:06:45 +0000 (+0800) Subject: doc/mon: fix ceph-authtool create keyring X-Git-Tag: v12.1.2~153^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=f4dd2801ca7102333b366a9871cc2c80fbe871a5;p=ceph.git 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 --- diff --git a/doc/rados/troubleshooting/troubleshooting-mon.rst b/doc/rados/troubleshooting/troubleshooting-mon.rst index 51b1ccac5dd99..756e3f74293ec 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