Skip to content

Commit 2357061

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "nova: Use cinder user for Ceph" into stable/victoria
2 parents a887852 + 8aa8e61 commit 2357061

File tree

3 files changed

+23
-8
lines changed

3 files changed

+23
-8
lines changed

ansible/group_vars/all.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,7 @@ ceph_cinder_user: "cinder"
10671067
ceph_glance_user: "glance"
10681068
ceph_gnocchi_user: "gnocchi"
10691069
ceph_manila_user: "manila"
1070-
ceph_nova_user: "nova"
1070+
ceph_nova_user: "{{ ceph_cinder_user }}"
10711071

10721072
# External Ceph keyrings
10731073
ceph_cinder_keyring: "ceph.client.cinder.keyring"

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

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -145,20 +145,19 @@ Configuring Nova for Ceph includes following steps:
145145

146146
* ``ceph_nova_keyring`` (by default it's the same as
147147
``ceph_cinder_keyring``)
148-
* ``ceph_nova_user`` (default: ``nova``)
148+
* ``ceph_nova_user`` (by default it's the same as ``ceph_cinder_user``)
149149
* ``ceph_nova_pool_name`` (default: ``vms``)
150150

151151
#. Copy Ceph configuration file to ``/etc/kolla/config/nova/ceph.conf``
152152
#. Copy Ceph keyring file(s) to:
153153

154-
* ``/etc/kolla/config/nova/<ceph_nova_keyring>`` (if your Ceph deployment
155-
created one)
154+
* ``/etc/kolla/config/nova/<ceph_nova_keyring>``
156155

157-
.. warning::
156+
.. note::
158157

159-
If you are using ceph-ansible or another deployment tool that doesn't
160-
create separate key for Nova just copy the Cinder key and configure
161-
``ceph_nova_user`` to the same value as ``ceph_cinder_user``.
158+
If you are using a Ceph deployment tool that generates separate Ceph
159+
keys for Cinder and Nova, you will need to override
160+
``ceph_nova_keyring`` and ``ceph_nova_user`` to match.
162161

163162
Gnocchi
164163
-------
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
fixes:
3+
- |
4+
Fixes an issue with default Nova configuration for Ceph where the RBD user
5+
is set to ``nova``, but only a ``cinder`` keyring is copied. The default
6+
value of ``ceph_nova_user`` is changed to the value of
7+
``ceph_cinder_user``, in line with the default for ``ceph_nova_keyring``.
8+
`LP#1934145 <https://bugs.launchpad.net/kolla-ansible/+bug/1934145>`__
9+
upgrade:
10+
- |
11+
Modifies the default value of ``ceph_nova_user`` from ``nova`` to
12+
the value of ``ceph_cinder_user``, in line with the default for
13+
``ceph_nova_keyring``. Users who have overridden ``ceph_nova_keyring`` to
14+
use separate keyrings for Nova and Cinder should also override
15+
``ceph_nova_user`` to match the Nova keyring. `LP#1934145
16+
<https://bugs.launchpad.net/kolla-ansible/+bug/1934145>`__

0 commit comments

Comments
 (0)