From: Jason Dillaman Date: Mon, 14 Oct 2019 16:45:56 +0000 (-0400) Subject: doc/rbd: add new 'profile rbd' mgr caps to examples X-Git-Tag: v15.1.0~1092^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5137cd80db7c9b699378ce22a91fbe25aba321f1;p=ceph.git doc/rbd: add new 'profile rbd' mgr caps to examples Fixes: https://tracker.ceph.com/issues/42265 Signed-off-by: Jason Dillaman --- diff --git a/doc/rbd/rados-rbd-cmds.rst b/doc/rbd/rados-rbd-cmds.rst index 4b2dd859cb5b..d74efe7099f5 100644 --- a/doc/rbd/rados-rbd-cmds.rst +++ b/doc/rbd/rados-rbd-cmds.rst @@ -35,13 +35,13 @@ recommended that you utilize a more restricted user wherever possible. To `create a Ceph user`_, with ``ceph`` specify the ``auth get-or-create`` command, user name, monitor caps, and OSD caps:: - ceph auth get-or-create client.{ID} mon 'profile rbd' osd 'profile {profile name} [pool={pool-name}][, profile ...]' + ceph auth get-or-create client.{ID} mon 'profile rbd' osd 'profile {profile name} [pool={pool-name}][, profile ...]' mgr 'profile rbd [pool={pool-name}]' For example, to create a user ID named ``qemu`` with read-write access to the pool ``vms`` and read-only access to the pool ``images``, execute the following:: - ceph auth get-or-create client.qemu mon 'profile rbd' osd 'profile rbd pool=vms, profile rbd-read-only pool=images' + ceph auth get-or-create client.qemu mon 'profile rbd' osd 'profile rbd pool=vms, profile rbd-read-only pool=images' mgr 'profile rbd pool=images' The output from the ``ceph auth get-or-create`` command will be the keyring for the specified user, which can be written to ``/etc/ceph/ceph.client.{ID}.keyring``. diff --git a/doc/rbd/rbd-kubernetes.rst b/doc/rbd/rbd-kubernetes.rst index 04466b0acf7e..8f00dbf75e47 100644 --- a/doc/rbd/rbd-kubernetes.rst +++ b/doc/rbd/rbd-kubernetes.rst @@ -64,7 +64,7 @@ Setup Ceph Client Authentication Create a new user for Kubernetes and `ceph-csi`. Execute the following and record the generated key:: - $ ceph auth get-or-create client.kubernetes mon 'profile rbd' osd 'profile rbd pool=kubernetes' + $ ceph auth get-or-create client.kubernetes mon 'profile rbd' osd 'profile rbd pool=kubernetes' mgr 'profile rbd pool=kubernetes' [client.kubernetes] key = AQD9o0Fd6hQRChAAt7fMaSZXduT3NWEqylNpmg== diff --git a/doc/rbd/rbd-openstack.rst b/doc/rbd/rbd-openstack.rst index 75aefbb05979..3ee2359d0ea3 100644 --- a/doc/rbd/rbd-openstack.rst +++ b/doc/rbd/rbd-openstack.rst @@ -128,9 +128,9 @@ Setup Ceph Client Authentication If you have `cephx authentication`_ enabled, create a new user for Nova/Cinder and Glance. Execute the following:: - ceph auth get-or-create client.glance mon 'profile rbd' osd 'profile rbd pool=images' - ceph auth get-or-create client.cinder mon 'profile rbd' osd 'profile rbd pool=volumes, profile rbd pool=vms, profile rbd-read-only pool=images' - ceph auth get-or-create client.cinder-backup mon 'profile rbd' osd 'profile rbd pool=backups' + ceph auth get-or-create client.glance mon 'profile rbd' osd 'profile rbd pool=images' mgr 'profile rbd pool=images' + ceph auth get-or-create client.cinder mon 'profile rbd' osd 'profile rbd pool=volumes, profile rbd pool=vms, profile rbd-read-only pool=images' mgr 'profile rbd pool=volumes, profile rbd pool=vms' + ceph auth get-or-create client.cinder-backup mon 'profile rbd' osd 'profile rbd pool=backups' mgr 'profile rbd pool=backups' Add the keyrings for ``client.cinder``, ``client.glance``, and ``client.cinder-backup`` to the appropriate nodes and change their ownership::