X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fdoc%2Frbd%2Frbd-openstack.rst;h=db520280882b5d3b23f1f289770b10d834bfa1de;hb=c07f9fc5a4f48397831383549fb0482b93480643;hp=8df63cb449a3f133f818ab4dda17e181af4091ae;hpb=9439ae556f035e65c9c107ae13ddd09457dbbecd;p=ceph.git diff --git a/ceph/doc/rbd/rbd-openstack.rst b/ceph/doc/rbd/rbd-openstack.rst index 8df63cb44..db5202808 100644 --- a/ceph/doc/rbd/rbd-openstack.rst +++ b/ceph/doc/rbd/rbd-openstack.rst @@ -90,6 +90,14 @@ See `Create a Pool`_ for detail on specifying the number of placement groups for your pools, and `Placement Groups`_ for details on the number of placement groups you should set for your pools. +Newly created pools must initialized prior to use. Use the ``rbd`` tool +to initialize the pools:: + + rbd pool init volumes + rbd pool init images + rbd pool init backups + rbd pool init vms + .. _Create a Pool: ../../rados/operations/pools#createpool .. _Placement Groups: ../../rados/operations/placement-groups @@ -106,7 +114,7 @@ The nodes running ``glance-api``, ``cinder-volume``, ``nova-compute`` and Install Ceph client packages ---------------------------- -On the ``glance-api`` node, you'll need the Python bindings for ``librbd``:: +On the ``glance-api`` node, you will need the Python bindings for ``librbd``:: sudo apt-get install python-rbd sudo yum install python-rbd @@ -124,17 +132,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 'allow r' osd 'allow class-read object_prefix rbd_children, allow rwx pool=images' - ceph auth get-or-create client.cinder-backup mon 'allow r' osd 'allow class-read object_prefix rbd_children, allow rwx pool=backups' - -If you run an OpenStack version before Mitaka, create the following ``client.cinder`` key:: - - ceph auth get-or-create client.cinder mon 'allow r' osd 'allow class-read object_prefix rbd_children, allow rwx pool=volumes, allow rwx pool=vms, allow rx pool=images' - -Since Mitaka introduced the support of RBD snapshots while doing a snapshot of a Nova instance, -we need to allow the ``client.cinder`` key write access to the ``images`` pool; therefore, create the following key:: - - ceph auth get-or-create client.cinder mon 'allow r' osd 'allow class-read object_prefix rbd_children, allow rwx pool=volumes, allow rwx pool=vms, allow rwx pool=images' + 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 pool=images' + ceph auth get-or-create client.cinder-backup mon 'profile rbd' osd 'profile rbd pool=backups' Add the keyrings for ``client.cinder``, ``client.glance``, and ``client.cinder-backup`` to the appropriate nodes and change their ownership:: @@ -304,7 +304,7 @@ specify the pool name for the block device. On your OpenStack node, edit rados_connect_timeout = -1 glance_api_version = 2 -If you're using `cephx authentication`_, also configure the user and uuid of +If you are using `cephx authentication`_, also configure the user and uuid of the secret you added to ``libvirt`` as documented earlier:: [ceph]