Skip to content

Commit 45f12ae

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "docs: improve external Ceph docs" into stable/victoria
2 parents fa0cb9d + b4cede4 commit 45f12ae

File tree

1 file changed

+66
-35
lines changed

1 file changed

+66
-35
lines changed

doc/source/reference/storage/external-ceph-guide.rst

Lines changed: 66 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -26,40 +26,22 @@ Requirements
2626
Refer to http://docs.ceph.com/docs/master/rbd/rbd-openstack/ for details on
2727
creating the pool and keyrings with appropriate permissions for each service.
2828

29-
Enabling External Ceph
30-
~~~~~~~~~~~~~~~~~~~~~~
31-
32-
To activate external Ceph integration you need to enable Ceph backend.
33-
This can be done individually per service in ``/etc/kolla/globals.yml``:
34-
35-
.. code-block:: yaml
36-
37-
glance_backend_ceph: "yes"
38-
cinder_backend_ceph: "yes"
39-
nova_backend_ceph: "yes"
40-
gnocchi_backend_storage: "ceph"
41-
enable_manila_backend_cephfs_native: "yes"
42-
43-
Edit the Inventory File
44-
~~~~~~~~~~~~~~~~~~~~~~~
45-
46-
When using external Ceph, there may be no nodes defined in the storage group.
47-
This will cause Cinder and related services relying on this group to fail.
48-
In this case, operator should add some nodes to the storage group, all the
49-
nodes where ``cinder-volume`` and ``cinder-backup`` will run:
50-
51-
.. code-block:: ini
52-
53-
[storage]
54-
compute01
55-
5629
Configuring External Ceph
5730
~~~~~~~~~~~~~~~~~~~~~~~~~
5831

32+
Ceph integration is configured for different OpenStack services independently.
33+
5934
Glance
6035
------
6136

62-
Configuring Glance for Ceph includes the following steps:
37+
Ceph RBD can be used as a storage backend for Glance images. Configuring Glance
38+
for Ceph includes the following steps:
39+
40+
#. Enable Glance Ceph backend in ``globals.yml``:
41+
42+
.. code-block:: yaml
43+
44+
glance_backend_ceph: "yes"
6345
6446
#. Configure Ceph authentication details in ``/etc/kolla/globals.yml``:
6547

@@ -85,7 +67,24 @@ Configuring Glance for Ceph includes the following steps:
8567
Cinder
8668
------
8769

88-
Configuring Cinder for Ceph includes following steps:
70+
Ceph RBD can be used as a storage backend for Cinder volumes. Configuring
71+
Cinder for Ceph includes following steps:
72+
73+
#. When using external Ceph, there may be no nodes defined in the storage
74+
group. This will cause Cinder and related services relying on this group to
75+
fail. In this case, operator should add some nodes to the storage group,
76+
all the nodes where ``cinder-volume`` and ``cinder-backup`` will run:
77+
78+
.. code-block:: ini
79+
80+
[storage]
81+
control01
82+
83+
#. Enable Cinder Ceph backend in ``globals.yml``:
84+
85+
.. code-block:: yaml
86+
87+
cinder_backend_ceph: "yes"
8988
9089
#. Configure Ceph authentication details in ``/etc/kolla/globals.yml``:
9190

@@ -116,22 +115,42 @@ Configuring Cinder for Ceph includes following steps:
116115
``cinder-backup`` requires two keyrings for accessing volumes
117116
and backup pool.
118117

118+
Nova must also be configured to allow access to Cinder volumes:
119+
120+
#. Configure Ceph authentication details in ``/etc/kolla/globals.yml``:
121+
122+
* ``ceph_cinder_keyring`` (default: ``ceph.client.cinder.keyring``)
123+
124+
#. Copy Ceph keyring file(s) to:
125+
126+
* ``/etc/kolla/config/nova/<ceph_cinder_keyring>``
127+
119128
Nova
120129
----
121130

131+
Ceph RBD can be used as a storage backend for Nova instance ephemeral disks.
132+
This avoids the requirement for local storage for instances on compute nodes.
133+
It improves the performance of migration, since instances' ephemeral disks do
134+
not need to be copied between hypervisors.
135+
122136
Configuring Nova for Ceph includes following steps:
123137

138+
#. Enable Nova Ceph backend in ``globals.yml``:
139+
140+
.. code-block:: yaml
141+
142+
nova_backend_ceph: "yes"
143+
124144
#. Configure Ceph authentication details in ``/etc/kolla/globals.yml``:
125145

126-
* ``ceph_cinder_keyring`` (default: ``ceph.client.cinder.keyring``)
127-
* ``ceph_nova_keyring`` (by default it's the same as ceph_cinder_keyring)
146+
* ``ceph_nova_keyring`` (by default it's the same as
147+
``ceph_cinder_keyring``)
128148
* ``ceph_nova_user`` (default: ``nova``)
129149
* ``ceph_nova_pool_name`` (default: ``vms``)
130150

131151
#. Copy Ceph configuration file to ``/etc/kolla/config/nova/ceph.conf``
132152
#. Copy Ceph keyring file(s) to:
133153

134-
* ``/etc/kolla/config/nova/<ceph_cinder_keyring>``
135154
* ``/etc/kolla/config/nova/<ceph_nova_keyring>`` (if your Ceph deployment
136155
created one)
137156

@@ -144,8 +163,15 @@ Configuring Nova for Ceph includes following steps:
144163
Gnocchi
145164
-------
146165

166+
Ceph object storage can be used as a storage backend for Gnocchi metrics.
147167
Configuring Gnocchi for Ceph includes following steps:
148168

169+
#. Enable Gnocchi Ceph backend in ``globals.yml``:
170+
171+
.. code-block:: yaml
172+
173+
gnocchi_backend_storage: "ceph"
174+
149175
#. Configure Ceph authentication details in ``/etc/kolla/globals.yml``:
150176

151177
* ``ceph_gnocchi_keyring``
@@ -159,10 +185,15 @@ Configuring Gnocchi for Ceph includes following steps:
159185
Manila
160186
------
161187

162-
Configuring Manila for Ceph includes following steps:
188+
CephFS can be used as a storage backend for Manila shares. Configuring Manila
189+
for Ceph includes following steps:
190+
191+
#. Enable Manila Ceph backend in ``globals.yml``:
192+
193+
.. code-block:: yaml
194+
195+
enable_manila_backend_cephfs_native: "yes"
163196
164-
#. Configure CephFS backend by setting ``enable_manila_backend_cephfs_native``
165-
to ``true``
166197
#. Configure Ceph authentication details in ``/etc/kolla/globals.yml``:
167198

168199
* ``ceph_manila_keyring`` (default: ``ceph.client.manila.keyring``)

0 commit comments

Comments
 (0)