From 84c50dd8deba9d5fa2e9499714c69ace63093872 Mon Sep 17 00:00:00 2001 From: John Wilkins Date: Tue, 18 Sep 2012 13:00:58 -0700 Subject: [PATCH] :doc: Added discussion and stack diagram. Initial format cleanup. Signed-off-by: John Wilkins --- doc/rbd/rbd-openstack.rst | 60 ++++++++++++++++++++++++++++++++------- 1 file changed, 49 insertions(+), 11 deletions(-) diff --git a/doc/rbd/rbd-openstack.rst b/doc/rbd/rbd-openstack.rst index 82678a21667..b23e9419da1 100644 --- a/doc/rbd/rbd-openstack.rst +++ b/doc/rbd/rbd-openstack.rst @@ -1,27 +1,61 @@ =================== RBD and OpenStack =================== -You may utilize RBD with OpenStack. To use RBD with OpenStack, you must install -QEMU, ``libvirt``, and OpenStack first. We recommend using a separate physical -host for your OpenStack installation. OpenStack recommends a minimum of -8GB of RAM and a quad-core processor. If you have not already installed -OpenStack, install it now. See `Installing OpenStack`_ for details. + +You may use Ceph block device images with OpenStack with QEMU and ``libvirt`` as +the interface. Ceph stripes block device images as objects across the cluster, +which means that large Ceph block device images have better performance than a +standalone server! + +To use RBD with OpenStack, you must install QEMU, ``libvirt``, and OpenStack +first. We recommend using a separate physical host for your OpenStack +installation. OpenStack recommends a minimum of 8GB of RAM and a quad-core +processor. The following diagram depicts the OpenStack/Ceph technology stack. + + +.. ditaa:: +---------------------------------------------------+ + | OpenStack | + +---------------------------------------------------+ + +---------------------------------------------------+ + | libvirt | + +---------------------------------------------------+ + +---------------------------------------------------+ + | QEMU/RBD | + +---------------------------------------------------+ + +---------------------------------------------------+ + | librbd | + +---------------------------------------------------+ + +---------------------------------------------------+ + | librados (C, C++, Java, Python, PHP, etc.) | + +---------------------------------------------------+ + +---------------+ +---------------+ +---------------+ + | OSDs | | MDSs | | Monitors | + +---------------+ +---------------+ +---------------+ .. _Installing OpenStack: ../../install/openstack .. important:: To use RBD with OpenStack, you must have a running Ceph cluster. -.. tip: To get started quickly, turn off cephx authentication. + Create a Pool -------------- +============= + By default, RBD uses the ``data`` pool. You may use any available RBD pool. We recommend creating a pool for Nova. Ensure your Ceph cluster is running, then create a pool. :: - sudo rados mkpool nova + ceph osd pool create nova + +See `Create a Pool`_ for detail on specifying the number of placement groups +for your pool, and `Placement Groups`_ for details on the number of placement +groups you should set for your pool. + +.. Create a Pool: ../../cluster-ops/pools#createpool +.. Placement Groups: ../../cluster-ops/placement-groups Install Ceph Common on the OpenStack Host ------------------------------------------ +========================================= + OpenStack operates as a Ceph client. You must install Ceph common on the OpenStack host, and copy your Ceph cluster's ``ceph.conf`` file to the ``/etc/ceph`` directory. If you have installed Ceph on the host, Ceph common @@ -31,8 +65,10 @@ is already included. :: cd /etc/ceph ssh your-openstack-server sudo tee /etc/ceph/ceph.conf