Gnocchi bootstrap fails when using ceph backend

Bug #1886711 reported by Pierre Riteau
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Fix Released
Medium
Pierre Riteau
Ussuri
Fix Released
Medium
Pierre Riteau
Victoria
Fix Released
Medium
Pierre Riteau

Bug Description

Deployment of Gnocchi fails during `TASK [gnocchi : Running gnocchi bootstrap container]`.
`docker logs bootstrap_gnocchi` shows:

2020-07-07 20:31:35,038 [21] INFO gnocchi.common.ceph: Ceph storage backend use 'cradox' python library
2020-07-07 20:31:35,087 [21] ERROR gnocchi.utils: Unable to initialize storage driver
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/tenacity/__init__.py", line 361, in call
    result = fn(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/gnocchi/storage/__init__.py", line 102, in get_driver
    conf.storage)
  File "/usr/lib/python3.6/site-packages/gnocchi/storage/ceph.py", line 52, in __init__
    self.rados, self.ioctx = ceph.create_rados_connection(conf)
  File "/usr/lib/python3.6/site-packages/gnocchi/common/ceph.py", line 69, in create_rados_connection
    conn.connect()
  File "cradox.pyx", line 876, in cradox.Rados.connect
cradox.OSError: [errno 95] error connecting to the cluster

This is caused by a wrong value for [storage]/ceph_keyring in gnocchi.conf: it should be the full path to the keyring file, instead of only the name of the file.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (master)

Fix proposed to branch: master
Review: https://review.opendev.org/739843

Changed in kolla-ansible:
assignee: nobody → Pierre Riteau (priteau)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (stable/ussuri)

Fix proposed to branch: stable/ussuri
Review: https://review.opendev.org/739917

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (master)

Reviewed: https://review.opendev.org/739843
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=9a0f8c319358b9b4a78bc38d8391dc61104ad49d
Submitter: Zuul
Branch: master

commit 9a0f8c319358b9b4a78bc38d8391dc61104ad49d
Author: Pierre Riteau <email address hidden>
Date: Tue Jul 7 21:47:04 2020 +0200

    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

Changed in kolla-ansible:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (stable/ussuri)

Reviewed: https://review.opendev.org/739917
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=1636ea073956979ce62890edcc94b05522e4bebe
Submitter: Zuul
Branch: stable/ussuri

commit 1636ea073956979ce62890edcc94b05522e4bebe
Author: Pierre Riteau <email address hidden>
Date: Tue Jul 7 21:47:04 2020 +0200

    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
    (cherry picked from commit 9a0f8c319358b9b4a78bc38d8391dc61104ad49d)

tags: added: in-stable-ussuri
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.