Ceilometer & Gnocchi integration

Hi,

I’m trying to get Ceilometer + Gnocchi running on OpenStack Bobcat (2023.2) with Juju/MAAS and I’ve hit a problem:

  • ceilometer (21.0.0) is blocked → shows Missing relations: database.
  • gnocchi (4.6.0) is error → hook metric-service-relation-broken fails, log says missing identity_service.auth_host.
  • gnocchi-api is masked/inactive, only gnocchi-metricd is running.
  • when I run juju run ceilometer/0 ceilometer-upgrade, I get:
The identity-credentials and or metric-service relations are not complete.
ceilometer-upgrade cannot be run until they are ready.

What should I do here? Am I missing something, or is this a bug in the charm?

1 Like

Hello! I’m not from the OpenStack team, but I’ve relayed your question on Matrix: https://matrix.to/#/!OqcMODbAeESdsqrXYq:ubuntu.com/$0LDn-GRa9T1vnjVTQmyhsUWfee6wwmWe9jm0N0exAY0?via=ubuntu.com&via=matrix.org&via=fedora.im

Hi YangSoo: Please check the keystone charm status/logs. The identity-credentials comes from the keystone and metric-service comes from Gnocchi https://opendev.org/openstack/charm-ceilometer/src/commit/5d029b7e001140a713b972b9369dec22cc2b10c1/metadata.yaml#L39 identity-credentials: interface: keystone-credentials metric-service: interface: gnocchi

Hi,

this sounds like you may be missing some relations, here you can find how the typical deployment looks like https://opendev.org/openstack/charm-ceilometer/src/branch/stable/2024.1/tests/bundles/jammy-caracal.yaml#L167

About the gnocchi in error state, that shouldn’t be due to missing relations, to get a better understanding of what’s broken there you can run juju debug-log -i gnocchi/N --replay (replacing N with the actual unit number), that should give you (hopefully) a stacktrace and some error logs to get insights of where/when the hook threw an error.

Best,

Hello guys, Thank you for help me. The gnocchi/0 unit is now active and operational following a previous fix, but ceilometer/0 remains blocked and requires the ceilometer-upgrade action. Attempting to run this action fails with a Keystone unavailable error, even though the relation to Keystone exists.

Status of ceilometer:

ceilometer 21.0.0 blocked 1 ceilometer 2023.2/stable 552 no Run the ceilometer-upgrade action on the leader to initialize ceilometer and gnocchi

Upgrade gives me this error:

2025-09-13 09:57:36.194 242209 CRITICAL ceilometer [-] Unhandled error: gnocchiclient.exceptions.ClientException: {"message": "The server is currently unavailable. Please try again at a later time.<br /><br />\nThe Keystone service is temporarily unavailable.\n\n", "code": "503 Service Unavailable", "title": "Service Unavailable"} (HTTP 503)

How can I fix this problem please?

what’s the status of gnocchi?, not just at the juju level, but at the payload level. You should be able to curl the service or run something like gnocchi metric list.

Also check gnocchi’s log to understand what’s the backend error that produced this 503.

Hi @freyes,

I checked the status of Gnocchi and found problem in logs. There was a problem with a certifacate so I resolve that. Thank you, Peter.