Skip to content

Commit 01583ba

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "nova: Use cinder user for Ceph" into stable/wallaby
2 parents d6e14f8 + d22e3e9 commit 01583ba

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
@@ -1064,7 +1064,7 @@ ceph_cinder_user: "cinder"
10641064
ceph_glance_user: "glance"
10651065
ceph_gnocchi_user: "gnocchi"
10661066
ceph_manila_user: "manila"
1067-
ceph_nova_user: "nova"
1067+
ceph_nova_user: "{{ ceph_cinder_user }}"
10681068

10691069
# External Ceph keyrings
10701070
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
@@ -144,20 +144,19 @@ Configuring Nova for Ceph includes following steps:
144144

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

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

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

156-
.. warning::
155+
.. note::
157156

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

162161
Gnocchi
163162
-------
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)