gnocchi-statsd directory does not exist

Bug #1926914 reported by James Shelby
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
kolla-ansible
Fix Released
Medium
Unassigned

Bug Description

Enabling gnocchi and then deploying errors with gnocchi-statsd directory does not exist.

Manually creating this directory before doing the deploy on the controllers seems to resolve.

There should be something in kolla-ansible that sets this up.

Revision history for this message
James Shelby (shelbytek) wrote :

I take that back. Gnocchi still will not deploy as there are issues.

Revision history for this message
Mark Goddard (mgoddard) wrote :

I think this patch fixes the issue, but the author needs to update it: https://review.opendev.org/c/openstack/kolla-ansible/+/782916

Changed in kolla-ansible:
importance: Undecided → Medium
status: New → Confirmed
status: Confirmed → Triaged
Revision history for this message
James Shelby (shelbytek) wrote :

To focus on the gnocchi bug I modified the external_ceph.yml with the configuration you specified.

I enabled both gnocchi and gnocchi_statsd in the globals.yml like this:
enable_gnocchi: "yes"
enable_gnocchi_statsd: "yes"

However when I reconfigure it locks up at the gnocchi bootstrap process as seen here:

TASK [gnocchi : Creating gnocchi database] **************************************************************************************************************************************************************************************************
ok: [control1 -> control1]

TASK [gnocchi : Creating gnocchi database user and setting permissions] *********************************************************************************************************************************************************************
ok: [control1 -> control1]

TASK [gnocchi : Running gnocchi bootstrap container] ****************************************************************************************************************************************************************************************

Revision history for this message
James Shelby (shelbytek) wrote :

It may be related to this and investigating but I'm on wallaby.

https://bugs.launchpad.net/kolla-ansible/+bug/1886711

Revision history for this message
James Shelby (shelbytek) wrote :

Definitely not related to that bug as the kolla-ansible already has the fix in place

Revision history for this message
James Shelby (shelbytek) wrote :

According to the logs in the gnocchi-api container it is:

2021-05-06 07:45:45,670 [21] ERROR gnocchi.utils: Unable to initialize storage driver
Traceback (most recent call last):
  File "/var/lib/kolla/venv/lib/python3.6/site-packages/tenacity/__init__.py", line 426, in __call__
    result = fn(*args, **kwargs)
  File "/var/lib/kolla/venv/lib/python3.6/site-packages/gnocchi/storage/__init__.py", line 102, in get_driver
    conf.storage)
  File "/var/lib/kolla/venv/lib/python3.6/site-packages/gnocchi/storage/ceph.py", line 52, in __init__
    self.rados, self.ioctx = ceph.create_rados_connection(conf)
  File "/var/lib/kolla/venv/lib/python3.6/site-packages/gnocchi/common/ceph.py", line 46, in create_rados_connection
    raise ImportError("No module named 'rados'")
ImportError: No module named 'rados'

This appears to be due to the python3-rados and dependencies missing from the container.

Revision history for this message
James Shelby (shelbytek) wrote :

The problem appears to be the kolla/gnocchi-api image is missing the dependencies it needs so this might be a ticket for the kolla side.

Revision history for this message
Mark Goddard (mgoddard) wrote :
Changed in kolla-ansible:
status: Triaged → In Progress
Revision history for this message
Mark Goddard (mgoddard) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (master)

Reviewed: https://review.opendev.org/c/openstack/kolla-ansible/+/782916
Committed: https://opendev.org/openstack/kolla-ansible/commit/6230971b9297f67ff92e61a9a6e9203b499d6587
Submitter: "Zuul (22348)"
Branch: master

commit 6230971b9297f67ff92e61a9a6e9203b499d6587
Author: Christian Berendt <email address hidden>
Date: Thu Mar 25 09:34:28 2021 +0100

    gnocchi: fix external ceph integration when gnocchi-statsd is disabled

    Closes-Bug: #1926914

    Change-Id: I7f472a27eb9f2e1f267d7c4bac22236cdd076322

Changed in kolla-ansible:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 13.0.0.0rc1

This issue was fixed in the openstack/kolla-ansible 13.0.0.0rc1 release candidate.

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

Fix proposed to branch: stable/wallaby
Review: https://review.opendev.org/c/openstack/kolla-ansible/+/853439

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

Reviewed: https://review.opendev.org/c/openstack/kolla-ansible/+/853439
Committed: https://opendev.org/openstack/kolla-ansible/commit/0c53d56fa6db9d5a59dc0f37f4d0fa950a02692e
Submitter: "Zuul (22348)"
Branch: stable/wallaby

commit 0c53d56fa6db9d5a59dc0f37f4d0fa950a02692e
Author: Christian Berendt <email address hidden>
Date: Thu Mar 25 09:34:28 2021 +0100

    gnocchi: fix external ceph integration when gnocchi-statsd is disabled

    Closes-Bug: #1926914

    Change-Id: I7f472a27eb9f2e1f267d7c4bac22236cdd076322
    (cherry picked from commit 6230971b9297f67ff92e61a9a6e9203b499d6587)

tags: added: in-stable-wallaby
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 12.7.0

This issue was fixed in the openstack/kolla-ansible 12.7.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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