From ffafebf87c56d66363317a5495ccc3c7ae64fdcd Mon Sep 17 00:00:00 2001 From: Mathias Ewald Date: Wed, 20 Jul 2016 06:02:18 +0000 Subject: External Ceph - Implementation Nova Introduced nova backend selection flag for Ceph and priority if multiple backends are configured Add mechanism to deploy arbitrary ceph.conf and keyring files into nova-compute and nova-libvirt containers Added documentation Change-Id: Id010ca9cc2d914e5358ef79edeb600a28220dd4b Implements: blueprint external-ceph --- doc/external-ceph-guide.rst | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) (limited to 'doc') diff --git a/doc/external-ceph-guide.rst b/doc/external-ceph-guide.rst index 230919163..45f165a03 100644 --- a/doc/external-ceph-guide.rst +++ b/doc/external-ceph-guide.rst @@ -14,7 +14,7 @@ Requirements * An existing installation of Ceph * Existing Ceph storage pools * Existing credentials in Ceph for OpenStack services to connect to Ceph -(Glance, Cinder) +(Glance, Cinder, Nova) Enabling External Ceph ====================== @@ -62,11 +62,9 @@ Step 1 is done by using Kolla's INI merge mechanism: Create a file in [glance_store] stores = rbd default_store = rbd - rbd_store_chunk_size = 8 rbd_store_pool = images rbd_store_user = glance rbd_store_ceph_conf = /etc/ceph/ceph.conf - rados_connect_timeout = 0 [image_format] container_formats = bare @@ -151,3 +149,31 @@ cinder-volume and cinder-backup directories: key = AQAg5YRXpChaGRAAlTSCleesthCRmCYrfQVX1w== It is important that the files are named ceph.client*. + +Nova +------ + +In ``/etc/kolla/global.yml`` set + +:: + + nova_backend_ceph: "yes" + +Put ceph.conf and keyring file into ``/etc/kolla/config/nova``: + +:: + + $ ls /etc/kolla/config/nova + ceph.client.nova.keyring ceph.conf + +Configure nova-compute to use Ceph as the ephemeral backend by creating ``/etc/kolla/config/nova/nova-compute.conf`` and adding the following contents: + +:: + + [libvirt] + images_rbd_pool=vms + images_type=rbd + images_rbd_ceph_conf=/etc/ceph/ceph.conf + rbd_user=nova + +NOTE: rbd_user might vary depending on your environment. -- cgit v1.2.3