Skip to content

Commit d22e3e9

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 b6d8eef commit d22e3e9

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
@@ -1048,7 +1048,7 @@ ceph_cinder_user: "cinder"
10481048
ceph_glance_user: "glance"
10491049
ceph_gnocchi_user: "gnocchi"
10501050
ceph_manila_user: "manila"
1051-
ceph_nova_user: "nova"
1051+
ceph_nova_user: "{{ ceph_cinder_user }}"
10521052

10531053
# External Ceph keyrings
10541054
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)