Skip to content

Commit 8aa8e61

Browse files
committed
nova: Use cinder user for Ceph
In Ussuri, nova stopped using separate Ceph keys for the volumes and vms pools by default. Instead, we set ceph_nova_keyring to the value of ceph_cinder_keyring by default, which is ceph.client.cinder.keyring. This is in line with the Ceph OpenStack integration guide [1]. However, the user used by nova to access the vms pool (ceph_nova_user) defaults to nova, meaning that nova will still try to use a ceph.client.nova.keyring, which probably does not exist. We did not see this issue in CI, because we set ceph_nova_user to cinder. This change fixes the issue by setting ceph_nova_user to the value of ceph_cinder_user by default, which is cinder. Closes-Bug: #1934145 Related-Bug: #1928690 [1] https://docs.ceph.com/en/latest/rbd/rbd-openstack/ Change-Id: I6aa8db2214e07906f1f3e035411fc80ba911a274
1 parent 0a11cb0 commit 8aa8e61

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
@@ -1051,7 +1051,7 @@ ceph_cinder_user: "cinder"
10511051
ceph_glance_user: "glance"
10521052
ceph_gnocchi_user: "gnocchi"
10531053
ceph_manila_user: "manila"
1054-
ceph_nova_user: "nova"
1054+
ceph_nova_user: "{{ ceph_cinder_user }}"
10551055

10561056
# External Ceph keyrings
10571057
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)