From 9a0f8c319358b9b4a78bc38d8391dc61104ad49d Mon Sep 17 00:00:00 2001 From: Pierre Riteau Date: Tue, 7 Jul 2020 21:47:04 +0200 Subject: [PATCH] Fix incorrect value of [storage]/ceph_keyring in gnocchi.conf The value should be the full path to the keyring file, not just the name. Without this fix Gnocchi fails to connect to Ceph. Change-Id: Iaa69b2096b09a448345de50911e21436875d48d6 Closes-Bug: #1886711 --- ansible/roles/gnocchi/templates/gnocchi.conf.j2 | 2 +- releasenotes/notes/bug-1886711-a1a1fd1343f1a644.yaml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/bug-1886711-a1a1fd1343f1a644.yaml diff --git a/ansible/roles/gnocchi/templates/gnocchi.conf.j2 b/ansible/roles/gnocchi/templates/gnocchi.conf.j2 index 4bef2b70bf..a00eeabc90 100644 --- a/ansible/roles/gnocchi/templates/gnocchi.conf.j2 +++ b/ansible/roles/gnocchi/templates/gnocchi.conf.j2 @@ -76,7 +76,7 @@ file_basepath = /var/lib/gnocchi driver = ceph ceph_pool = {{ ceph_gnocchi_pool_name }} ceph_username = {{ ceph_gnocchi_user }} -ceph_keyring = {{ ceph_gnocchi_keyring }} +ceph_keyring = /etc/ceph/{{ ceph_gnocchi_keyring }} ceph_conffile = /etc/ceph/ceph.conf {% elif gnocchi_backend_storage == 'swift' %} driver = swift diff --git a/releasenotes/notes/bug-1886711-a1a1fd1343f1a644.yaml b/releasenotes/notes/bug-1886711-a1a1fd1343f1a644.yaml new file mode 100644 index 0000000000..ff4e4e3ab4 --- /dev/null +++ b/releasenotes/notes/bug-1886711-a1a1fd1343f1a644.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + Fixes an incorrect Ceph keyring file configuration in ``gnocchi.conf``, + which prevented Gnocchi from connecting to Ceph. `LP#1886711 + `__