Specifying archive policy name breaks Gnocchi publisher

Bug #1875753 reported by Mark Beierl
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Ceilometer Charm
Expired
Undecided
Unassigned

Bug Description

Looking at this guide: https://jaas.ai/ceilometer/269#charm-config-gnocchi-archive-policy, it is possible to change the name of the archive policy. Most Ceilometer/Gnocchi installations seem to use 'ceilometer-low' as the name.

However, if the charm is deployed with an option to use that name, the publisher fails.

Charm:

    options:
      enable-all-pollsters: true
      polling-interval: 60
      gnocchi-archive-policy: ceilometer-low

Error in ceilometer logs:

==> /var/log/ceilometer/ceilometer-agent-notification.log <==
2020-04-28 20:49:51.086 27055 ERROR ceilometer.publisher.gnocchi [-] Error creating resource 0b994bc4-8e9c-4bd6-9072-7dcb67416e60: Archive policy ceilometer-low does not exist (HTTP 400): BadRequest: Archive policy ceilometer-low does not exist (HTTP 400)

Revision history for this message
Dmitrii Shcherbakov (dmitriis) wrote :

Hi Mark,

On the surface, it looks like you are using an OpenStack version where this archive policy is not defined yet.

More specifically, ceilometer packaged in the Queens UCA does not have ceilometer-low in gnocchi_resources.yaml:

https://git.launchpad.net/~ubuntu-server-dev/ubuntu/+source/ceilometer/tree/ceilometer/publisher/data/gnocchi_resources.yaml?h=stable/queens

Whereas ceilometer-low is only available as of OpenStack Rocky:
https://git.launchpad.net/~ubuntu-server-dev/ubuntu/+source/ceilometer/tree/ceilometer/publisher/data/gnocchi_resources.yaml?h=stable/rocky

The upstream commit that added it to OpenStack Rocky: https://github.com/openstack/ceilometer/commit/b96b16928

Could you please attach a sanitized bundle (`juju export-bundle` without secrets) or validate that you are using an OpenStack version >= Rocky?

Changed in charm-ceilometer:
status: New → Incomplete
Revision history for this message
Mark Beierl (mbeierl) wrote :

This was tested against a rocky deployment:

diff --git a/bundle-bionic-rocky.yaml b/bundle-bionic-rocky.yaml
index 119bc88..d0c9715 100644
--- a/bundle-bionic-rocky.yaml
+++ b/bundle-bionic-rocky.yaml
@@ -116,6 +116,10 @@ services:
   ceilometer:
     charm: cs:ceilometer
     num_units: 1
+ options:
+ enable-all-pollsters: true
+ polling-interval: 60
+ gnocchi-archive-policy: ceilometer-low
   ceilometer-agent:
     charm: cs:ceilometer-agent
   ceph-mon:

I will try this against Stein and see if it is a problem there too.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for OpenStack ceilometer charm because there has been no activity for 60 days.]

Changed in charm-ceilometer:
status: Incomplete → Expired
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.