gnocchi statsd doesnt start clean due to misconfigured ceph keyring

Bug #1586010 reported by Pradeep Kilambi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Undecided
Pradeep Kilambi

Bug Description

gnocchi statsd doesnt start clean due to mis configured ceph keyring

/var/log/gnocchi/statsd.log shows:

INFO gnocchi.storage.ceph [-] Ceph storage backend use 'rados' python library
CRITICAL gnocchi [-] ObjectNotFound: error connecting to the cluster
ERROR gnocchi Traceback (most recent call last):
ERROR gnocchi File "/usr/bin/gnocchi-statsd", line 10, in <module>
ERROR gnocchi sys.exit(statsd())
ERROR gnocchi File "/usr/lib/python2.7/site-packages/gnocchi/cli.py", line 61, in statsd
ERROR gnocchi statsd_service.start()
ERROR gnocchi File "/usr/lib/python2.7/site-packages/gnocchi/statsd.py", line 174, in start
ERROR gnocchi stats = Stats(conf)
ERROR gnocchi File "/usr/lib/python2.7/site-packages/gnocchi/statsd.py", line 38, in __init__
ERROR gnocchi self.storage = storage.get_driver(self.conf)
ERROR gnocchi File "/usr/lib/python2.7/site-packages/gnocchi/storage/__init__.py", line 155, in get_driver
ERROR gnocchi return get_driver_class(conf)(conf.storage)
ERROR gnocchi File "/usr/lib/python2.7/site-packages/gnocchi/storage/ceph.py", line 80, in __init__
ERROR gnocchi self.rados.connect()
ERROR gnocchi File "/usr/lib/python2.7/site-packages/rados.py", line 429, in connect
ERROR gnocchi raise make_ex(ret, "error connecting to the cluster")
ERROR gnocchi ObjectNotFound: error connecting to the cluster
ERROR gnocchi
INFO gnocchi.storage.ceph [-] Ceph storage backend use 'rados' python library
CRITICAL gnocchi [-] ObjectNotFound: error connecting to the cluster

After setting ceph_keyring = /etc/ceph/ceph.client.openstack.keyring in /etc/gnocchi/gnocchi.conf it started ok.

The value configured by the installer is: ceph_keyring = client.openstack

Changed in tripleo:
assignee: nobody → Pradeep Kilambi (pkilambi)
Changed in tripleo:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (master)

Reviewed: https://review.openstack.org/321133
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=9e21e497d6e169b1a6a2cb4a7fbb48d70cb6478a
Submitter: Jenkins
Branch: master

commit 9e21e497d6e169b1a6a2cb4a7fbb48d70cb6478a
Author: Pradeep Kilambi <email address hidden>
Date: Wed May 25 13:07:17 2016 -0400

    Fix ceph keyring setting for gnocchi

    The ceph_keyring value is expected to be a full path
    to the keyring. But we currently only pass in
    client.<cephuser>. This patch fixes the value
    to be full path.

    Closes-Bug: #1586010

    Change-Id: I5666c44bb35b6ae109c68506704eff776f5dceda

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/322312

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/tripleo-heat-templates 5.0.0.0b1

This issue was fixed in the openstack/tripleo-heat-templates 5.0.0.0b1 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/mitaka)

Reviewed: https://review.openstack.org/322312
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=28439f5006cd6dc0351804811c253e0a56a5a7f0
Submitter: Jenkins
Branch: stable/mitaka

commit 28439f5006cd6dc0351804811c253e0a56a5a7f0
Author: Pradeep Kilambi <email address hidden>
Date: Wed May 25 13:07:17 2016 -0400

    Fix ceph keyring setting for gnocchi

    The ceph_keyring value is expected to be a full path
    to the keyring. But we currently only pass in
    client.<cephuser>. This patch fixes the value
    to be full path.

    Closes-Bug: #1586010

    Change-Id: I5666c44bb35b6ae109c68506704eff776f5dceda
    (cherry picked from commit 9e21e497d6e169b1a6a2cb4a7fbb48d70cb6478a)

tags: added: in-stable-mitaka
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/tripleo-heat-templates 2.1.0

This issue was fixed in the openstack/tripleo-heat-templates 2.1.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

This issue was fixed in the openstack/tripleo-heat-templates 2.1.0 release.

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.